WXL
2024-07-22 452e7fb4ea242b0d7bb821abc0cb3bf465129ffd
src/views/repositoryai/intention/index.vue
@@ -212,7 +212,7 @@
              >
              </el-table-column>
              <el-table-column
              <!-- <el-table-column
                label="正常值范围"
                align="center"
                key="warndown"
@@ -222,7 +222,7 @@
                <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"
@@ -297,7 +297,7 @@
                      ><i class="el-icon-edit"></i>修改</span
                    ></el-button
                  >
                  <el-button
                  <!-- <el-button
                    size="medium"
                    type="text"
                    @click="handlemeasurement(scope.row)"
@@ -305,7 +305,7 @@
                    ><span class="button-textcs"
                      ><i class="el-icon-help"></i>测试</span
                    ></el-button
                  >
                  > -->
                  <el-button
                    size="medium"
                    type="text"
@@ -495,8 +495,10 @@
              <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
@@ -513,18 +515,19 @@
            <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"
@@ -707,6 +710,7 @@
      radio: "主分类",
      testvalue: "",
      testgovalue: "",
      hasValue: true,
      classifyform: {
        categoryname: "",
      }, //类别表单
@@ -810,6 +814,10 @@
    getIndexInArray(arr, obj) {
      // 返回数组中指定元素的索引
      return arr.indexOf(obj);
    },
    changeselect(row) {
      console.log(row);
      this.hasValue = row.includes('2');
    },
    //删除分类
    deletefenlei(row) {
@@ -954,6 +962,7 @@
        id: this.indexform.id,
        targettype: this.indexform.targettype,
        isoperation: 1,
        isabnormal: 0,
        targetvalue: "",
        targetregex: "",
        targetregex2: "",
@@ -1008,6 +1017,7 @@
          dynamiccruxsJson: item.dynamiccruxsJson,
          nodynamiccruxsJson: item.nodynamiccruxsJson,
          targetoptionid: item.targetoptionid,
          isabnormal: item.isabnormal,
        };
      });
      console.log(this.testuserList);
@@ -1179,6 +1189,7 @@
      this.title = "指标详情";
      this.indexform = {};
      this.indexform = row;
      this.indexform.scriptType = Number(row.scriptType);
      if (!row.targetoptionList[0]) {
        row.targetoptionList = [
          {
@@ -1396,6 +1407,9 @@
    height: 400px;
  }
}
.el-select {
  width: 40%;
}
::v-deep.el-tabs--left,
.el-tabs--right {
  overflow: hidden;