From 32d69fcb07f2325d9b93ce1a8b3716eec73ae70f Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 08 四月 2024 18:24:07 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/intention/index.vue |   54 +++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 35 insertions(+), 19 deletions(-)

diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index 1d48246..79481fc 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -495,7 +495,7 @@
                 </el-form-item>
               </el-col>
             </el-row>
-            <el-card class="box-card" style="margin-bottom: 20px">
+            <!-- <el-card class="box-card" style="margin-bottom: 20px">
               <el-table v-loading="loading" :data="testuserList">
                 <el-table-column
                   label="搴忓彿"
@@ -568,9 +568,15 @@
                   </template>
                 </el-table-column>
               </el-table>
-            </el-card>
+            </el-card> -->
             <el-card class="box-card" style="margin-bottom: 20px">
-              <Regular :TargetoptionList="testuserList" />
+              <Regular
+                :TargetoptionList="testuserList"
+                @addoption="addoption"
+                @deloption="deloption"
+                @syioption="syioption"
+                @xiayioption="xiayioption"
+              />
             </el-card>
             <el-row :gutter="20">
               <el-col :span="12">
@@ -777,7 +783,7 @@
       dynamicTags: [],
       illnesslist: [],
       illnesslistapi: [],
-     optionsillness: [],
+      optionsillness: [],
       qyoptions: [],
       mode: [],
       optionstag: [],
@@ -822,7 +828,7 @@
       });
     },
 
-   processElement(element) {
+    processElement(element) {
       // 杩斿洖涓�涓柊鐨勫璞★紝灏唀lement瀵硅薄鐨勫睘鎬soperation璁剧疆涓�1
       return { ...element, isoperation: 1 };
     },
@@ -973,8 +979,9 @@
         guid: 1,
         id: this.indexform.id,
         targettype: this.indexform.targettype,
-        targetvalue: "璐",
-        targetregex: "(?!涓�.*|娌�.*|鏈�.*)^.*([璐钩鍑]|璐|璇勫|璇勫),10",
+        targetvalue: "",
+        targetregex: "",
+        targetregex2: "",
       };
       this.testuserList.push(objvakue);
       // this.indexform.targetoptionList.push(objvakue);
@@ -1121,7 +1128,7 @@
     resetQuery() {
       this.dateRange = [];
       this.resetForm("queryForm");
-      this.queryParams={
+      this.queryParams = {
         pageNum: 1,
         pageSize: 10,
       };
@@ -1182,6 +1189,12 @@
     /** 鏇存柊/淇敼鎻愪氦鎸夐挳 */
     submitForm: function () {
       // this.indexform.targetoptionList=[]
+      this.indexform.targetoptionList = this.indexform.targetoptionList.map(
+        (res) => {
+          res.isoperation = 2;
+          return res;
+        }
+      );
       this.$refs["indexform"].validate((valid) => {
         this.indexform.targetoptionList = this.testuserList.concat(
           this.targetoptionList
@@ -1375,20 +1388,23 @@
   font-size: 20px;
   cursor: pointer;
 }
-::v-deep .el-tree{
+::v-deep .el-tree {
   position: relative;
-    cursor: default;
-    border-radius: 5px;
-    background: #EFF8FE;
-    color: #606266;
+  cursor: default;
+  border-radius: 5px;
+  background: #eff8fe;
+  color: #606266;
   border: 1px solid #bbe1fa;
-      // border: 1px solid #dcdfe6;
-    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
-
+  // border: 1px solid #dcdfe6;
+  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12),
+    0 0 6px 0 rgba(0, 0, 0, 0.04);
 }
-::v-deep .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
-    background-color: #7799FB ;
-    color: #fff;
+::v-deep
+  .el-tree--highlight-current
+  .el-tree-node.is-current
+  > .el-tree-node__content {
+  background-color: #7799fb;
+  color: #fff;
 }
 ::v-deep .el-button--mini.is-circle {
   padding: 7px;

--
Gitblit v1.9.3