From 79925204a4e1588d1031ca0429ae318a608a8928 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 01 二月 2024 11:32:23 +0800 Subject: [PATCH] 指标完成 --- src/components/Regular/index.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index f9f20de..fb1f240 100644 --- a/src/components/Regular/index.vue +++ b/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> -- Gitblit v1.9.3