WXL
2024-02-01 79925204a4e1588d1031ca0429ae318a608a8928
src/components/Regular/index.vue
@@ -53,6 +53,7 @@
            type="success"
            v-for="crux in dynamiccruxs"
            closable
            effect="dark"
            :disable-transitions="false"
            @close="handleClosecrux(crux)"
          >
@@ -64,6 +65,7 @@
            @change="handleInputConfirm"
            filterable
            remote
            allow-create
            reserve-keyword
            default-first-option
            :loading="loading"
@@ -93,6 +95,7 @@
            type="warning"
            v-for="crux in nodynamiccruxs"
            closable
            effect="dark"
            :disable-transitions="false"
            @close="handleClosecrux(crux)"
          >
@@ -104,6 +107,7 @@
            @change="handleInputConfirm"
            filterable
            remote
            allow-create
            reserve-keyword
            default-first-option
            :loading="loading"
@@ -199,6 +203,7 @@
      let regex = "";
      let regexno = "";
      let hostregex = "";
      let hostregexno = "";
      for (let i = 0; i < this.dynamiccruxs.length; i++) {
        regex += `${this.dynamiccruxs[i]}|`;
@@ -209,8 +214,10 @@
      regex = regex.slice(0, -1);
      regexno = regexno.slice(0, -1);
      hostregex = "^(?!." + `${regexno}` + ")(.(" + `${regex}` + ")+.*)$";
      console.log(hostregex);
      hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
      hostregexno = "(?=.*(?:" + `${regexno}` + ")).*$";
      console.log(hostregex, "确定字匹配");
      console.log(hostregexno, "否定字匹配");
    },
    // 控制文件
    handleChange(file, fileList) {
@@ -264,6 +271,9 @@
      this.whether = 2;
      console.log(2);
    },
    handleSelectionChange(selection) {
      $emit("handleSelectionChange", selection);
    },
  },
};
</script>