| | |
| | | > |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | label="正常值范围" |
| | | align="center" |
| | | key="warndown" |
| | |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.warnup }}~{{ scope.row.warndown }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column |
| | | label="指标描述" |
| | | align="center" |
| | |
| | | ><i class="el-icon-edit"></i>修改</span |
| | | ></el-button |
| | | > |
| | | <el-button |
| | | <!-- <el-button |
| | | size="medium" |
| | | type="text" |
| | | @click="handlemeasurement(scope.row)" |
| | |
| | | ><span class="button-textcs" |
| | | ><i class="el-icon-help"></i>测试</span |
| | | ></el-button |
| | | > |
| | | > --> |
| | | <el-button |
| | | size="medium" |
| | | type="text" |
| | |
| | | <el-col :span="24"> |
| | | <el-form-item label="适用场景" prop="suitWayList"> |
| | | <el-select |
| | | class="el-select1" |
| | | v-model="indexform.suitWayList" |
| | | multiple |
| | | @change="changeselect" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | <el-card |
| | | class="box-card" |
| | | style="margin-bottom: 20px" |
| | | v-if="indexform.valueType == 1 || indexform.valueType == 2" |
| | | v-if="indexform.scriptType == 1 || indexform.scriptType == 2" |
| | | > |
| | | <Regular |
| | | :TargetoptionList="testuserList" |
| | | :intent="false" |
| | | :hasValue="hasValue" |
| | | @addoption="addoption" |
| | | @deloption="deloption" |
| | | @syioption="syioption" |
| | | @xiayioption="xiayioption" |
| | | /> |
| | | </el-card> |
| | | <div v-if="indexform.valueType == 3"> |
| | | <div v-if="indexform.scriptType == 3"> |
| | | <el-form-item label="收集信息"> |
| | | <el-input |
| | | type="text" |
| | |
| | | radio: "主分类", |
| | | testvalue: "", |
| | | testgovalue: "", |
| | | hasValue: true, |
| | | classifyform: { |
| | | categoryname: "", |
| | | }, //类别表单 |
| | |
| | | getIndexInArray(arr, obj) { |
| | | // 返回数组中指定元素的索引 |
| | | return arr.indexOf(obj); |
| | | }, |
| | | changeselect(row) { |
| | | console.log(row); |
| | | this.hasValue = row.includes('2'); |
| | | }, |
| | | //删除分类 |
| | | deletefenlei(row) { |
| | |
| | | id: this.indexform.id, |
| | | targettype: this.indexform.targettype, |
| | | isoperation: 1, |
| | | isabnormal: 0, |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | |
| | | dynamiccruxsJson: item.dynamiccruxsJson, |
| | | nodynamiccruxsJson: item.nodynamiccruxsJson, |
| | | targetoptionid: item.targetoptionid, |
| | | isabnormal: item.isabnormal, |
| | | }; |
| | | }); |
| | | console.log(this.testuserList); |
| | |
| | | this.title = "指标详情"; |
| | | this.indexform = {}; |
| | | this.indexform = row; |
| | | this.indexform.scriptType = Number(row.scriptType); |
| | | if (!row.targetoptionList[0]) { |
| | | row.targetoptionList = [ |
| | | { |
| | |
| | | height: 400px; |
| | | } |
| | | } |
| | | .el-select { |
| | | width: 40%; |
| | | } |
| | | ::v-deep.el-tabs--left, |
| | | .el-tabs--right { |
| | | overflow: hidden; |