From cf9259c2ebee0e82c32864a1ee91d96c403b9099 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期日, 04 二月 2024 13:42:04 +0800
Subject: [PATCH] 指标完成

---
 src/api/AiCentre/index.js                                |    2 
 src/views/patient/propaganda/index.vue                   |   48 ++---
 src/views/repositoryai/templateku/configurat/index.vue   |   32 ++-
 src/views/repositoryai/verbaltrick/particulars/index.vue |   16 +
 src/components/Regular/index.vue                         |  151 +++++++++++++-----
 src/views/knowledge/questionbank/particulars/index.vue   |    4 
 src/views/repositoryai/general/particulars/index.vue     |   77 ++++++--
 src/api/AiCentre/SingleTask.js                           |    8 +
 src/views/knowledge/questionnaire/compilequer/index.vue  |   22 ++
 src/views/repositoryai/intention/index.vue               |   48 +++--
 src/views/patient/propaganda/particty.vue                |   48 +++++
 11 files changed, 315 insertions(+), 141 deletions(-)

diff --git a/src/api/AiCentre/Hetask.js b/src/api/AiCentre/SingleTask.js
similarity index 84%
rename from src/api/AiCentre/Hetask.js
rename to src/api/AiCentre/SingleTask.js
index 72280de..e47d1b2 100644
--- a/src/api/AiCentre/Hetask.js
+++ b/src/api/AiCentre/SingleTask.js
@@ -46,4 +46,12 @@
       method: "post",
       data: data,
     });
+  }
+  // 鏂板鎴栨煡璇㈠崟涓�浠诲姟
+  export function Editsingletask(data) {
+    return request({
+      url: "/smartor/taskcall/insertOrUpdateTask",
+      method: "post",
+      data: data,
+    });
   }
\ No newline at end of file
diff --git a/src/api/AiCentre/index.js b/src/api/AiCentre/index.js
index c470a54..da3d22b 100644
--- a/src/api/AiCentre/index.js
+++ b/src/api/AiCentre/index.js
@@ -5,6 +5,6 @@
 export * from './publicity'
 export * from './Qtemplate'
 export * from './questionnaire'
-export * from './Hetask'
+export * from './SingleTask'
 
 
diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue
index fb1f240..a1b49cb 100644
--- a/src/components/Regular/index.vue
+++ b/src/components/Regular/index.vue
@@ -51,18 +51,18 @@
           <el-tag
             :key="crux"
             type="success"
-            v-for="crux in dynamiccruxs"
+            v-for="crux in item.dynamiccruxs"
             closable
             effect="dark"
             :disable-transitions="false"
-            @close="handleClosecrux(crux)"
+            @close="handleClosecrux(crux, item)"
           >
             {{ crux }}
           </el-tag>
           <el-select
             v-model="inputValue"
-            v-if="inputVisible"
-            @change="handleInputConfirm"
+            v-if="item.inputVisible"
+            @change="handleInputConfirm(item)"
             filterable
             remote
             allow-create
@@ -72,10 +72,10 @@
             placeholder="璇烽�夋嫨"
           >
             <el-option
-              v-for="item in regular"
-              :key="item.label"
-              :label="item.label"
-              :value="item.label"
+              v-for="items in regular"
+              :key="items.label"
+              :label="items.label"
+              :value="items.label"
             >
             </el-option>
           </el-select>
@@ -83,7 +83,7 @@
             v-else
             class="button-new-tag"
             size="small"
-            @click="showInput"
+            @click="showInput(item)"
             >+ 鏂板</el-button
           >
         </div>
@@ -93,18 +93,18 @@
           <el-tag
             :key="crux"
             type="warning"
-            v-for="crux in nodynamiccruxs"
+            v-for="crux in item.nodynamiccruxs"
             closable
             effect="dark"
             :disable-transitions="false"
-            @close="handleClosecrux(crux)"
+            @close="handleClosecrux(crux, item)"
           >
             {{ crux }}
           </el-tag>
           <el-select
             v-model="inputValue"
-            v-if="noinputVisible"
-            @change="handleInputConfirm"
+            v-if="item.noinputVisible"
+            @change="handleInputConfirm(item)"
             filterable
             remote
             allow-create
