From 968d62e6a3093b810dcd3db160a2b362a6e4ef69 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 06 六月 2024 14:56:32 +0800
Subject: [PATCH] 测试完成
---
src/components/Regular/index.vue | 65 ++++++++++++++++++++++++--------
1 files changed, 48 insertions(+), 17 deletions(-)
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index a1b49cb..98b5462 100644
--- a/src/components/Regular/index.vue
+++ b/src/components/Regular/index.vue
@@ -3,7 +3,7 @@
<div class="topicxq" v-for="item in TargetoptionList">
<el-row :gutter="10">
<el-col :span="12"
- ><el-form-item label="閫夐」鍚�">
+ ><el-form-item label="閫夐」鍚嶇О">
<el-input
type="text"
placeholder="璇疯緭鍏�"
@@ -13,7 +13,15 @@
</el-input> </el-form-item
></el-col>
<el-col :span="12"
- ><el-form-item label="鑺傜偣ID">
+ ><el-form-item label="棰勮鍊�">
+ <el-radio-group v-model="radio">
+ <el-radio :label="3">鏄�</el-radio>
+ <el-radio :label="6">鍚�</el-radio>
+ </el-radio-group>
+ </el-form-item></el-col
+ >
+ <el-col :span="12" v-if="intent"
+ ><el-form-item label="閫夐」鑺傜偣">
<el-input
type="text"
placeholder="璇疯緭鍏ヨ妭鐐�"
@@ -23,7 +31,19 @@
</el-input> </el-form-item
></el-col>
</el-row>
- <el-row :gutter="10">
+ <el-row :gutter="10" v-if="!intent">
+ <el-col :span="20"
+ ><el-form-item label="閫夐」璇存槑">
+ <el-input
+ type="text"
+ placeholder="璇疯緭鍏�"
+ v-model="item.targetvalue2"
+ show-word-limit
+ >
+ </el-input> </el-form-item
+ ></el-col>
+ </el-row>
+ <el-row :gutter="10" v-if="intent">
<el-col :span="12"
><el-form-item label="澶勭悊">
<el-input
@@ -36,11 +56,11 @@
</el-input> </el-form-item
></el-col>
<el-col :span="12"
- ><el-form-item label="閫変腑璺宠浆(缂�)">
+ ><el-form-item label="閫変腑璺宠浆">
<el-input
type="text"
placeholder="璇疯緭鍏ラ鐩妭鐐�"
- v-model="item.jump"
+ v-model="item.nextQuestion"
show-word-limit
>
</el-input> </el-form-item
@@ -55,7 +75,7 @@
closable
effect="dark"
:disable-transitions="false"
- @close="handleClosecrux(crux, item)"
+ @close="handleClosecrux(crux, item, 1)"
>
{{ crux }}
</el-tag>
@@ -97,7 +117,7 @@
closable
effect="dark"
:disable-transitions="false"
- @close="handleClosecrux(crux, item)"
+ @close="handleClosecrux(crux, item, 2)"
>
{{ crux }}
</el-tag>
@@ -218,14 +238,15 @@
type: Boolean,
default: true,
},
+ intent: {
+ type: Boolean,
+ default: true,
+ },
},
created() {
this.regular = store.getters.regular;
this.noregular = store.getters.noregular;
-
-
-
},
methods: {
@@ -254,10 +275,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();
@@ -275,16 +300,22 @@
);
},
- handleClosecrux(crux, item) {
- if (this.whether == 1) {
- this.dynamiccruxs.splice(this.dynamiccruxs.indexOf(crux), 1);
+ handleClosecrux(crux, item, whether) {
+ if (whether == 1) {
+ item.dynamiccruxs.splice(item.dynamiccruxs.indexOf(crux), 1);
+ console.log(1);
+ console.log(item.dynamiccruxs);
+ console.log(item.nodynamiccruxs);
} else {
- this.nodynamiccruxs.splice(this.nodynamiccruxs.indexOf(crux), 1);
+ console.log(2);
+ item.nodynamiccruxs.splice(item.nodynamiccruxs.indexOf(crux), 1);
}
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) ==
--
Gitblit v1.9.3