| | |
| | | > |
| | | <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> |
| | |
| | | label="值类型" |
| | | fixed |
| | | align="center" |
| | | key="isenable" |
| | | prop="isenable" |
| | | key="valueType" |
| | | prop="valueType" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="valuetype" :value="scope.row.isenable" /> |
| | | <dict-tag :options="valuetypelb" :value="scope.row.valueType" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <el-form-item label="版本号" prop="deptId"> |
| | | <el-input |
| | | v-model="indexform.version" |
| | | placeholder="请输入指标种类" |
| | | placeholder="默认1.0" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <el-row v-if="!measurement"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="值类型"> |
| | | <el-radio-group v-model="indexform.isenable"> |
| | | <el-radio-group v-model="indexform.valueType"> |
| | | <el-radio :label="1">选项</el-radio> |
| | | <el-radio :label="2">文本</el-radio> |
| | | <el-radio :label="3">数值</el-radio> |
| | |
| | | v-for="index in mode" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | | :value="index.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-card |
| | | class="box-card" |
| | | style="margin-bottom: 20px" |
| | | v-if="indexform.isenable == 1" |
| | | v-if="indexform.valueType == 1" |
| | | > |
| | | <Regular |
| | | :TargetoptionList="testuserList" |
| | |
| | | @syioption="syioption" |
| | | @xiayioption="xiayioption" |
| | | /> |
| | | |
| | | </el-card> |
| | | <div v-if="indexform.isenable == 2"> |
| | | <div v-if="indexform.valueType == 2"> |
| | | <el-form-item label="收集信息"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | placeholder="填入收集信息" |
| | | v-model="indexform.textarea" |
| | | v-model="indexform.reply" |
| | | maxlength="50" |
| | | show-word-limit |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </div> |
| | | <div v-if="indexform.isenable == 3"> |
| | | <div v-if="indexform.valueType == 3"> |
| | | <el-form-item label="收集信息"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="填入收集信息" |
| | | v-model="indexform.textarea" |
| | | v-model="indexform.reply" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | |
| | | </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> |
| | |
| | | addtargetillness, |
| | | selectIvrLibaTargetAssortList, |
| | | addtreeselectIvrLibaTargetAssort, |
| | | edittreeselectIvrLibaTargetAssort, |
| | | delselectIvrLibaTargetAssort, |
| | | } from "@/api/AiCentre/index"; |
| | | import { getToken } from "@/utils/auth"; |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | valuetypelb:[], |
| | | |
| | | // 表单校验 |
| | | rules: {}, |
| | |
| | | this.gettabList(); |
| | | this.getDeptTree(); |
| | | this.mode = store.getters.mode; |
| | | this.valuetype = store.getters.valuetype; |
| | | this.valuetypelb = store.getters.valuetypelb; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.qyoptions = store.getters.usable; |
| | | }, |
| | |
| | | getDeptTree() { |
| | | selectIvrLibaTargetAssortList({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | // 筛选节点 |
| | |
| | | }, |
| | | // 添加类别树 |
| | | submitsidecolumn() { |
| | | if (this.classifyform.id) { |
| | | edittreeselectIvrLibaTargetAssort(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; |
| | | }, |
| | | handleNodeClick(data) { |
| | | this.queryParams.assortid = data.id; |
| | |
| | | this.targetoptionList |
| | | ); |
| | | if (valid) { |
| | | if (!this.indexform.version) this.indexform.version = "1.0"; |
| | | if (this.indexform.id != undefined) { |
| | | this.indexform.isoperation = 2; |
| | | gettargetInfoedit(this.indexform).then((response) => { |