| | |
| | | > |
| | | <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> |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="适用科室" prop="sickness"> |
| | | <el-form-item label="适用科室" prop="region"> |
| | | <el-cascader |
| | | v-model="queryParams.sickness" |
| | | :options="editableTabs" |
| | | :props="propss" |
| | | v-model="queryParams.administrative" |
| | | :options="deptList" |
| | | :props="props" |
| | | :show-all-levels="false" |
| | | clearable |
| | | ></el-cascader> |
| | | > |
| | | <template slot-scope="{ node, data }"> |
| | | <span>{{ data.deptName }}</span> |
| | | <span v-if="!node.isLeaf"> |
| | | ({{ data.children.length }}) |
| | | </span> |
| | | </template> |
| | | </el-cascader> |
| | | </el-form-item> |
| | | <el-form-item label="通知内容" prop="userName"> |
| | | <el-input |
| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="svyid" |
| | | prop="svyid" |
| | | /> |
| | | <el-table-column |
| | | label="问卷标题" |
| | | fixed |
| | | align="center" |
| | | key="svyname" |
| | | prop="svyname" |
| | |
| | | prop="description" |
| | | width="260" |
| | | /><el-table-column |
| | | label="适用疾病(缺)" |
| | | label="适用疾病" |
| | | align="center" |
| | | key="Applicable" |
| | | prop="Applicable" |
| | |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="适用科室(缺)" |
| | | label="标签" |
| | | align="center" |
| | | key="administrative" |
| | | prop="administrative" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="标签(缺)" |
| | | align="center" |
| | | key="tagList" |
| | | prop="tagList" |
| | | key="labelInfo" |
| | | prop="labelInfo" |
| | | width="160" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-for="item in scope.row.tagList">{{ item }} </span> |
| | | <span v-for="item in scope.row.labelInfo.split(',')" |
| | | >{{ item }}、 |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="资料形式(缺)" |
| | | align="center" |
| | | key="cphonenumaber" |
| | | prop="cphonenumaber" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="可用" |
| | | align="center" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="300" |
| | | class-name="small-padding fixed-width" |
| | |
| | | <el-option |
| | | v-for="item in deptOptions" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="请输入类别名称"> |
| | | <el-input |
| | | v-model="classifyform.indexAssortName" |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <el-input v-model="classifyform.name" autocomplete="off"></el-input> |
| | | </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> |
| | |
| | | <div class="qrcode-text"> |
| | | {{ namequestionnaire }}<span>{{ haoquestionnaire }}</span> |
| | | </div> |
| | | <div class="qrcode-img"></div> |
| | | <div class="qrcode-img"> |
| | | <el-image |
| | | src="D:/qrcode/fc9a1fa37e394ac3ac606bf6b77b17c3" |
| | | fit="cover" |
| | | ></el-image> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | |
| | | getQtemplateclassify, |
| | | delQtemplateclassify, |
| | | addQtemplateclassify, |
| | | editQtemplateclassify, |
| | | getQtemplatelist, |
| | | issueinfo, |
| | | compileissue, |
| | |
| | | getillnesslist, |
| | | illnesslistget, |
| | | getillness, |
| | | getQRcode, |
| | | } from "@/api/AiCentre/index"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | |
| | | total: 0, |
| | | namequestionnaire: "", |
| | | haoquestionnaire: "", |
| | | QRcodeurl: "", |
| | | // 用户表格数据 |
| | | userList: [], |
| | | |
| | |
| | | illnesslistapi: [], |
| | | illnesslist: [], |
| | | defaultProps: { |
| | | children: "svyLibTopicCategoryList", |
| | | label: "indexAssortName", |
| | | children: "svyLibTitleCategoryList", |
| | | label: "name", |
| | | }, |
| | | deptList: [], |
| | | props: { multiple: true, value: "deptId", label: "deptName" }, |
| | | mode: [], |
| | | languagelist: [], |
| | | qyoptions: [], |
| | |
| | | watch: {}, |
| | | created() { |
| | | this.getList(); |
| | | // this.getDeptTree(); |
| | | this.getDeptTree(); |
| | | this.mode = store.getters.mode; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.qyoptions = store.getters.usable; |
| | |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | listDept(this.queryParams).then((response) => { |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | | }); |
| | | }, |
| | | |
| | | goQRCode(row) { |
| | | getQRcode({ |
| | | url: "/outsideChain?param1=KHRYDSSuTpwGWDhAS6OnpfxObRZf8fd/TIagYWPvDuyku+MjtrWt1efC1htoBDc+G4QP2UOWPNitAO4TwH4oIQ==¶m2=CP/xYqwqDhWACt2aQ/HOwhgRM62Lh4/1upwYDl7dmKSuiaa4zRzMgu7rmRztiwQj2YvJ1KAX1zBTpUAIdxPvUA==", |
| | | }).then((res) => { |
| | | console.log(res); |
| | | this.QRcodeurl = "D:/qrcode/fc9a1fa37e394ac3ac606bf6b77b17c3"; |
| | | }); |
| | | this.goQRCodeVisible = true; |
| | | this.namequestionnaire = row.userName; |
| | | this.haoquestionnaire = row.nickName; |
| | |
| | | getDeptTree() { |
| | | getQtemplateclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editQtemplateclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | return; |
| | | } |
| | | let calssvalue = {}; |
| | | if ( |
| | | this.classifyform.pid && |
| | | this.classifyform.indexAssortName && |
| | | this.classifyform.name && |
| | | this.radio == "子分类" |
| | | ) { |
| | | const index = this.deptOptions.findIndex( |
| | | (obj) => obj.id == this.classifyform.pid |
| | | ); |
| | | calssvalue = this.deptOptions[index]; |
| | | calssvalue.ivrLibaTemplateAssortList.push(this.classifyform); |
| | | } else if (this.radio == "主分类" && this.classifyform.indexAssortName) { |
| | | calssvalue.svyLibTitleCategoryList.push(this.classifyform); |
| | | } else if (this.radio == "主分类" && this.classifyform.name) { |
| | | this.classifyform.pid = null; |
| | | this.classifyform.ivrLibaTemplateAssortList = []; |
| | | this.classifyform.svyLibTitleCategoryList = []; |
| | | } else { |
| | | return this.$modal.msgError("请填写完整信息"); |
| | | } |
| | | addQtemplateclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | remove(a, b) { |
| | | if (b.pid) { |
| | | this.$modal |
| | | .confirm('是否确认删除分类项为"' + b.indexAssortName + '"的数据项?') |
| | | .confirm('是否确认删除分类项为"' + b.name + '"的数据项?') |
| | | .then(function () { |
| | | return delQtemplateclassify(b.id); |
| | | }) |
| | |
| | | } else { |
| | | this.$modal |
| | | .confirm( |
| | | '是否确认删除一级分类"' + |
| | | b.indexAssortName + |
| | | '"?删除后其下分类将归类‘未分类’' |
| | | '是否确认删除一级分类"' + b.name + '"?删除后其下分类将归类‘未分类’' |
| | | ) |
| | | .then(() => { |
| | | return delQtemplateclassify(b.id); |
| | |
| | | .catch(() => {}); |
| | | } |
| | | }, |
| | | altertag(a, b) { |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主分类"; |
| | | } else { |
| | | this.radio = "子分类"; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | |
| | | // 筛选节点 |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | | return data.indexAssortName.indexOf(value) !== -1; |
| | | return data.name.indexOf(value) !== -1; |
| | | }, |
| | | handleNodeClick(data) { |
| | | this.queryParams.assortid = data.id; |
| | |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/knowledge/verbaltrick/particulars/", |
| | | query: { id: "1" }, |
| | | }); |
| | | }, |
| | | |
| | | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | |
| | | 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); |
| | |
| | | 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; |