| | |
| | | <template> |
| | | <div class="Questionnairemanagement"> |
| | | <!-- 左侧栏 --> |
| | | <div class="sidecolumn" v-show="topactiveName == 'Local'"> |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">模版类型</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+添加</div> |
| | |
| | | > |
| | | <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" |
| | |
| | | > |
| | | </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-tree> |
| | | </div> |
| | | </div> |
| | | <!-- 右侧数据 --> |
| | | <div :class="topactiveName == 'Local' ? 'leftvlue' : 'leftvlues'"> |
| | | <div class="leftvlue"> |
| | | <div class="leftvlue-bg"> |
| | | <el-row :gutter="20"> |
| | | <!--用户数据--> |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="模版标题" prop="userName"> |
| | | <el-form-item label="模版标题" prop="templateName"> |
| | | <el-input |
| | | v-model="queryParams.userName" |
| | | v-model="queryParams.templateName" |
| | | placeholder="请输入" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="适用科室" prop="status"> |
| | | <el-select v-model="queryParams.status" placeholder="请选择"> |
| | | <el-form-item label="适用院区" prop="region"> |
| | | <el-select |
| | | v-model="campus" |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option |
| | | v-for="item in languagelist" |
| | | :key="item.value" |
| | | class="ruleFormaa" |
| | | v-for="item in courtyardlist" |
| | | :key="item.label" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | :value="item.label" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="可用状态" prop="status"> |
| | | <el-select v-model="queryParams.status" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in qyoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="适用方式" prop="status"> |
| | | <el-select v-model="queryParams.status" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in languagelist" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="内容形式" prop="status"> |
| | | <el-select v-model="queryParams.status" placeholder="请选择"> |
| | | <el-form-item label="可用状态" prop="usestate"> |
| | | <el-select v-model="queryParams.usestate" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in qyoptions" |
| | | :key="item.value" |
| | |
| | | </el-row> |
| | | <!-- 标准模版 --> |
| | | <el-table |
| | | v-if="topactiveName == 'Local'" |
| | | v-loading="loading" |
| | | :data="userList" |
| | | :border="true" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column label="序号" align="center" key="id" prop="id" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="id" |
| | | prop="id" |
| | | /> |
| | | <el-table-column |
| | | label="模版名称" |
| | | fixed |
| | | align="center" |
| | | key="templateName" |
| | | prop="templateName" |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | label="适用科室" |
| | | align="center" |
| | | key="deptNames" |
| | | prop="deptNames" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.deptNames"> |
| | | <span v-for="item in scope.row.deptNames.split(",")" |
| | | >{{ item }} |
| | | </span> |
| | | </div> |
| | | <div v-else>''</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="标签" |
| | | align="center" |
| | | key="labelInfo" |
| | |
| | | width="160" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope" > |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.labelInfo"> |
| | | <span v-for="item in JSON.parse(scope.row.labelInfo)" |
| | | >{{ item.tagname }}</span> |
| | | <span v-for="item in JSON.parse(scope.row.labelInfo)">{{ |
| | | item.tagname |
| | | }}</span> |
| | | </div> |
| | | <div v-else> |
| | | <span>无</span> |
| | | </div> |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | width="160" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope" > |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.campus"> |
| | | <span v-for="item in JSON.parse(scope.row.campus)">{{ item.label }} </span> |
| | | <span v-for="item in scope.row.campus.split(',')" |
| | | >{{ item }}、 |
| | | </span> |
| | | </div> |
| | | <div v-else> |
| | | <span>无</span> |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 添加类别弹框 --> |
| | | <el-dialog title="新增类别" width="30%" :visible.sync="dialogFormVisible"> |
| | | <el-dialog |
| | | :title="title" |
| | | width="30%" |
| | | :close-on-click-modal="false" |
| | | :visible.sync="dialogFormVisible" |
| | | > |
| | | <div style="text-align: center; margin-bottom: 20px"> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio-button label="主分类"></el-radio-button> |
| | | <el-radio-button label="子分类"></el-radio-button> |
| | | <el-radio-button label="主分类" v-show="zifon"></el-radio-button> |
| | | <el-radio-button label="子分类" v-show="zufon"></el-radio-button> |
| | | </el-radio-group> |
| | | </div> |
| | | <el-divider></el-divider> |
| | |
| | | </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="scriptTopic-dev" |
| | | v-for="item in topicform.ivrLibaTemplateScriptVOList" |
| | | :key="item.targetid" |
| | | v-if="item.valueType == 1" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.targetid }}、[单选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="item.remark"> |
| | | <el-radio |
| | | v-for="(items, index) in item.ivrLibaScriptTargetoptionList" |
| | | :key="index" |
| | | :label="index" |
| | | >{{ items.targetvalue }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </div> |
| | | </div> |
| | | <!-- 多选 --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="item in topicform.ivrLibaTemplateScriptVOList" |
| | | :key="item.targetid" |
| | | v-if="item.valueType == 2" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.targetid }}、[多选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-checkbox-group v-model="item.remark"> |
| | | <el-checkbox |
| | | v-for="(items, index) in item.ivrLibaScriptTargetoptionList" |
| | | :key="index" |
| | | :label="index" |
| | | > |
| | | {{ items.targetvalue }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | </div> |
| | | <!-- 填空 --> |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="item in topicform.ivrLibaTemplateScriptVOList" |
| | | :key="item.targetid" |
| | | v-if="item.valueType == 3" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.targetid }}、[填空]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-input placeholder="请输入答案" v-model="radioas" clearable> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | getFollowupclassify, |
| | | delFollowupclassify, |
| | | addFollowupclassify, |
| | | editFollowupclassify, |
| | | addtargetillness, |
| | | getvFollowup, |
| | | compileFollowup, |
| | | delFollowupinfo, |
| | | getverbaltricklist, |
| | | Followupinfo, |
| | | getFollowuplist, |
| | | getillnesslist, |
| | | illnesslistget, |
| | | getillness, |
| | | } from "@/api/AiCentre/index"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | export default { |
| | | name: "templateku", |
| | | data() { |
| | |
| | | total: 0, |
| | | namequestionnaire: "", |
| | | haoquestionnaire: "", |
| | | topicform: {}, |
| | | topicVisible: false, |
| | | idds: "", |
| | | amendtag: false, //是否修改类别 |
| | | dialogFormVisible: false, //修改添加类别弹框 |
| | |
| | | // 表格数据 |
| | | userList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | title: "新增类别", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 日期范围 |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | campus: [], |
| | | // 表单校验 |
| | | rules: {}, |
| | | indexid: null, |
| | | inputValue: "", |
| | | radio: "主分类", |
| | | zufon: true, |
| | | zifon: true, |
| | | inputVisible: false, |
| | | illnessVisible: false, //指标疾病弹框 |
| | | deptOptions: [], |
| | |
| | | children: "ivrLibaTemplateAssortList", |
| | | label: "indexAssortName", |
| | | }, |
| | | deptList: [], |
| | | props: { multiple: true, value: "deptId", label: "deptName" }, |
| | | mode: [], |
| | | languagelist: [], |
| | | qyoptions: [], |
| | | courtyardlist: [], |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.getDeptTree(); |
| | | this.zufon = true; |
| | | this.zifon = true; |
| | | this.mode = store.getters.mode; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.qyoptions = store.getters.usable; |
| | | this.precedencetype = store.getters.precedencetype; |
| | | this.courtyardlist = store.getters.courtyardlist; |
| | | }, |
| | | |
| | | methods: { |
| | | /** 查询信息 */ |
| | | getList() { |
| | | this.queryParams.campus = this.campus.join(","); |
| | | getFollowuplist(this.queryParams).then((res) => { |
| | | console.log(res); |
| | | console.log(this.userList); |
| | | this.userList = res.rows; |
| | | this.total = res.total; |
| | | |
| | | console.log(this.userList[0].campus.split(",")); |
| | | }); |
| | | listDept({ pageNum: 1, pageSize: 10 }).then((response) => { |
| | | this.deptList = this.handleTree(response.data, "deptId"); |
| | | }); |
| | | }, |
| | | |
| | |
| | | // 跳转编辑话术页面 |
| | | compileUpdate(row) { |
| | | this.$router.push({ |
| | | path: "/knowledge/templateku/configurat/", |
| | | path: "/knowledge/tpuconfigurat/", |
| | | query: { id: row.id }, |
| | | }); |
| | | }, |
| | |
| | | this.multiple = !selection.length; |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() {}, |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/knowledge/tpuconfigurat/", |
| | | query: { id: null, assortid: this.queryParams.assortid }, |
| | | }); |
| | | }, |
| | | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | |
| | | getDeptTree() { |
| | | getFollowupclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | editFollowupclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | return; |
| | | } |
| | | let calssvalue = {}; |
| | | if ( |
| | | this.classifyform.pid && |
| | |
| | | addFollowupclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | remove(a, b) { |
| | |
| | | }) |
| | | .catch(() => {}); |
| | | } |
| | | }, |
| | | altertag(a, b) { |
| | | this.dialogFormVisible = true; |
| | | if (!b.pid) { |
| | | this.radio = "主分类"; |
| | | this.title = "修改主分类"; |
| | | this.zufon = false; |
| | | } else { |
| | | this.radio = "子分类"; |
| | | this.title = "修改子分类"; |
| | | this.zifon = false; |
| | | } |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | // 预览 |
| | | preview(row) { |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | | this.topicform = res.data; |
| | | console.log(this.topicform); |
| | | this.topicVisible = true; |
| | | }); |
| | | }, |
| | | |
| | | // 筛选节点 |
| | |
| | | // display: flex; |
| | | margin-top: 20px; |
| | | margin: 20px; |
| | | padding: 30px; |
| | | background: #edf1f7; |
| | | padding: 20px; |
| | | 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; |
| | | } |
| | | } |
| | | .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); |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | | .dev-text { |
| | | margin-bottom: 10px; |
| | | } |
| | | } |
| | | } |
| | | ::v-deep .el-tree-node__content { |
| | | display: -webkit-box; |
| | | display: -ms-flexbox; |
| | |
| | | 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; |