WXL
2024-05-31 49fcdb7178dffc69769e2fb8cb6a03e204cb1e68
src/components/Regular/index.vue
@@ -12,7 +12,7 @@
            >
            </el-input> </el-form-item
        ></el-col>
        <el-col :span="12"
        <el-col :span="12" v-if="intent"
          ><el-form-item label="选项节点">
            <el-input
              type="text"
@@ -23,7 +23,7 @@
            </el-input> </el-form-item
        ></el-col>
      </el-row>
      <el-row :gutter="10">
      <el-row :gutter="10" v-if="intent">
        <el-col :span="12"
          ><el-form-item label="处理">
            <el-input
@@ -218,6 +218,10 @@
      type: Boolean,
      default: true,
    },
    intent: {
      type: Boolean,
      default: true,
    },
  },
  created() {
@@ -251,10 +255,14 @@
      }
      regex = regex.slice(0, -1);
      regexno = regexno.slice(0, -1);
      if (regexno) {
        hostregexno = "^(?!.*(?:" + `${regexno}` + ")).*$";
      } else {
        hostregexno = "";
      }
      hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
      hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$";
      this.TargetoptionList[index].hostregex = hostregex;
      this.TargetoptionList[index].hostregex2 = hostregexno;
      this.TargetoptionList[index].targetregex = hostregex;
      this.TargetoptionList[index].targetregex2 = hostregexno;
      console.log(hostregex, "确定字匹配");
      console.log(hostregexno, "否定字匹配");
      this.handleSelectionChange();
@@ -285,7 +293,9 @@
      this.generateRegex(item);
    },
    handleInputConfirm(row) {
      console.log(this.TargetoptionList, "TargetoptionList");
      let index = this.TargetoptionList.indexOf(row);
      console.log(1112);
      if (this.whether == 1 && this.inputValue) {
        if (
          this.TargetoptionList[index].dynamiccruxs.indexOf(this.inputValue) ==