From 1be7d1dc4426a005621ddb14c96960ca4280bed1 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 20 六月 2024 09:51:11 +0800
Subject: [PATCH] 测试完成
---
src/components/Regular/index.vue | 40 +++++++++++++++++++++++++++++++++++-----
1 files changed, 35 insertions(+), 5 deletions(-)
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index 1789177..e71b7be 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,6 +13,14 @@
</el-input> </el-form-item
></el-col>
<el-col :span="12"
+ ><el-form-item label="棰勮鍊�">
+ <el-radio-group v-model="item.isabnormal">
+ <el-radio :label="1">鏄�</el-radio>
+ <el-radio :label="0">鍚�</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"
@@ -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.optiondesc"
+ 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
@@ -132,7 +152,7 @@
</el-form-item>
<el-row :gutter="10">
- <el-col :span="16">
+ <el-col :span="16" v-if="intent">
<el-form-item label="璇煶鏂囦欢">
<el-upload
class="upload-demo"
@@ -147,7 +167,7 @@
</el-upload>
</el-form-item></el-col
>
- <el-col :span="8">
+ <el-col :span="intent ? 8 : 22">
<div style="text-align: right; padding-right: 10px">
<el-button
v-if="controlsc"
@@ -218,6 +238,10 @@
type: Boolean,
default: true,
},
+ intent: {
+ type: Boolean,
+ default: true,
+ },
},
created() {
@@ -251,8 +275,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, "纭畾瀛楀尮閰�");
@@ -285,7 +313,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) ==
--
Gitblit v1.9.3