| | |
| | | > |
| | | <span class="custom-tree-node" slot-scope="{ node, data }"> |
| | | <span>{{ node.label }}</span> |
| | | <span> |
| | | <span v-if="data.id > 0"> |
| | | <el-button |
| | | type="text" |
| | | icon="el-icon-delete" |
| | |
| | | size="mini" |
| | | @click="() => remove(node, data)" |
| | | > |
| | | </el-button> |
| | | </span> |
| | | <span v-if="data.id > 0"> |
| | | <el-button |
| | | type="text" |
| | | circle |
| | | size="mini" |
| | | @click="() => altertag(node, data)" |
| | | ><span class="button-textxg" |
| | | ><i class="el-icon-edit-outline"></i |
| | | ></span> |
| | | </el-button> |
| | | </span> |
| | | </span> |
| | |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="handleDelete(scope.row)" |
| | | @click="topicpreview(scope.row)" |
| | | v-hasPermi="['system:user:remove']" |
| | | ><span class="button-text" |
| | | ><i class="el-icon-view"></i>预览</span |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="dialogFormVisible = false">取 消</el-button> |
| | | <el-button @click="getDeptTree()">取 消</el-button> |
| | | <el-button type="primary" @click="submitsidecolumn">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | <el-button type="primary" @click="confirmillness">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="题目预览" :visible.sync="topicVisible" width="50%"> |
| | | <div class="preview-left"> |
| | | <div class="dev-text"> |
| | | <span>{{ topicform.topicContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="topicform.valueType == 1"> |
| | | <el-radio-group v-model="topicform.asrtext"> |
| | | <el-radio |
| | | v-for="(topicforms, index) in topicform.svyLibTopicoptions" |
| | | :key="topicforms.optioncontent" |
| | | :label="topicforms.optioncontent" |
| | | >{{ topicforms.optioncontent }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-else> |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="请输入内容" |
| | | v-model.sync="topicform.asrtext" |
| | | :rows="2" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | getissueclassify, |
| | | delissueclassify, |
| | | addissueclassify, |
| | | editissueclassify, |
| | | getissuelist, |
| | | issueinfo, |
| | | compileissue, |
| | |
| | | namequestionnaire: "", |
| | | haoquestionnaire: "", |
| | | idds: "", |
| | | topicform: { |
| | | questionText: "", |
| | | }, |
| | | amendtag: false, //是否修改类别 |
| | | dialogFormVisible: false, //修改添加类别弹框 |
| | | deleteVisible: false, //分类删除弹框 |
| | | topicVisible: false, //预览弹框 |
| | | deletefenl: "高血压", //删除项 |
| | | classifyform: { |
| | | categoryname: "", |
| | |
| | | getDeptTree() { |
| | | getissueclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editissueclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | return; |
| | | } |
| | | let calssvalue = {}; |
| | | if ( |
| | | this.classifyform.pid && |
| | |
| | | .catch(() => {}); |
| | | } |
| | | }, |
| | | altertag(a, b) { |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主分类"; |
| | | } else { |
| | | this.radio = "子分类"; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | |
| | | // 筛选节点 |
| | | filterNode(value, data) { |
| | |
| | | return data.name.indexOf(value) !== -1; |
| | | }, |
| | | handleNodeClick(data) { |
| | | this.queryParams.assortid = data.id; |
| | | this.queryParams.categoryid = data.id; |
| | | this.getList(); |
| | | }, |
| | | |
| | |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | topicpreview(row) { |
| | | this.topicform = row; |
| | | this.topicVisible = true; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | margin-top: 20px; |
| | | margin: 20px; |
| | | padding: 30px; |
| | | background: #edf1f7; |
| | | background: #fff; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | |
| | | vertical-align: bottom; |
| | | } |
| | | } |
| | | .preview-left { |
| | | margin: 20px; |
| | | // margin: 20px; |
| | | padding: 30px; |
| | | // background: #ffff; |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | |
| | | .dev-text { |
| | | margin-bottom: 10px; |
| | | text-align: left; |
| | | font-size: 22px; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .el-tree-node__content { |
| | | display: -webkit-box; |
| | |
| | | font-size: 20px; |
| | | cursor: pointer; |
| | | } |
| | | ::v-deep .el-tree { |
| | | position: relative; |
| | | cursor: default; |
| | | border-radius: 5px; |
| | | background: #eff8fe; |
| | | color: #606266; |
| | | border: 1px solid #bbe1fa; |
| | | // border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | } |
| | | ::v-deep |
| | | .el-tree--highlight-current |
| | | .el-tree-node.is-current |
| | | > .el-tree-node__content { |
| | | background-color: #7799fb; |
| | | color: #fff; |
| | | } |
| | | ::v-deep .el-button--mini.is-circle { |
| | | padding: 7px; |
| | | margin: 0; |