@@ -114,10 +114,10 @@
             placeholder="璇烽�夋嫨"
           >
             <el-option
-              v-for="item in noregular"
-              :key="item.value"
-              :label="item.label"
-              :value="item.label"
+              v-for="items in noregular"
+              :key="items.value"
+              :label="items.label"
+              :value="items.label"
             >
             </el-option>
           </el-select>
@@ -125,7 +125,7 @@
             v-else
             class="button-new-tag"
             size="small"
-            @click="showInputno"
+            @click="showInputno(item)"
             >+ 鏂板</el-button
           >
         </div>
@@ -149,9 +149,33 @@
         >
         <el-col :span="8">
           <div style="text-align: right; padding-right: 10px">
-            <el-button type="danger" @click="deloption(item)" round
-              >鍒犻櫎</el-button
-            >
+            <el-button
+              v-if="controlsc"
+              @click="$emit('addoption', item)"
+              type="success"
+              icon="el-icon-circle-plus-outline"
+              circle
+            ></el-button>
+            <el-button
+              type="danger"
+              icon="el-icon-delete"
+              circle
+              @click="$emit('deloption', item)"
+            ></el-button>
+            <el-button
+              v-if="controlsc"
+              @click="$emit('syioption', item)"
+              type="primary"
+              icon="el-icon-top"
+              circle
+            ></el-button>
+            <el-button
+              v-if="controlsc"
+              @click="$emit('xiayioption', item)"
+              type="primary"
+              icon="el-icon-bottom"
+              circle
+            ></el-button>
           </div>
         </el-col>
       </el-row>
@@ -180,7 +204,7 @@
       loading: false,
       regular: [],
       noregular: [],
-      nodynamiccruxs: ["鍒�"],
+      nodynamiccruxs: ["鍒�", "涓�"],
       dynamiccruxs: ["濂�"],
     };
   },
@@ -190,34 +214,53 @@
       required: true,
       default: () => [],
     },
