From 628fd01beea81bac2f0299472d528860ae07cf3f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 02 六月 2024 10:52:30 +0800
Subject: [PATCH] 测试完成

---
 src/components/Regular/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index 6d64170..6368c34 100644
--- a/src/components/Regular/index.vue
+++ b/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,8 +255,12 @@
       }
       regex = regex.slice(0, -1);
       regexno = regexno.slice(0, -1);
+      if (regexno) {
+        hostregexno = "^(?!.*(?:" + `${regexno}` + ")).*$";
+      } else {
+        hostregexno = "";
+      }
       hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
-      hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$";
       this.TargetoptionList[index].targetregex = hostregex;
       this.TargetoptionList[index].targetregex2 = hostregexno;
       console.log(hostregex, "纭畾瀛楀尮閰�");

--
Gitblit v1.9.3