| | |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | fixed |
| | | align="center" |
| | | key="targetid" |
| | | prop="targetid" |
| | | key="id" |
| | | prop="id" |
| | | /> |
| | | <el-table-column |
| | | label="值类型" |
| | | fixed |
| | | align="center" |
| | | key="isenable" |
| | | prop="isenable" |
| | |
| | | |
| | | <el-table-column |
| | | label="操作" |
| | | fixed="right" |
| | | align="center" |
| | | width="200" |
| | | class-name="small-padding fixed-width" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <!-- deptOptions --> |
| | | <el-row v-if="!measurement"> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="指标分类"> |
| | | <el-select |
| | | v-model="indexform.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in deptOptions" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in group.ivrLibaTargetAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="语言" prop="deptId"> |
| | | <el-select |
| | | v-model="indexform.language" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="是否可用" prop="isAvailable"> |
| | | <el-select |
| | | v-model="indexform.isAvailable" |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-card> |
| | | <el-card class="box-card" style="margin-bottom: 20px"> |
| | | <Regular :TargetoptionList="testuserList" /> |
| | | </el-card> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="测试输入" prop="nickName"> |
| | |
| | | } from "@/api/AiCentre/index"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import Treeselect from "@riophae/vue-treeselect"; |
| | | import Regular from "@/components/Regular"; //正则组件 |
| | | import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
| | | import { listtag } from "@/api/system/label"; |
| | | import store from "@/store"; |
| | |
| | | export default { |
| | | name: "questionnaire", |
| | | dicts: ["sys_normal_disable", "sys_user_sex"], |
| | | components: { Treeselect }, |
| | | components: { Treeselect, Regular }, |
| | | data() { |
| | | return { |
| | | topactiveName: "Local", //顶部选择 |
| | |
| | | // 疾病----------------------- |
| | | illnessUpdate(row) { |
| | | this.illnessVisible = true; |
| | | this.indexid = row.targetid; |
| | | this.indexid = row.id; |
| | | this.illnesslistapi = []; |
| | | const illnessqueryParams = { |
| | | pageNum: 1, |
| | |
| | | console.log(response); |
| | | this.optionsillness = response.rows; |
| | | }); |
| | | getillness({ outid: row.targetid, type: 1 }).then((res) => { |
| | | getillness({ outid: row.id, type: 1 }).then((res) => { |
| | | this.illnesslist = res.rows; |
| | | console.log(res); |
| | | }); |
| | |
| | | addoption() { |
| | | const objvakue = { |
| | | guid: 1, |
| | | targetid: this.indexform.targetid, |
| | | id: this.indexform.id, |
| | | targettype: this.indexform.targettype, |
| | | targetvalue: "贫血", |
| | | targetregex: "(?!不.*|没.*|未.*)^.*([贫平凭血]|贫血|评学|评学),10", |
| | |
| | | targetvalue: item.targetvalue, |
| | | targetregex: item.targetregex, |
| | | targetoptionid: item.targetoptionid, |
| | | targetid: this.indexform.targetid, |
| | | id: this.indexform.id, |
| | | targettype: this.indexform.targettype, |
| | | isoperation: item.targetoptionid ? 2 : 1, |
| | | categoryName: item.categoryName, |
| | |
| | | getDeptTree() { |
| | | selectIvrLibaTargetAssortList({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | console.log(res); |
| | | }); |
| | | }, |
| | | // 筛选节点 |
| | |
| | | addtreeselectIvrLibaTargetAssort(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | remove(a, b) { |
| | |
| | | reset() { |
| | | this.indexform = { |
| | | suitWay: undefined, |
| | | targetid: undefined, |
| | | id: undefined, |
| | | targetdesc: undefined, |
| | | baseTagList: [], |
| | | targetoptionList: [], |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map((item) => item.targetid); |
| | | this.ids = selection.map((item) => item.id); |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | | }, |
| | |
| | | this.targetoptionList |
| | | ); |
| | | if (valid) { |
| | | if (this.indexform.targetid != undefined) { |
| | | if (this.indexform.id != undefined) { |
| | | this.indexform.isoperation = 2; |
| | | gettargetInfoedit(this.indexform).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const userIds = row.targetid || this.ids; |
| | | const userIds = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除指标名称为"' + row.targetname + '"的数据项?') |
| | | .then(function () { |