| | |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="(item, index) in qyoptions" |
| | | v-for="(item, index) in askvaluetype" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | label="指标类型" |
| | | fixed |
| | | align="center" |
| | | key="scriptType" |
| | | prop="scriptType" |
| | | key="valueType" |
| | | prop="valueType" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="valuetypelb" |
| | | :value="scope.row.scriptType" |
| | | :value="scope.row.valueType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="index in qyoptions" |
| | | v-for="index in usable" |
| | | :key="index.value" |
| | | :label="index.label" |
| | | :value="index.value" |
| | |
| | | <div v-if="indexform.scriptType == 3"> |
| | | <el-form-item label="收集信息"> |
| | | <el-card class="box-card"> |
| | | <div v-for="item in indexform.targetoptionList"> |
| | | <span>{{ "(" + item.orderno + ")" }}</span> |
| | | <div v-for="item in testuserList" style="margin-bottom: 10px"> |
| | | <el-input |
| | | type="text" |
| | | placeholder="填入收集信息" |
| | | v-model="indexform.optiondesc" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | @click="deloption(item)" |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | ></el-button> |
| | | <span slot="prepend">{{ "(" + item.orderno + ")" }}</span> |
| | | </el-input> |
| | | </div> |
| | | </el-card> |
| | |
| | | radio: "主分类", |
| | | testvalue: "", |
| | | testgovalue: "", |
| | | creatype:'',//指标临时类型 |
| | | creatype: "", //指标临时类型 |
| | | hasValue: true, |
| | | classifyform: { |
| | | categoryname: "", |
| | |
| | | illnesslist: [], |
| | | illnesslistapi: [], |
| | | optionsillness: [], |
| | | qyoptions: [], |
| | | mode: [], |
| | | optionstag: [], |
| | | targetoptionList: [], |
| | | Temporarytype: "", |
| | | |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | valuetypelb: [], |
| | | askvaluetype: [], |
| | | |
| | | // 表单校验 |
| | | rules: { |
| | |
| | | this.gettabList(); |
| | | this.getDeptTree(); |
| | | this.mode = store.getters.mode; |
| | | this.valuetypelb = store.getters.askvaluetype; |
| | | this.askvaluetype = store.getters.askvaluetype; |
| | | this.valuetypelb = store.getters.valuetypelb; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.qyoptions = store.getters.askvaluetype; |
| | | this.usable = store.getters.usable; |
| | | }, |
| | | methods: { |
| | |
| | | this.deletefenl = row.title; |
| | | } |
| | | }, |
| | | // 便捷标签 |
| | | // 便捷标签插入填空 |
| | | tsgnameto(row) { |
| | | let inputValueArr = ""; |
| | | let value = indexform.targetoptionList.length + 1; |
| | | let value = this.testuserList.length + 1; |
| | | |
| | | let el = document.querySelector("#" + this.currentInputId); |
| | | //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index) |
| | |
| | | selectLength, |
| | | "__" + value + "__" |
| | | ); |
| | | this.indexform.targetoptionList.push({ |
| | | this.testuserList.push({ |
| | | orderno: value, |
| | | optiondesc: "", |
| | | isoperation: 1, |
| | | }); |
| | | // 把数组重新转换为字符串并赋值 |
| | | inputValueArr = inputValueArr.join(""); |
| | | |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "targetdesc") { |
| | | this.indexform.targetdesc = inputValueArr; |
| | |
| | | } |
| | | }, |
| | | Changtype(item) { |
| | | console.log(this.testuserList); |
| | | console.log(item, "选项变更的处理"); |
| | | if (item==3) { |
| | | this.$modal |
| | | .confirm('更改类型为填空后选项将清空是否继续?') |
| | | .then(() => { |
| | | |
| | | if (item == 3 && this.testuserList[0].targetvalue) { |
| | | this.$modal |
| | | .confirm("更改类型为填空后选项将清空是否继续?") |
| | | .then(() => { |
| | | this.testuserList = []; |
| | | this.Temporarytype = this.indexform.scriptType; |
| | | }) |
| | | .catch(() => { |
| | | |
| | | this.indexform.scriptType = this.Temporarytype; |
| | | }); |
| | | } else if (item == 3) { |
| | | this.testuserList = []; |
| | | this.Temporarytype = this.indexform.scriptType; |
| | | } |
| | | { |
| | | this.Temporarytype = this.indexform.scriptType; |
| | | } |
| | | }, |
| | | // 疾病----------------------- |
| | |
| | | console.log(this.targetoptionList, "aaaa.targetoptionList"); |
| | | this.testuserList.splice(index, 1); // 从索引位置删除一个元素 |
| | | this.sortFn(); |
| | | |
| | | if (this.indexform.scriptType == 3) { |
| | | this.$modal.msgWarning( |
| | | "填空项已删除请手动删除题目内容中对应的填空项" |
| | | ); |
| | | } |
| | | } else { |
| | | console.log("未找到该对象"); |
| | | } |
| | | }, |
| | | |
| | | syioption(row) { |
| | | const index = this.getIndexInArray(this.testuserList, row); |
| | | const item = this.testuserList.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | |
| | | this.indexform = {}; |
| | | this.indexform = row; |
| | | this.indexform.scriptType = Number(row.scriptType); |
| | | this.Temporarytype = this.indexform.scriptType; |
| | | if (!row.targetoptionList[0]) { |
| | | row.targetoptionList = [ |
| | | { |
| | |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | isoperation: 1, |
| | | orderno: 1, |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |