| | |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="valuetypelb" :value="scope.row.valueType" /> |
| | | <dict-tag |
| | | :options="valuetypelb" |
| | | :value="scope.row.valueType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | v-model="indexform.reply" |
| | | maxlength="50" |
| | | show-word-limit |
| | | > |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </div> |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="测试输入" prop="nickName"> |
| | | <el-input |
| | | v-model="testvalue" |
| | | v-model="indexform.content" |
| | | placeholder="请输入测试内容" |
| | | maxlength="40" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | | <el-button type="success">开始测试</el-button> |
| | | <el-button type="success" @click="testtagerlist" |
| | | >开始测试</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | |
| | | gettargetInfo, |
| | | particulartarget, |
| | | gettargetInfoedit, |
| | | testtagerlist, |
| | | addtarget, |
| | | deletetarget, |
| | | getillnesslist, |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | valuetypelb:[], |
| | | valuetypelb: [], |
| | | |
| | | // 表单校验 |
| | | rules: {}, |
| | |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | isoperation: 1, |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |
| | |
| | | console.log(row); |
| | | this.title = "指标详情"; |
| | | this.indexform = row; |
| | | if (!row.targetoptionList[0]) { |
| | | row.targetoptionList = [ |
| | | { |
| | | targettype: "1", |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | isoperation: 1, |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |
| | | nodynamiccruxsJson: "", |
| | | }, |
| | | ]; |
| | | } |
| | | this.dynamicTags = row.baseTagList.map(this.processElement); |
| | | this.testuserList = row.targetoptionList; |
| | | this.testvalue = ""; |
| | | this.indexopen = true; |
| | | this.measurement = false; |
| | | }, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 测试表单 |
| | | testtagerlist() { |
| | | if (this.indexform.content) { |
| | | let data = this.indexform; |
| | | data.targetoptionList = this.testuserList.concat(this.targetoptionList); |
| | | testtagerlist(data).then((res) => { |
| | | this.$modal.msgSuccess("测试成功"); |
| | | this.testgovalue = res.msg; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | this.$modal.msgError("请填写测试内容"); |
| | | return; |
| | | } |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const userIds = row.id || this.ids; |