+    controlsc: {
+      type: Boolean,
+      default: true,
+    },
   },
 
   created() {
     this.regular = store.getters.regular;
     this.noregular = store.getters.noregular;
+
+    
+   
   },
 
   methods: {
     // 鐢熸垚姝e垯
-    generateRegex() {
+    generateRegex(row) {
+      let index = this.TargetoptionList.indexOf(row);
+      console.log(index);
       let regex = "";
       let regexno = "";
       let hostregex = "";
       let hostregexno = "";
 
-      for (let i = 0; i < this.dynamiccruxs.length; i++) {
-        regex += `${this.dynamiccruxs[i]}|`;
+      for (
+        let i = 0;
+        i < this.TargetoptionList[index].dynamiccruxs.length;
+        i++
+      ) {
+        regex += `${this.TargetoptionList[index].dynamiccruxs[i]}|`;
       }
-      for (let i = 0; i < this.nodynamiccruxs.length; i++) {
-        regexno += `${this.nodynamiccruxs[i]}|`;
+      for (
+        let i = 0;
+        i < this.TargetoptionList[index].nodynamiccruxs.length;
+        i++
+      ) {
+        regexno += `${this.TargetoptionList[index].nodynamiccruxs[i]}|`;
       }
       regex = regex.slice(0, -1);
       regexno = regexno.slice(0, -1);
-
       hostregex = "(?=.*(?:" + `${regex}` + ")).*$";
-      hostregexno = "(?=.*(?:" + `${regexno}` + ")).*$";
+      hostregexno = "^(?!.(?:" + `${regexno}` + ")).*$";
+      this.TargetoptionList[index].hostregex = hostregex;
+      this.TargetoptionList[index].hostregex2 = hostregexno;
       console.log(hostregex, "纭畾瀛楀尮閰�");
       console.log(hostregexno, "鍚﹀畾瀛楀尮閰�");
+      this.handleSelectionChange();
     },
     // 鎺у埗鏂囦欢
     handleChange(file, fileList) {
@@ -232,47 +275,63 @@
       );
     },
 
-    handleClosecrux(crux) {
+    handleClosecrux(crux, item) {
       if (this.whether == 1) {
         this.dynamiccruxs.splice(this.dynamiccruxs.indexOf(crux), 1);
       } else {
         this.nodynamiccruxs.splice(this.nodynamiccruxs.indexOf(crux), 1);
       }
-      this.generateRegex();
+      this.generateRegex(item);
     },
-    handleInputConfirm() {
+    handleInputConfirm(row) {
+      let index = this.TargetoptionList.indexOf(row);
       if (this.whether == 1 && this.inputValue) {
-        if (this.dynamiccruxs.indexOf(this.inputValue) == -1) {
-          this.dynamiccruxs.push(this.inputValue);
+        if (
+          this.TargetoptionList[index].dynamiccruxs.indexOf(this.inputValue) ==
+          -1
+        ) {
+          this.TargetoptionList[index].dynamiccruxs.push(this.inputValue);
         } else {
           this.$message.error("鍏抽敭瀛楀凡瀛樺湪");
         }
-        this.inputVisible = false;
+        // this.inputVisible = false;
+        this.TargetoptionList[index].inputVisible = false;
       } else if (this.whether == 2 && this.inputValue) {
         console.log(this.inputValue);
-        console.log(this.nodynamiccruxs.indexOf(this.inputValue));
-        if (this.nodynamiccruxs.indexOf(this.inputValue) == -1) {
-          this.nodynamiccruxs.push(this.inputValue);
+        console.log(
+          this.TargetoptionList[index].nodynamiccruxs.indexOf(this.inputValue)
+        );
+        if (
+          this.TargetoptionList[index].nodynamiccruxs.indexOf(
+            this.inputValue
+          ) == -1
+        ) {
+          this.TargetoptionList[index].nodynamiccruxs.push(this.inputValue);
         } else {
           this.$message.error("鍏抽敭瀛楀凡瀛樺湪");
         }
-        this.noinputVisible = false;
+        // this.noinputVisible = false;
+        this.TargetoptionList[index].noinputVisible = false;
       }
-      this.generateRegex();
+      this.generateRegex(row);
 
       this.inputValue = "";
     },
-    showInput() {
-      this.inputVisible = true;
+    showInput(row) {
+      let index = this.TargetoptionList.indexOf(row);
+      // this.TargetoptionList[index].inputVisible = true;
+      this.$set(this.TargetoptionList[index], "inputVisible", true);
       this.whether = 1;
     },
-    showInputno() {
-      this.noinputVisible = true;
+    showInputno(row) {
+      let index = this.TargetoptionList.indexOf(row);
+      // this.TargetoptionList[index].noinputVisible = true;
+      this.$set(this.TargetoptionList[index], "noinputVisible", true);
       this.whether = 2;
-      console.log(2);
     },
     handleSelectionChange(selection) {
-      $emit("handleSelectionChange", selection);
+      console.log(this.TargetoptionList);
+      this.$emit("handleSelectionChange", selection);
     },
   },
 };
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index f7495b4..93ed503 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -231,7 +231,7 @@
                 </div>
               </el-form-item>
             </el-row>
-            <el-form-item label="閫氱煡鍙橀噺" prop="name">
+            <!-- <el-form-item label="閫氱煡鍙橀噺" prop="name">
               <div style="margin-bottom: 5px" v-for="item in variablelist">
                 <el-row>
                   <el-col :span="5">
@@ -278,7 +278,7 @@
                   </div>
                 </div>
               </el-col></el-row
-            >
+            > -->
           </div>
 
           <div class="headline">
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 56940e3..880cbd3 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -470,7 +470,7 @@
         >
         <el-button type="primary" @click="laststep()">涓婁竴姝�</el-button>
         <el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
-        <el-button @click="submitForm('ruleForm')">淇濆瓨棰樼洰鏁版嵁</el-button>
+        <el-button @click="Departmenttreatment('ruleForm')">淇濆瓨棰樼洰鏁版嵁</el-button>
       </div>
       <!-- 闂嵎棰勮 -->
       <div v-if="Editprogress == 3">
@@ -689,6 +689,7 @@
       illnessVisible: false, //鎸囨爣鐤剧梾寮规
       deptOptions: [],
       optionsillness: [],
+      delScriptVOList: [],
       illnesslistapi: [],
       illnesslist: [],
       tempDetpRelevanceslist: [],
@@ -786,6 +787,10 @@
     Departmenttreatment() {
       this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist);
       console.log(this.tempDetpRelevanceslist);
+      this.ruleForm.svyLibTopics = this.ruleForm.svyLibTopics.concat(
+        this.delScriptVOList
+      );
+      console.log(this.ruleForm.svyLibTopics, "this.ruleForm.svyLibTopics");
       const result = this.tempDetpRelevanceslist.map(
         (subArr) => subArr[subArr.length - 1]
       );
@@ -817,7 +822,6 @@
       setTimeout(() => {
         this.submitForm();
       }, 1000);
-      // this.submitForm();
     },
     // 涓嬩竴姝�
     nextstep() {
@@ -859,17 +863,23 @@
     // 鏂板棰樼洰
     addtopic(row) {
       row.isoperation = 1;
+      row.svyLibTopicoptions.forEach((item) => {
+        item.isoperation = 1;
+      });
       this.ruleForm.svyLibTopics.push(row);
     },
     handleDelete(row) {
       let index = this.ruleForm.svyLibTopics.indexOf(row);
-      this.ruleForm.svyLibTopics[index].isoperation = 3;
+      this.ruleForm.svyLibTopics.splice(index, 1);
+      row.isoperation=3;
+      this.delScriptVOList.push(row);
       this.sortFn();
     },
     handleUpdate(row) {
-      getissuelist({ svyid: row.svyid }).then((res) => {
-        this.topicobj = res.rows[0];
-      });
+      console.log(row);
+      this.topicobj = row;
+      // getissuelist({ svyid: row.svyid }).then((res) => {
+      // });
     },
     syioption(row) {
       const index = this.getIndexInArray(this.ruleForm.svyLibTopics, row);
diff --git a/src/views/patient/propaganda/index.vue b/src/views/patient/propaganda/index.vue
index 88b06e6..3ba5975 100644
--- a/src/views/patient/propaganda/index.vue
+++ b/src/views/patient/propaganda/index.vue
@@ -194,52 +194,48 @@
           </template>
         </el-table-column>
         <el-table-column
-          label="鎿嶄綔浜哄憳(榛樿鐧婚檰浜哄彲閫�)"
+          label="鎿嶄綔浜哄憳"
           align="center"
-          key="topicnumberaa"
-          prop="topicnumberaa"
+          key="operatePerson"
+          prop="operatePerson"
           width="120"
         />
 
         <el-table-column
-          label="灏辫瘖鏃堕棿(缂�)"
+          label="灏辫瘖鏃堕棿"
           sortable
           align="center"
-          prop="createTime"
+          key="visitTime"
+          prop="visitTime"
           width="160"
         >
-          <template slot-scope="scope">
-            <span>{{ parseTime(scope.row.createTime) }}</span>
+        </el-table-column>
+        <el-table-column
+          label="瀹f暀鏃堕棿"
+          sortable
+          align="center"
+          prop="sendTime"
+          width="160"
+        >
+        <template slot-scope="scope">
+            <span>{{ scope.row.heTask.sendTime }}</span>
           </template>
         </el-table-column>
         <el-table-column
-          label="瀹f暀鏃堕棿锛堢己锛�"
+          label="鎺ユ敹鏃堕棿"
           sortable
           align="center"
-          prop="createTime"
+          key="receiveTime"
+          prop="receiveTime"
           width="160"
         >
-          <template slot-scope="scope">
-            <span>{{ parseTime(scope.row.createTime) }}</span>
-          </template>
         </el-table-column>
         <el-table-column
-          label="鎺ユ敹鏃堕棿锛堢己锛�"
-          sortable
-          align="center"
-          prop="createTime"
-          width="160"
-        >
-          <template slot-scope="scope">
-            <span>{{ parseTime(scope.row.createTime) }}</span>
-          </template>
-        </el-table-column>
-        <el-table-column
-          label="閫氱煡鐘舵�侊紙缂猴級"
+          label="閫氱煡鐘舵��"
           fixed="right"
           align="center"
-          key="topicnumber"
-          prop="topicnumber"
+          key="sendStatus"
+          prop="sendStatus"
           width="120"
           :show-overflow-tooltip="true"
         >
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 0f18cf6..fcc98e2 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -14,10 +14,7 @@
             title="瀹f暀瀵硅薄"
             description="鍦ㄦ湰閮ㄩ�夋嫨瀹f暀鐥呬汉"
           ></el-step>
-          <el-step
-            icon="el-icon-user"
-            title="妯$増纭"
-          ></el-step>
+          <el-step icon="el-icon-user" title="妯$増纭"></el-step>
         </el-steps>
       </div>
     </div>
@@ -284,7 +281,7 @@
             </div>
           </div>
         </div>
-        <el-button type="success" @click="submitForm('ruleForm')">{{
+        <el-button type="success" @click="nextstep('ruleForm')">{{
           quote ? "绔嬪嵆鍒涘缓" : "浠诲姟璇︽儏璁剧疆"
         }}</el-button>
         <el-button @click="resetForm('ruleForm')">閲嶇疆</el-button>
@@ -624,6 +621,7 @@
   addhetask,
   gethetaskinfo,
   delhetaskinfo,
+  Editsingletask,
 } from "@/api/AiCentre/index";
 import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢
 
@@ -772,12 +770,41 @@
 
   created() {
     this.id = this.$route.query.id;
+    this.form.type = this.$route.query.type;
     this.Addsubtask();
     this.Getsubtask();
     this.Acquisitiontype();
   },
 
   methods: {
+    // {
+    //   濮撳悕: { "${name}": "榫欏偛澶�" },
+    //   鍦板潃: { "${dzz}": "榫欏" },
+    //   鐢佃瘽: { "${dhh}": "鍏釜鍏�" },
+    // }
+    // 瀵硅薄杞暟缁�
+    convertFormat1ToFormat2(data) {
+      let result = [];
+      for (let key in data) {
+        let innerKey = Object.keys(data[key])[0];
+        result.push({
+          name: key,
+          value: innerKey,
+          fill: data[key][innerKey],
+        });
+      }
+      return result;
+    },
+    // 鏁扮粍杞璞�
+    convertFormat2ToFormat1(data) {
+      let result = {};
+      data.forEach((item) => {
+        let innerObj = {};
+        innerObj[item.value] = item.fill;
+        result[item.name] = innerObj;
+      });
+      return result;
+    },
     // 鑾峰彇褰撳墠绫诲瀷
     Acquisitiontype() {
       let queryParams = {
@@ -857,11 +884,18 @@
         });
       }
     },
-    // 涓嬩竴姝�
-    submitForm(formName) {
+    nextstep() {
       if (this.Editprogress <= 3) {
         return this.Editprogress++;
       }
+    },
+    // 涓嬩竴姝�
+    submitForm(formName) {
+      Editsingletask(this.form).then((response) => {
+        if (res.code == 200) {
+          this.$router.go(-1);
+        }
+      });
       // 鎻愪氦
       // this.$refs[formName].validate((valid, object) => {
       //   if (valid) {
diff --git a/src/views/repositoryai/general/particulars/index.vue b/src/views/repositoryai/general/particulars/index.vue
index a62d362..a5f229d 100644
--- a/src/views/repositoryai/general/particulars/index.vue
+++ b/src/views/repositoryai/general/particulars/index.vue
@@ -6,12 +6,7 @@
         <el-divider></el-divider>
 
         <el-table :data="targetList" :row-class-name="tableRowClassName">
-          <el-table-column
-            label="搴忓彿"
-            align="center"
-            key="id"
-            prop="id"
-          />
+          <el-table-column label="搴忓彿" align="center" key="id" prop="id" />
           <el-table-column
             label="闂涓婚锛堢己锛�"
             align="center"
@@ -105,20 +100,47 @@
             </template>
           </el-table-column>
         </el-table>
-        <div style="margin: 15px; margin-top: 50px">
-          <div class="leftvlue-jbxx">璇濇湳缂栬緫</div>
-          <el-divider></el-divider>
-          <el-form
-            :model="ruleForm"
-            :rules="rules"
-            ref="ruleForm"
-            label-width="100px"
-            class="demo-ruleForm"
-          >
+        <el-form
+          :model="ruleForm"
+          :rules="rules"
+          ref="ruleForm"
+          label-width="100px"
+          class="demo-ruleForm"
+        >
+          <div style="margin: 15px; margin-top: 50px">
+            <div class="leftvlue-jbxx">璇濇湳缂栬緫</div>
+            <el-divider></el-divider>
+            <el-row :gutter="20">
+              <el-col :span="12">
+                <el-form-item label="妯$増鍚嶇О" prop="name">
+                  <el-input
+                    v-model="ruleForm.name"
+                    placeholder="璇疯緭鍏�"
+                  ></el-input> </el-form-item
+              ></el-col>
+              <el-col :span="12">
+                <el-form-item label="妯$増鍒嗙被" prop="resource">
+                  <el-select
+                    v-model="ruleForm.groupID"
+                    placeholder="璇烽�夋嫨鍒嗙被"
+                  >
+                    <el-option
+                      v-for="item in deptOptions"
+                      :key="item.intertcatid"
+                      :label="item.categoryname"
+                      :value="item.intertcatid"
+                    >
+                    </el-option>
+                  </el-select> </el-form-item
+              ></el-col>
+            </el-row>
             <el-row :gutter="20">
               <el-col :span="12">
                 <el-form-item label="闂涓婚" prop="name">
-                  <el-input v-model="ruleForm.name" placeholder="璇疯緭鍏�"></el-input> </el-form-item
+                  <el-input
+                    v-model="ruleForm.name"
+                    placeholder="璇疯緭鍏�"
+                  ></el-input> </el-form-item
               ></el-col>
               <el-col :span="12">
                 <el-form-item label="鏄惁鍙敤" prop="resource">
@@ -182,7 +204,11 @@
             </el-form-item>
 
             <el-form-item label="鍖归厤鏂囨湰" prop="desc">
-              <el-input type="textarea" placeholder="璇疯緭鍏ュ尮閰嶆鍒�" v-model="ruleForm.desc"></el-input>
+              <el-input
+                type="textarea"
+                placeholder="璇疯緭鍏ュ尮閰嶆鍒�"
+                v-model="ruleForm.desc"
+              ></el-input>
             </el-form-item>
             <el-form-item>
               <el-button type="primary" @click="submitForm('ruleForm')"
@@ -190,8 +216,8 @@
               >
               <el-button @click="resetForm('ruleForm')">閲嶇疆</el-button>
             </el-form-item>
-          </el-form>
-        </div>
+          </div>
+        </el-form>
       </div>
     </el-card>
   </div>
@@ -203,6 +229,8 @@
   editgeneravaluel,
   addgeneravaluel,
   getgeneravaluelinfo,
+  getgeneralinfo,
+  getgeneralclassify,
   delgeneravaluelinfo,
   getgeneravaluellist,
 } from "@/api/AiCentre/index";
@@ -213,6 +241,7 @@
       id: null,
       usable: [],
       languagelist: [],
+      deptOptions:[],
       mode: [],
       pitchon: "杩樺ソ鍚�",
       targetList: [{ switchText: "杩樺ソ鍚�" }, { switchText: "杩樹笉閿�" }],
@@ -237,7 +266,7 @@
   },
 
   created() {
-    // this.getList();
+    this.getList();
     this.usable = store.getters.usable;
     this.languagelist = store.getters.languagelist;
     this.mode = store.getters.mode;
@@ -247,11 +276,15 @@
     getList() {
       this.loading = true;
       this.id = this.$route.query.id;
-      getgeneravaluelinfo({ pid: this.id }).then((res) => {
+      getgeneralinfo({ pid: this.id }).then((res) => {
         this.targetList = res.rows;
         console.log(this.targetList);
         this.loading = false;
       });
+      getgeneralclassify({}).then((res) => {
+        this.deptOptions = res.rows;
+        console.log(res);
+      });
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {},
diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index 1d48246..9b83381 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,
       };
@@ -1375,20 +1382,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;
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 5c24a30..a9d910a 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -511,7 +511,7 @@
                     >
                   </div>
                 </div>
-                <div
+                <!-- <div
                   class="topicxq"
                   v-for="item in topicobj.ivrLibaScriptTargetoptionList"
                 >
@@ -570,7 +570,6 @@
                     >
                     </el-input>
                   </el-form-item>
-
                   <el-row :gutter="10">
                     <el-col :span="16">
                       <el-form-item label="璇煶鏂囦欢">
@@ -595,7 +594,12 @@
                       </div>
                     </el-col>
                   </el-row>
-                </div>
+                </div> -->
+                <Regular
+                  :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList"
+                  @deloption="deloption"
+                  :controlsc="false"
+                />
                 <!-- 鏃犲尮閰嶇被鍨� -->
                 <div class="topicxq">
                   <el-row :gutter="10">
@@ -884,6 +888,7 @@
 import { listtag } from "@/api/system/label";
 import store from "@/store";
 import { listDept } from "@/api/system/dept";
+import Regular from "@/components/Regular"; //姝e垯缁勪欢
 import {
   getFollowupclassify,
   delFollowupclassify,
@@ -903,6 +908,8 @@
 } from "@/api/AiCentre/index";
 
 export default {
+  name: "SpeechTemplates",
+  components: { Regular },
   data() {
     return {
       Editprogress: 1, //缂栬緫杩涘害
@@ -960,6 +967,7 @@
       },
       tempDetpRelevanceslist: [],
       delScriptVOList: [],
+      optionIndex:'',
       variablelist: [
         { variatename: "濮撳悕", variate: "${name}", default: 1 },
         { variatename: "鐢佃瘽", variate: "${phone}", default: 1 },
@@ -1104,8 +1112,6 @@
     // 绉戝澶勭悊
     Departmenttreatment() {
       this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist);
-      console.log(this.tempDetpRelevanceslist);
-      console.log(this.delScriptVOList, "this.delScriptVOList");
       this.ruleForm.ivrLibaTemplateScriptVOList =
         this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList);
       const result = this.tempDetpRelevanceslist.map(
@@ -1165,9 +1171,6 @@
           });
         });
     },
-
-    // 淇敼棰樼洰淇℃伅
-    Submittopicobj() {},
 
     // 鎺у埗鏂囦欢
     handleChange(file, fileList) {
@@ -1264,8 +1267,8 @@
         res.data.isoperation = 1;
         res.data.id = null;
         res.data.ivrLibaScriptTargetoptionList.forEach((item) => {
-        item.isoperation = 1;
-      });
+          item.isoperation = 1;
+        });
         this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data);
       });
     },
@@ -1280,6 +1283,7 @@
     },
     handleUpdate(row) {
       console.log(row);
+      this.optionIndex = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row);
       if (row.ivrLibaScriptTargetoptionList.length) {
         this.topicobj = row;
       } else {
@@ -1320,6 +1324,14 @@
         });
       console.log(this.ruleForm.ivrLibaTemplateScriptVOList);
     },
+    // -----------------------璇濇湳閫夐」
+    deloption() {},
+    // 淇敼棰樼洰淇℃伅
+    Submittopicobj() {
+     this.ruleForm.ivrLibaTemplateScriptVOList[this.optionIndex]=this.topicobj;
+     this.$modal.msgSuccess("鏆傚瓨閫夐」鎴愬姛");
+    },
+   
     // ---------------------
     resetForm(formName) {
       this.$refs[formName].resetFields();
diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue
index 0daa5c7..3d5189e 100644
--- a/src/views/repositoryai/verbaltrick/particulars/index.vue
+++ b/src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -455,7 +455,7 @@
             </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="indexform.ivrLibaScriptTargetoptionList"
@@ -531,7 +531,16 @@
                 </template>
               </el-table-column>
             </el-table>
-          </el-card>
+          </el-card> -->
+          <el-card class="box-card" style="margin-bottom: 20px">
+              <Regular
+                :TargetoptionList="indexform.ivrLibaScriptTargetoptionList"
+                @addoption="addoption"
+                @deloption="deloption"
+                @syioption="syioption"
+                @xiayioption="xiayioption"
+              />
+            </el-card>
           <el-row :gutter="20">
             <el-col :span="12">
               <el-form-item label="娴嬭瘯杈撳叆" prop="targetvalue">
@@ -576,9 +585,12 @@
   gettargetInfolist,
   gettargetInfo,
 } from "@/api/AiCentre/index";
+import Regular from "@/components/Regular"; //姝e垯缁勪欢
 import store from "@/store";
 
 export default {
+  name:'Verbalproblem',
+  components: {  Regular },
   data() {
     return {
       Editprogress: 1, //缂栬緫杩涘害

--
Gitblit v1.9.3