From f3bf99618bc379a9fa91cefefc813f770dcddc53 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 24 四月 2024 16:10:56 +0800
Subject: [PATCH] 测试完成

---
 src/views/repositoryai/verbaltrick/index.vue             |   43 +
 src/api/AiCentre/questionnaire.js                        |    8 
 src/views/repositoryai/templateku/configurat/index.vue   |  330 +++++++++--------
 src/api/AiCentre/Qtemplate.js                            |    8 
 src/api/AiCentre/publicity.js                            |    8 
 src/views/knowledge/questionnaire/compilequer/index.vue  |    4 
 src/views/knowledge/questionbank/index.vue               |   37 +
 src/views/knowledge/education/index.vue                  |   35 +
 src/api/AiCentre/indicator.js                            |    8 
 src/views/repositoryai/verbaltrick/particulars/index.vue |  195 +++------
 src/views/knowledge/questionbank/particulars/index.vue   |  168 ++++---
 src/store/getters.js                                     |   34 +
 src/views/knowledge/questionnaire/index.vue              |   37 +
 src/views/repositoryai/intention/index.vue               |   63 ++
 src/views/patient/propaganda/particty.vue                |   56 +-
 src/api/AiCentre/Followup.js                             |    8 
 src/components/SFtable/index.vue                         |   11 
 src/views/repositoryai/templateku/index.vue              |   37 +
 18 files changed, 663 insertions(+), 427 deletions(-)

diff --git a/src/api/AiCentre/Followup.js b/src/api/AiCentre/Followup.js
index 6036c75..e15db97 100644
--- a/src/api/AiCentre/Followup.js
+++ b/src/api/AiCentre/Followup.js
@@ -47,6 +47,14 @@
       data: data,
     });
   }
+  // 鏂板闅忚妯$増鍒嗙被鏍�
+  export function editFollowupclassify(data) {
+    return request({
+      url: "/smartor/templateassort/edit",
+      method: "post",
+      data: data,
+    });
+  }
   // 鍒犻櫎闅忚妯$増鍒嗙被
 export function delFollowupclassify(Id) {
   return request({
diff --git a/src/api/AiCentre/Qtemplate.js b/src/api/AiCentre/Qtemplate.js
index b34befe..ce570fe 100644
--- a/src/api/AiCentre/Qtemplate.js
+++ b/src/api/AiCentre/Qtemplate.js
@@ -40,6 +40,14 @@
       data: data,
     });
   }
+    // 鏂板闂嵎妯$増鍒嗙被
+    export function editQtemplateclassify(data) {
+      return request({
+        url: "/smartor/svyLibTitleCategory/edit",
+        method: "post",
+        data: data,
+      });
+    }
   // 鍒犻櫎闂嵎妯$増鍒嗙被
 export function delQtemplateclassify(Id) {
   return request({
diff --git a/src/api/AiCentre/indicator.js b/src/api/AiCentre/indicator.js
index 25934d2..006829e 100644
--- a/src/api/AiCentre/indicator.js
+++ b/src/api/AiCentre/indicator.js
@@ -117,6 +117,14 @@
   });
 }
 // 鏂板鎸囨爣鍒嗙被鏍�
+export function edittreeselectIvrLibaTargetAssort(data) {
+  return request({
+    url: "/smartor/assort/edit",
+    method: "post",
+    data:data,
+  });
+}
+// 鏂板鎸囨爣鍒嗙被鏍�
 export function gettagerlist(data) {
   return request({
     url: "/smartor/target/list",
diff --git a/src/api/AiCentre/publicity.js b/src/api/AiCentre/publicity.js
index 085b23c..a44da04 100644
--- a/src/api/AiCentre/publicity.js
+++ b/src/api/AiCentre/publicity.js
@@ -40,6 +40,14 @@
       data: data,
     });
   }
+   // 鏂板瀹f暀妯$増鍒嗙被鏍�
+   export function editheLibraryAssort(data) {
+    return request({
+      url: "/smartor/heLibraryAssort/edit",
+      method: "post",
+      data: data,
+    });
+  }
   // 鍒犻櫎瀹f暀妯$増鍒嗙被
 export function delheLibraryAssort(Id) {
   return request({
diff --git a/src/api/AiCentre/questionnaire.js b/src/api/AiCentre/questionnaire.js
index 15bb16b..6040f3c 100644
--- a/src/api/AiCentre/questionnaire.js
+++ b/src/api/AiCentre/questionnaire.js
@@ -40,6 +40,14 @@
       data: data,
     });
   }
+  // 鏂板闂嵎闂鍒嗙被
+  export function editissueclassify(data) {
+    return request({
+      url: "/smartor/svyLibTopicCategory/edit",
+      method: "post",
+      data: data,
+    });
+  }
   // 鍒犻櫎闂嵎闂鍒嗙被
 export function delissueclassify(Id) {
   return request({
diff --git a/src/components/SFtable/index.vue b/src/components/SFtable/index.vue
index 21b1746..4bf2088 100644
--- a/src/components/SFtable/index.vue
+++ b/src/components/SFtable/index.vue
@@ -43,7 +43,6 @@
     >
       <template slot-scope="scope">
         <dict-tag :options="qyoptions" :value="scope.row.usestate" />
-
       </template>
     </el-table-column>
     <el-table-column
@@ -144,8 +143,14 @@
         }
         return "鎵嬪姩";
       }
-      if (column.property === "createTime") {
-        return dayjs(cellValue).format("YYYY.MM.DD HH:mm:ss");
+      if (
+        column.property === "createTime" ||
+        column.property === "inhosptime"
+      ) {
+        if (cellValue === null) {
+          return "";
+        }
+        return dayjs(cellValue).format("YYYY-MM-DD ");
       }
       return cellValue;
     },
diff --git a/src/store/getters.js b/src/store/getters.js
index 49aee33..926ae9a 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -107,13 +107,12 @@
         listClass: "",
       },
     },
-
   ],
 
   // 鍊肩被鍨�
   valuetype: (state) => [
     {
-      value: "1",
+      value: 1,
       label: "閫夐」",
       raw: {
         cssClass: "",
@@ -121,7 +120,7 @@
       },
     },
     {
-      value: "2",
+      value: 2,
       label: "鏂囨湰",
       raw: {
         cssClass: "",
@@ -129,7 +128,7 @@
       },
     },
     {
-      value: "3",
+      value: 3,
       label: "鏁板��",
       raw: {
         cssClass: "",
@@ -137,6 +136,33 @@
       },
     },
   ],
+    // 鍊肩被鍨�(鍒楄〃灞曠ず)
+    valuetypelb: (state) => [
+      {
+        value: '1',
+        label: "閫夐」",
+        raw: {
+          cssClass: "",
+          listClass: "",
+        },
+      },
+      {
+        value: '2',
+        label: "鏂囨湰",
+        raw: {
+          cssClass: "",
+          listClass: "",
+        },
+      },
+      {
+        value: '3',
+        label: "鏁板��",
+        raw: {
+          cssClass: "",
+          listClass: "",
+        },
+      },
+    ],
   // 鏄惁鍙敤
   usable: (state) => [
     {
diff --git a/src/views/knowledge/education/index.vue b/src/views/knowledge/education/index.vue
index fb79e5a..de1d072 100644
--- a/src/views/knowledge/education/index.vue
+++ b/src/views/knowledge/education/index.vue
@@ -39,6 +39,17 @@
               >
               </el-button>
             </span>
+            <span v-if="data.id > 0">
+              <el-button
+                type="text"
+                circle
+                size="mini"
+                @click="() => altertag(node, data)"
+                ><span class="button-textxg"
+                  ><i class="el-icon-edit-outline"></i
+                ></span>
+              </el-button>
+            </span>
           </span>
         </el-tree>
       </div>
@@ -390,7 +401,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+        <el-button @click="getDeptTree()">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
       </div>
     </el-dialog>
@@ -459,6 +470,7 @@
   getheLibraryAssort,
   delheLibraryAssort,
   addheLibraryAssort,
+  editheLibraryAssort,
   addtargetillness,
   getlibrarylist,
   dellibraryinfo,
@@ -672,12 +684,21 @@
     getDeptTree() {
       getheLibraryAssort({}).then((res) => {
         this.deptOptions = res.rows;
-        console.log(res);
+        this.dialogFormVisible = false;
       });
     },
 
     // 娣诲姞绫诲埆鏍�
     submitsidecolumn() {
+      if (this.classifyform.id) {
+        editheLibraryAssort(this.classifyform).then((res) => {
+          this.getDeptTree();
+          this.$modal.msgSuccess("淇敼鎴愬姛");
+          this.classifyform = {};
+          this.dialogFormVisible = false;
+        });
+        return;
+      }
       let calssvalue = {};
       if (
         this.classifyform.pid &&
@@ -731,6 +752,16 @@
           .catch(() => {});
       }
     },
+    altertag(a, b) {
+      this.dialogFormVisible = true;
+      if (!b.pid) {
+        this.radio = "涓诲垎绫�";
+      } else {
+        this.radio = "瀛愬垎绫�";
+      }
+      this.classifyform = b;
+      this.dialogFormVisible = true;
+    },
 
     // 绛涢�夎妭鐐�
     filterNode(value, data) {
diff --git a/src/views/knowledge/questionbank/index.vue b/src/views/knowledge/questionbank/index.vue
index 33f8941..75826f5 100644
--- a/src/views/knowledge/questionbank/index.vue
+++ b/src/views/knowledge/questionbank/index.vue
@@ -29,7 +29,7 @@
         >
           <span class="custom-tree-node" slot-scope="{ node, data }">
             <span>{{ node.label }}</span>
-            <span>
+            <span v-if="data.id > 0">
               <el-button
                 type="text"
                 icon="el-icon-delete"
@@ -37,6 +37,17 @@
                 size="mini"
                 @click="() => remove(node, data)"
               >
+              </el-button>
+            </span>
+            <span v-if="data.id > 0">
+              <el-button
+                type="text"
+                circle
+                size="mini"
+                @click="() => altertag(node, data)"
+                ><span class="button-textxg"
+                  ><i class="el-icon-edit-outline"></i
+                ></span>
               </el-button>
             </span>
           </span>
@@ -326,7 +337,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+        <el-button @click="getDeptTree()">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
       </div>
     </el-dialog>
@@ -387,6 +398,7 @@
   getissueclassify,
   delissueclassify,
   addissueclassify,
+  editissueclassify,
   getissuelist,
   issueinfo,
   compileissue,
@@ -588,12 +600,21 @@
     getDeptTree() {
       getissueclassify({}).then((res) => {
         this.deptOptions = res.rows;
-        console.log(res);
+        this.dialogFormVisible = false;
       });
     },
 
     // 娣诲姞绫诲埆鏍�
     submitsidecolumn() {
+      if (this.classifyform.id) {
+        editissueclassify(this.classifyform).then((res) => {
+          this.getDeptTree();
+          this.$modal.msgSuccess("淇敼鎴愬姛");
+          this.classifyform = {};
+          this.dialogFormVisible = false;
+        });
+        return;
+      }
       let calssvalue = {};
       if (
         this.classifyform.pid &&
@@ -645,6 +666,16 @@
           .catch(() => {});
       }
     },
+    altertag(a, b) {
+      this.dialogFormVisible = true;
+      if (!b.pid) {
+        this.radio = "涓诲垎绫�";
+      } else {
+        this.radio = "瀛愬垎绫�";
+      }
+      this.classifyform = b;
+      this.dialogFormVisible = true;
+    },
 
     // 绛涢�夎妭鐐�
     filterNode(value, data) {
diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue
index 93ed503..cd24643 100644
--- a/src/views/knowledge/questionbank/particulars/index.vue
+++ b/src/views/knowledge/questionbank/particulars/index.vue
@@ -7,7 +7,11 @@
             棰樼洰璁剧疆璇︽儏
             <span style="margin-left: 30px"
               ><el-button type="primary" @click="compileissue"
-                >淇濆瓨</el-button
+                >淇� 瀛�</el-button
+              ></span
+            ><span style="margin-left: 30px"
+              ><el-button type="success" round @click="drawer = true"
+                >+閫夋嫨鎸囨爣</el-button
               ></span
             >
           </div>
@@ -101,14 +105,14 @@
               <el-col :span="6"
                 ><el-form-item label="棰樼洰绫诲瀷">
                   <el-select
-                    v-model="topicobj.topictype"
+                    v-model="topicobj.valueType"
                     size="medium"
                     filterable
                     placeholder="璇烽�夋嫨鍒嗙被"
                   >
                     <el-option
                       class="topicobjaa"
-                      v-for="item in xjxsoptions"
+                      v-for="item in valuetype"
                       :key="item.value"
                       :label="item.label"
                       :value="item.value"
@@ -280,66 +284,63 @@
               </el-col></el-row
             > -->
           </div>
-
-          <div class="headline">
-            閫夐」璁剧疆<span style="margin-left: 30px"
-              ><el-button type="primary" round @click="addoption"
-                >+鏂板</el-button
-              ></span
-            ><span style="margin-left: 30px"
-              ><el-button type="success" round @click="drawer = true"
-                >+閫夋嫨鎸囨爣</el-button
-              ></span
+          <div v-if="topicobj.valueType == 1">
+            <div class="headline">
+              閫夐」璁剧疆<span style="margin-left: 30px"
+                ><el-button type="primary" round @click="addoption"
+                  >+鏂板</el-button
+                ></span
+              >
+            </div>
+            <div
+              class="topicxq"
+              v-for="item in topicobj.svyLibTopicoptions"
+              v-if="item.isoperation != 3"
             >
-          </div>
-          <div
-            class="topicxq"
-            v-for="item in topicobj.svyLibTopicoptions"
-            v-if="item.isoperation != 3"
-          >
-            <el-row :gutter="10">
-              <el-col :span="11"
-                ><el-form-item label="閫夐」">
-                  <el-input
-                    type="text"
-                    placeholder="璇疯緭鍏ラ�夐」"
-                    v-model="item.optioncontent"
-                    show-word-limit
-                  >
-                  </el-input> </el-form-item
-              ></el-col>
-              <el-col :span="11"
-                ><el-form-item label="鍒嗗��">
-                  <el-input
-                    type="text"
-                    placeholder="璇疯緭鍏�"
-                    v-model="item.score"
-                    show-word-limit
-                  >
-                  </el-input> </el-form-item
-              ></el-col>
-              <el-col :span="2">
-                <el-button
-                  type="danger"
-                  icon="el-icon-delete"
-                  circle
-                  @click="deletexuanx(item)"
-                ></el-button>
-              </el-col>
-            </el-row>
+              <el-row :gutter="10">
+                <el-col :span="11"
+                  ><el-form-item label="閫夐」">
+                    <el-input
+                      type="text"
+                      placeholder="璇疯緭鍏ラ�夐」"
+                      v-model="item.optioncontent"
+                      show-word-limit
+                    >
+                    </el-input> </el-form-item
+                ></el-col>
+                <el-col :span="11"
+                  ><el-form-item label="鍒嗗��">
+                    <el-input
+                      type="text"
+                      placeholder="璇疯緭鍏�"
+                      v-model="item.score"
+                      show-word-limit
+                    >
+                    </el-input> </el-form-item
+                ></el-col>
+                <el-col :span="2">
+                  <el-button
+                    type="danger"
+                    icon="el-icon-delete"
+                    circle
+                    @click="deletexuanx(item)"
+                  ></el-button>
+                </el-col>
+              </el-row>
 
-            <el-row :gutter="10">
-              <el-form-item label="閫変腑鎻愮ず">
-                <el-input
-                  style="width: 40vw"
-                  type="textarea"
-                  autosize
-                  placeholder="璇疯緭鍏ュ唴瀹�"
-                  v-model="item.prompt"
-                >
-                </el-input
-              ></el-form-item>
-            </el-row>
+              <el-row :gutter="10">
+                <el-form-item label="閫変腑鎻愮ず">
+                  <el-input
+                    style="width: 40vw"
+                    type="textarea"
+                    autosize
+                    placeholder="璇疯緭鍏ュ唴瀹�"
+                    v-model="item.prompt"
+                  >
+                  </el-input
+                ></el-form-item>
+              </el-row>
+            </div>
           </div>
         </el-form>
       </el-card>
@@ -409,7 +410,7 @@
                 type="text"
                 @click="selectlabel(scope.row)"
                 ><span class="button-textxg"
-                  ><i class="el-icon-circle-plus-outline"></i>娣诲姞</span
+                  ><i class="el-icon-circle-plus-outline"></i>閫夋嫨</span
                 ></el-button
               >
             </template>
@@ -492,7 +493,7 @@
       illnesslist: [],
       classifylist: [],
       optionstag: [],
-      xjxsoptions: [],
+      valuetype: [],
       usable: [],
       mode: [], //鏂瑰紡
     };
@@ -505,7 +506,7 @@
     this.mode = store.getters.mode;
     this.languagelist = store.getters.languagelist;
     this.usable = store.getters.usable;
-    this.xjxsoptions = store.getters.xjxsoptions;
+    this.valuetype = store.getters.valuetype;
     this.required = store.getters.required;
   },
 
@@ -533,6 +534,10 @@
     // 鑾峰彇鏁版嵁
     getissueinfo() {
       this.id = this.$route.query.id;
+      // 鍒嗙被
+      getissueclassify({}).then((res) => {
+        this.classifylist = res.rows;
+      });
       if (!this.id) {
         return;
       }
@@ -552,10 +557,7 @@
       getillness({ outid: this.id, type: 4 }).then((res) => {
         this.illnesslist = res.rows;
       });
-      // 鍒嗙被
-      getissueclassify({}).then((res) => {
-        this.classifylist = res.rows;
-      });
+      
     },
     gettargetInfo() {
       gettargetInfo(this.queryParams).then((res) => {
@@ -635,13 +637,29 @@
     },
     // 閫夋嫨鎸囨爣
     selectlabel(row) {
-      const labellist = row.targetoptionList;
-      labellist.forEach((item) => {
-        this.topicobj.svyLibTopicoptions.push({
-          optioncontent: item.targetvalue,
-          isoperation: 1,
-        });
-      });
+      this.$modal
+        .confirm(
+          '鏄惁閫夋嫨鏍囬涓�"' + row.targetname + '"鐨勬寚鏍囧苟鏇挎崲濉厖闂淇℃伅锛�'
+        )
+        .then(() => {
+          console.log(row);
+          console.log(this.topicobj);
+          this.topicobj.topic = row.targetname;
+          this.topicobj.valueType = row.valueType;
+          this.topicobj.topicContent = row.targetdesc;
+          this.topicobj.isavailable = "0";
+          this.topicobj.language = "鏅�氳瘽";
+          this.topicobj.svyLibTopicoptions = [];
+          const labellist = row.targetoptionList;
+          labellist.forEach((item) => {
+            this.topicobj.svyLibTopicoptions.push({
+              optioncontent: item.targetvalue,
+              isoperation: 1,
+            });
+          });
+          this.drawer = false;
+        })
+        .catch(() => {});
     },
 
     // 鏍囩-----------------
diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue
index 880cbd3..7e7e61a 100644
--- a/src/views/knowledge/questionnaire/compilequer/index.vue
+++ b/src/views/knowledge/questionnaire/compilequer/index.vue
@@ -694,7 +694,7 @@
       illnesslist: [],
       tempDetpRelevanceslist: [],
       optionstag: [],
-      xjxsoptions: [],
+      valuetype: [],
       usable: [],
       required: [],
       mode: [], //鏂瑰紡
@@ -713,7 +713,7 @@
     this.languagelist = store.getters.languagelist;
     this.usable = store.getters.usable;
     this.required = store.getters.required;
-    this.xjxsoptions = store.getters.xjxsoptions;
+    this.valuetype = store.getters.valuetype;
     this.courtyardlist = store.getters.courtyardlist;
   },
 
diff --git a/src/views/knowledge/questionnaire/index.vue b/src/views/knowledge/questionnaire/index.vue
index 68dbafc..a201461 100644
--- a/src/views/knowledge/questionnaire/index.vue
+++ b/src/views/knowledge/questionnaire/index.vue
@@ -29,7 +29,7 @@
         >
           <span class="custom-tree-node" slot-scope="{ node, data }">
             <span>{{ node.label }}</span>
-            <span v-if="node.id > 0">
+            <span v-if="data.id > 0">
               <el-button
                 type="text"
                 icon="el-icon-delete"
@@ -37,6 +37,17 @@
                 size="mini"
                 @click="() => remove(node, data)"
               >
+              </el-button>
+            </span>
+            <span v-if="data.id > 0">
+              <el-button
+                type="text"
+                circle
+                size="mini"
+                @click="() => altertag(node, data)"
+                ><span class="button-textxg"
+                  ><i class="el-icon-edit-outline"></i
+                ></span>
               </el-button>
             </span>
           </span>
@@ -347,7 +358,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+        <el-button @click="getDeptTree()">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
       </div>
     </el-dialog>
@@ -418,6 +429,7 @@
   getQtemplateclassify,
   delQtemplateclassify,
   addQtemplateclassify,
+  editQtemplateclassify,
   getQtemplatelist,
   issueinfo,
   compileissue,
@@ -670,12 +682,21 @@
     getDeptTree() {
       getQtemplateclassify({}).then((res) => {
         this.deptOptions = res.rows;
-        console.log(res);
+        this.dialogFormVisible = false;
       });
     },
 
     // 娣诲姞绫诲埆鏍�
     submitsidecolumn() {
+      if (this.classifyform.id) {
+        editQtemplateclassify(this.classifyform).then((res) => {
+          this.getDeptTree();
+          this.$modal.msgSuccess("淇敼鎴愬姛");
+          this.classifyform = {};
+          this.dialogFormVisible = false;
+        });
+        return;
+      }
       let calssvalue = {};
       if (
         this.classifyform.pid &&
@@ -727,6 +748,16 @@
           .catch(() => {});
       }
     },
+    altertag(a, b) {
+      this.dialogFormVisible = true;
+      if (!b.pid) {
+        this.radio = "涓诲垎绫�";
+      } else {
+        this.radio = "瀛愬垎绫�";
+      }
+      this.classifyform = b;
+      this.dialogFormVisible = true;
+    },
 
     // 绛涢�夎妭鐐�
     filterNode(value, data) {
diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue
index 1129e13..3cbd02e 100644
--- a/src/views/patient/propaganda/particty.vue
+++ b/src/views/patient/propaganda/particty.vue
@@ -574,7 +574,7 @@
               <el-form-item label="鎮h�呭悕绉帮細">
                 <el-input v-model="patientqueryParams.name"></el-input>
               </el-form-item>
-              <el-form-item label="鎮h�呮潵婧�" prop="status">
+              <!-- <el-form-item label="鎮h�呮潵婧�" prop="status">
                 <el-select
                   v-model="patientqueryParams.topic"
                   placeholder="璇烽�夋嫨"
@@ -587,36 +587,28 @@
                   >
                   </el-option>
                 </el-select>
-              </el-form-item>
-              <el-form-item label="鍑洪櫌绉戝" prop="status">
+              </el-form-item> -->
+              <el-form-item label="灏辫瘖绉戝" prop="status">
                 <el-select
                   v-model="patientqueryParams.topic"
                   placeholder="璇烽�夋嫨"
                 >
-                  <el-option
-                    v-for="item in topicoptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
+                  <el-option-group
+                    v-for="group in topicoptions[0].children"
+                    :key="group.deptName"
+                    :label="group.deptName"
                   >
-                  </el-option>
+                    <el-option
+                      v-for="item in group.children"
+                      :key="item.deptId"
+                      :label="item.deptName"
+                      :value="item.deptId"
+                    >
+                    </el-option>
+                  </el-option-group>
                 </el-select>
               </el-form-item>
 
-              <el-form-item label="鍑洪櫌鐥呭尯" prop="status">
-                <el-select
-                  v-model="patientqueryParams.topic"
-                  placeholder="璇烽�夋嫨"
-                >
-                  <el-option
-                    v-for="item in topicoptions"
-                    :key="item.value"
-                    :label="item.label"
-                    :value="item.value"
-                  >
-                  </el-option>
-                </el-select>
-              </el-form-item>
               <el-form-item>
                 <el-button
                   type="primary"
@@ -701,8 +693,8 @@
         { label: "鎮h�呭悕绉�", width: "", prop: "name" },
         { label: "鎬у埆", width: "", prop: "sex" },
         { label: "骞撮緞", width: "", prop: "age" },
-        { label: "灏辫瘖绉戝", width: "", prop: "impTemplate" },
-        { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "uploadTime" },
+        { label: "灏辫瘖绉戝", width: "", prop: "deptName" },
+        { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "inhosptime" },
         { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "update_by" },
       ],
       tableLabelxj: [
@@ -768,7 +760,7 @@
         pageNum: 1, //
         pageSize: 10,
       },
-      topicoptions: [],
+      topicoptions: [{ children: [{ children: [] }] }],
       showSearch: true, //
       total: 0, //
       sontotal: 0, //
@@ -854,9 +846,9 @@
 
   created() {
     this.id = this.$route.query.id;
-    this.form.type = this.$route.query.type;
-    this.Getdetails();
+    this.form.hospType = this.$route.query.type;
     this.listDept();
+    this.Getdetails();
     this.Acquisitiontype();
   },
 
@@ -953,7 +945,7 @@
     // 淇濆瓨
     submitForm(formName) {
       this.form.serviceform = this.checkList.join(",");
-      this.form.type = this.currenttype;
+      this.form.hospType = this.currenttype;
       const filteredArray = this.variableList.filter(
         (item) =>
           item.name !== "濮撳悕" && item.name !== "鐢佃瘽" && item.name !== "鍦板潃"
@@ -1058,7 +1050,9 @@
       console.log(this.ids);
     },
     getList() {},
-    handleQuery() {},
+    handleQuery() {
+      this.handleAddpatient();
+    },
     resetQuery() {},
     handleClosehz() {
       this.dialogVisiblepatient = false;
@@ -1096,7 +1090,7 @@
     // 鑾峰彇绉戝鍒楄〃
     listDept() {
       listDept().then((res) => {
-        this.topicoptions = res.data;
+        this.topicoptions = this.handleTree(res.data, "deptId");
         console.log(this.topicoptions, "topicoptions");
       });
     },
diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index 4d48e97..3952f5d 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -30,7 +30,7 @@
         >
           <span class="custom-tree-node" slot-scope="{ node, data }">
             <span>{{ node.label }}</span>
-            <span>
+            <span v-if="data.id > 0">
               <el-button
                 type="text"
                 icon="el-icon-delete"
@@ -38,6 +38,17 @@
                 size="mini"
                 @click="() => remove(node, data)"
               >
+              </el-button>
+            </span>
+            <span v-if="data.id > 0">
+              <el-button
+                type="text"
+                circle
+                size="mini"
+                @click="() => altertag(node, data)"
+                ><span class="button-textxg"
+                  ><i class="el-icon-edit-outline"></i
+                ></span>
               </el-button>
             </span>
           </span>
@@ -181,12 +192,12 @@
                 label="鍊肩被鍨�"
                 fixed
                 align="center"
-                key="isenable"
-                prop="isenable"
+                key="valueType"
+                prop="valueType"
                 :show-overflow-tooltip="true"
               >
                 <template slot-scope="scope">
-                  <dict-tag :options="valuetype" :value="scope.row.isenable" />
+                  <dict-tag :options="valuetypelb" :value="scope.row.valueType" />
                 </template>
               </el-table-column>
               <el-table-column
@@ -342,7 +353,7 @@
                 <el-form-item label="鐗堟湰鍙�" prop="deptId">
                   <el-input
                     v-model="indexform.version"
-                    placeholder="璇疯緭鍏ユ寚鏍囩绫�"
+                    placeholder="榛樿1.0"
                     maxlength="40"
                   />
                 </el-form-item>
@@ -456,7 +467,7 @@
             <el-row v-if="!measurement">
               <el-col :span="24">
                 <el-form-item label="鍊肩被鍨�">
-                  <el-radio-group v-model="indexform.isenable">
+                  <el-radio-group v-model="indexform.valueType">
                     <el-radio :label="1">閫夐」</el-radio>
                     <el-radio :label="2">鏂囨湰</el-radio>
                     <el-radio :label="3">鏁板��</el-radio>
@@ -473,7 +484,7 @@
                       v-for="index in mode"
                       :key="index.value"
                       :label="index.label"
-                      :value="index.value" 
+                      :value="index.value"
                     ></el-option>
                   </el-select>
                 </el-form-item>
@@ -483,7 +494,7 @@
             <el-card
               class="box-card"
               style="margin-bottom: 20px"
-              v-if="indexform.isenable == 1"
+              v-if="indexform.valueType == 1"
             >
               <Regular
                 :TargetoptionList="testuserList"
@@ -493,27 +504,26 @@
                 @syioption="syioption"
                 @xiayioption="xiayioption"
               />
-              
             </el-card>
-            <div v-if="indexform.isenable == 2">
+            <div v-if="indexform.valueType == 2">
               <el-form-item label="鏀堕泦淇℃伅">
                 <el-input
                   type="textarea"
                   :rows="2"
                   placeholder="濉叆鏀堕泦淇℃伅"
-                  v-model="indexform.textarea"
+                  v-model="indexform.reply"
                   maxlength="50"
                   show-word-limit
                 >
                 </el-input
               ></el-form-item>
             </div>
-            <div v-if="indexform.isenable == 3">
+            <div v-if="indexform.valueType == 3">
               <el-form-item label="鏀堕泦淇℃伅">
                 <el-input
                   type="text"
                   placeholder="濉叆鏀堕泦淇℃伅"
-                  v-model="indexform.textarea"
+                  v-model="indexform.reply"
                 >
                 </el-input
               ></el-form-item>
@@ -627,7 +637,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+        <el-button @click="getDeptTree()">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
       </div>
     </el-dialog>
@@ -648,6 +658,7 @@
   addtargetillness,
   selectIvrLibaTargetAssortList,
   addtreeselectIvrLibaTargetAssort,
+  edittreeselectIvrLibaTargetAssort,
   delselectIvrLibaTargetAssort,
 } from "@/api/AiCentre/index";
 import { getToken } from "@/utils/auth";
@@ -734,6 +745,7 @@
         pageNum: 1,
         pageSize: 10,
       },
+      valuetypelb:[],
 
       // 琛ㄥ崟鏍¢獙
       rules: {},
@@ -752,7 +764,7 @@
     this.gettabList();
     this.getDeptTree();
     this.mode = store.getters.mode;
-    this.valuetype = store.getters.valuetype;
+    this.valuetypelb = store.getters.valuetypelb;
     this.languagelist = store.getters.languagelist;
     this.qyoptions = store.getters.usable;
   },
@@ -982,6 +994,7 @@
     getDeptTree() {
       selectIvrLibaTargetAssortList({}).then((res) => {
         this.deptOptions = res.rows;
+        this.dialogFormVisible = false;
       });
     },
     // 绛涢�夎妭鐐�
@@ -991,6 +1004,15 @@
     },
     // 娣诲姞绫诲埆鏍�
     submitsidecolumn() {
+      if (this.classifyform.id) {
+        edittreeselectIvrLibaTargetAssort(this.classifyform).then((res) => {
+          this.getDeptTree();
+          this.$modal.msgSuccess("淇敼鎴愬姛");
+          this.classifyform = {};
+          this.dialogFormVisible = false;
+        });
+        return;
+      }
       let calssvalue = {};
       if (
         this.classifyform.pid &&
@@ -1045,6 +1067,16 @@
           })
           .catch(() => {});
       }
+    },
+    altertag(a, b) {
+      this.dialogFormVisible = true;
+      if (!b.pid) {
+        this.radio = "涓诲垎绫�";
+      } else {
+        this.radio = "瀛愬垎绫�";
+      }
+      this.classifyform = b;
+      this.dialogFormVisible = true;
     },
     handleNodeClick(data) {
       this.queryParams.assortid = data.id;
@@ -1152,6 +1184,7 @@
           this.targetoptionList
         );
         if (valid) {
+          if (!this.indexform.version) this.indexform.version = "1.0";
           if (this.indexform.id != undefined) {
             this.indexform.isoperation = 2;
             gettargetInfoedit(this.indexform).then((response) => {
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 1971fbf..c88b36e 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -476,13 +476,14 @@
                       </el-select> </el-form-item
                   ></el-col>
                   <el-col :span="12"
-                    ><el-form-item label="鏄惁鍙敤">
+                    ><el-form-item label="鍙栧�肩被鍨�">
                       <el-select
-                        v-model="topicobj.isavailable"
+                        v-model="topicobj.isEnable"
                         placeholder="璇烽�夋嫨"
+                        :disabled="true"
                       >
                         <el-option
-                          v-for="item in usable"
+                          v-for="item in valuetype"
                           :key="item.value"
                           :label="item.label"
                           :value="item.value"
@@ -491,164 +492,180 @@
                       </el-select> </el-form-item
                   ></el-col>
                 </el-row>
-                <div class="headline">
-                  <div class="basics">閫夐」璁剧疆</div>
-                  <div class="headbottom">
-                    <el-button
-                      type="primary"
-                      icon="el-icon-circle-plus-outline"
-                      @click="addzbiao"
-                      >娣诲姞鎸囨爣</el-button
-                    >
+                <div class="topicxq" v-if="topicobj.isEnable == 2 || topicobj.isEnable == 3">
+                  <el-row>
+                    <el-col :span="20">
+                      <el-form-item label="鏀堕泦鍐呭">
+                        <el-input
+                        style="width: 400px;"
+                          type="textarea"
+                          v-model="topicobj.value"
+                          placeholder="闂鏀堕泦鍐呭"
+                        ></el-input>
+                      </el-form-item>
+                    </el-col>
+                  </el-row>
+                </div>
+                <div v-else>
+                  <div class="headline">
+                    <div class="basics">閫夐」璁剧疆</div>
+                    <!-- <div class="headbottom">
+                      <el-button
+                        type="primary"
+                        icon="el-icon-circle-plus-outline"
+                        @click="addzbiao"
+                        >娣诲姞鎸囨爣</el-button
+                      >
+                    </div> -->
                   </div>
-                </div>
 
-                <Regular
-                  :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList"
-                  @deloption="deloption"
-                  :controlsc="false"
-                />
-                <!-- 鏃犲尮閰嶇被鍨� -->
-                <div class="topicxq">
-                  <el-row :gutter="10">
-                    <el-col :span="12"
-                      ><el-form-item label="鏃犲尮閰嶈瘽鏈�">
-                        <el-input
-                          type="text"
-                          placeholder="璇疯緭鍏�"
-                          v-model="topicobj.nomatchtext"
-                          show-word-limit
-                        >
-                        </el-input> </el-form-item
-                    ></el-col>
-                  </el-row>
-                  <el-row :gutter="10">
-                    <el-col :span="12"
-                      ><el-form-item label="澶勭悊">
-                        <el-input
-                          type="text"
-                          placeholder="(榛樿)鏃犲0"
-                          v-model="topicobj.text"
-                          maxlength="10"
-                          show-word-limit
-                        >
-                        </el-input> </el-form-item
-                    ></el-col>
-                  </el-row>
-
-                  <el-row :gutter="10">
-                    <el-col :span="16">
-                      <el-form-item label="璇煶鏂囦欢">
-                        <el-upload
-                          class="upload-demo"
-                          style="display: flex"
-                          action="https://jsonplaceholder.typicode.com/posts/"
-                          :on-change="handleChange"
-                          :file-list="fileList"
-                          :limit="1"
-                          :on-exceed="handleExceed"
-                        >
-                          <el-button size="small" type="primary"
-                            >鐐瑰嚮涓婁紶</el-button
+                  <Regular
+                    :TargetoptionList="topicobj.ivrLibaScriptTargetoptionList"
+                    @deloption="deloption"
+                    :controlsc="false"
+                  />
+                  <!-- 鏃犲尮閰嶇被鍨� -->
+                  <div class="topicxq">
+                    <el-row :gutter="10">
+                      <el-col :span="12"
+                        ><el-form-item label="鏃犲尮閰嶈瘽鏈�">
+                          <el-input
+                            type="text"
+                            placeholder="璇疯緭鍏�"
+                            v-model="topicobj.nomatchtext"
+                            show-word-limit
                           >
-                        </el-upload>
-                      </el-form-item></el-col
-                    >
-                  </el-row>
-                </div>
-                <div class="topicxq">
-                  <el-row :gutter="10">
-                    <el-col :span="12"
-                      ><el-form-item label="鍚笉娓呰瘽鏈�">
-                        <el-input
-                          type="text"
-                          placeholder="璇疯緭鍏�"
-                          v-model="topicobj.noclearlytext"
-                          show-word-limit
-                        >
-                        </el-input> </el-form-item
-                    ></el-col>
-                  </el-row>
-                  <el-row :gutter="10">
-                    <el-col :span="12"
-                      ><el-form-item label="澶勭悊">
-                        <el-input
-                          type="text"
-                          placeholder="(榛樿)鏃犲0"
-                          v-model="topicobj.text"
-                          maxlength="10"
-                          show-word-limit
-                        >
-                        </el-input> </el-form-item
-                    ></el-col>
-                  </el-row>
-
-                  <el-row :gutter="10">
-                    <el-col :span="16">
-                      <el-form-item label="璇煶鏂囦欢">
-                        <el-upload
-                          class="upload-demo"
-                          style="display: flex"
-                          action="https://jsonplaceholder.typicode.com/posts/"
-                          :on-change="handleChange"
-                          :file-list="fileList"
-                          :limit="1"
-                          :on-exceed="handleExceed"
-                        >
-                          <el-button size="small" type="primary"
-                            >鐐瑰嚮涓婁紶</el-button
+                          </el-input> </el-form-item
+                      ></el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                      <el-col :span="12"
+                        ><el-form-item label="澶勭悊">
+                          <el-input
+                            type="text"
+                            placeholder="(榛樿)鏃犲0"
+                            v-model="topicobj.text"
+                            maxlength="10"
+                            show-word-limit
                           >
-                        </el-upload>
-                      </el-form-item></el-col
-                    >
-                  </el-row>
-                </div>
-                <div class="topicxq">
-                  <el-row :gutter="10">
-                    <el-col :span="12"
-                      ><el-form-item label="闈欓粯璇濇湳">
-                        <el-input
-                          type="text"
-                          placeholder="璇疯緭鍏�"
-                          v-model="topicobj.sliencetext"
-                          show-word-limit
-                        >
-                        </el-input> </el-form-item
-                    ></el-col>
-                  </el-row>
-                  <el-row :gutter="10">
-                    <el-col :span="12"
-                      ><el-form-item label="澶勭悊">
-                        <el-input
-                          type="text"
-                          placeholder="(榛樿)鏃犲0"
-                          v-model="topicobj.text"
-                          maxlength="10"
-                          show-word-limit
-                        >
-                        </el-input> </el-form-item
-                    ></el-col>
-                  </el-row>
+                          </el-input> </el-form-item
+                      ></el-col>
+                    </el-row>
 
-                  <el-row :gutter="10">
-                    <el-col :span="16">
-                      <el-form-item label="璇煶鏂囦欢">
-                        <el-upload
-                          class="upload-demo"
-                          style="display: flex"
-                          action="https://jsonplaceholder.typicode.com/posts/"
-                          :on-change="handleChange"
-                          :file-list="fileList"
-                          :limit="1"
-                          :on-exceed="handleExceed"
-                        >
-                          <el-button size="small" type="primary"
-                            >鐐瑰嚮涓婁紶</el-button
+                    <el-row :gutter="10">
+                      <el-col :span="16">
+                        <el-form-item label="璇煶鏂囦欢">
+                          <el-upload
+                            class="upload-demo"
+                            style="display: flex"
+                            action="https://jsonplaceholder.typicode.com/posts/"
+                            :on-change="handleChange"
+                            :file-list="fileList"
+                            :limit="1"
+                            :on-exceed="handleExceed"
                           >
-                        </el-upload>
-                      </el-form-item></el-col
-                    >
-                  </el-row>
+                            <el-button size="small" type="primary"
+                              >鐐瑰嚮涓婁紶</el-button
+                            >
+                          </el-upload>
+                        </el-form-item></el-col
+                      >
+                    </el-row>
+                  </div>
+                  <div class="topicxq">
+                    <el-row :gutter="10">
+                      <el-col :span="12"
+                        ><el-form-item label="鍚笉娓呰瘽鏈�">
+                          <el-input
+                            type="text"
+                            placeholder="璇疯緭鍏�"
+                            v-model="topicobj.noclearlytext"
+                            show-word-limit
+                          >
+                          </el-input> </el-form-item
+                      ></el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                      <el-col :span="12"
+                        ><el-form-item label="澶勭悊">
+                          <el-input
+                            type="text"
+                            placeholder="(榛樿)鏃犲0"
+                            v-model="topicobj.text"
+                            maxlength="10"
+                            show-word-limit
+                          >
+                          </el-input> </el-form-item
+                      ></el-col>
+                    </el-row>
+
+                    <el-row :gutter="10">
+                      <el-col :span="16">
+                        <el-form-item label="璇煶鏂囦欢">
+                          <el-upload
+                            class="upload-demo"
+                            style="display: flex"
+                            action="https://jsonplaceholder.typicode.com/posts/"
+                            :on-change="handleChange"
+                            :file-list="fileList"
+                            :limit="1"
+                            :on-exceed="handleExceed"
+                          >
+                            <el-button size="small" type="primary"
+                              >鐐瑰嚮涓婁紶</el-button
+                            >
+                          </el-upload>
+                        </el-form-item></el-col
+                      >
+                    </el-row>
+                  </div>
+                  <div class="topicxq">
+                    <el-row :gutter="10">
+                      <el-col :span="12"
+                        ><el-form-item label="闈欓粯璇濇湳">
+                          <el-input
+                            type="text"
+                            placeholder="璇疯緭鍏�"
+                            v-model="topicobj.sliencetext"
+                            show-word-limit
+                          >
+                          </el-input> </el-form-item
+                      ></el-col>
+                    </el-row>
+                    <el-row :gutter="10">
+                      <el-col :span="12"
+                        ><el-form-item label="澶勭悊">
+                          <el-input
+                            type="text"
+                            placeholder="(榛樿)鏃犲0"
+                            v-model="topicobj.text"
+                            maxlength="10"
+                            show-word-limit
+                          >
+                          </el-input> </el-form-item
+                      ></el-col>
+                    </el-row>
+
+                    <el-row :gutter="10">
+                      <el-col :span="16">
+                        <el-form-item label="璇煶鏂囦欢">
+                          <el-upload
+                            class="upload-demo"
+                            style="display: flex"
+                            action="https://jsonplaceholder.typicode.com/posts/"
+                            :on-change="handleChange"
+                            :file-list="fileList"
+                            :limit="1"
+                            :on-exceed="handleExceed"
+                          >
+                            <el-button size="small" type="primary"
+                              >鐐瑰嚮涓婁紶</el-button
+                            >
+                          </el-upload>
+                        </el-form-item></el-col
+                      >
+                    </el-row>
+                  </div>
                 </div>
               </el-form>
             </el-card>
@@ -870,6 +887,7 @@
       precedencetype: [],
       usable: [],
       required: [],
+      valuetype: [],
       mode: [],
       inputVisible: false,
       inputVisibleillness: false,
@@ -952,6 +970,7 @@
     this.mode = store.getters.mode;
     this.usable = store.getters.usable;
     this.required = store.getters.required;
+    this.valuetype = store.getters.valuetype;
     this.languagelist = store.getters.languagelist;
     this.courtyardlist = store.getters.courtyardlist;
     this.precedencetype = store.getters.precedencetype;
@@ -1234,6 +1253,7 @@
       if (row.ivrLibaScriptTargetoptionList.length) {
         console.log(11);
         this.topicobj = row;
+        this.topicobj.isEnable = row.valueType;
       } else {
         getverbaltrick({ id: row.id }).then((res) => {
           if (res.data) {
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index 33bd771..cb7abc0 100644
--- a/src/views/repositoryai/templateku/index.vue
+++ b/src/views/repositoryai/templateku/index.vue
@@ -29,7 +29,7 @@
         >
           <span class="custom-tree-node" slot-scope="{ node, data }">
             <span>{{ node.label }}</span>
-            <span>
+            <span v-if="data.id > 0">
               <el-button
                 type="text"
                 icon="el-icon-delete"
@@ -37,6 +37,17 @@
                 size="mini"
                 @click="() => remove(node, data)"
               >
+              </el-button>
+            </span>
+            <span v-if="data.id > 0">
+              <el-button
+                type="text"
+                circle
+                size="mini"
+                @click="() => altertag(node, data)"
+                ><span class="button-textxg"
+                  ><i class="el-icon-edit-outline"></i
+                ></span>
               </el-button>
             </span>
           </span>
@@ -365,7 +376,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+        <el-button @click="getDeptTree()">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
       </div>
     </el-dialog>
@@ -427,6 +438,7 @@
   getFollowupclassify,
   delFollowupclassify,
   addFollowupclassify,
+  editFollowupclassify,
   addtargetillness,
   getvFollowup,
   compileFollowup,
@@ -641,12 +653,21 @@
     getDeptTree() {
       getFollowupclassify({}).then((res) => {
         this.deptOptions = res.rows;
-        console.log(res);
+        this.dialogFormVisible = false;
       });
     },
 
     // 娣诲姞绫诲埆鏍�
     submitsidecolumn() {
+      if (this.classifyform.id) {
+        editFollowupclassify(this.classifyform).then((res) => {
+          this.getDeptTree();
+          this.$modal.msgSuccess("淇敼鎴愬姛");
+          this.classifyform = {};
+          this.dialogFormVisible = false;
+        });
+        return;
+      }
       let calssvalue = {};
       if (
         this.classifyform.pid &&
@@ -700,6 +721,16 @@
           .catch(() => {});
       }
     },
+    altertag(a, b) {
+      this.dialogFormVisible = true;
+      if (!b.pid) {
+        this.radio = "涓诲垎绫�";
+      } else {
+        this.radio = "瀛愬垎绫�";
+      }
+      this.classifyform = b;
+      this.dialogFormVisible = true;
+    },
 
     // 绛涢�夎妭鐐�
     filterNode(value, data) {
diff --git a/src/views/repositoryai/verbaltrick/index.vue b/src/views/repositoryai/verbaltrick/index.vue
index eccc72b..fc91097 100644
--- a/src/views/repositoryai/verbaltrick/index.vue
+++ b/src/views/repositoryai/verbaltrick/index.vue
@@ -29,7 +29,7 @@
         >
           <span class="custom-tree-node" slot-scope="{ node, data }">
             <span>{{ node.label }}</span>
-            <span>
+            <span v-if="data.id > 0">
               <el-button
                 type="text"
                 icon="el-icon-delete"
@@ -37,6 +37,17 @@
                 size="mini"
                 @click="() => remove(node, data)"
               >
+              </el-button>
+            </span>
+            <span v-if="data.id > 0">
+              <el-button
+                type="text"
+                circle
+                size="mini"
+                @click="() => altertag(node, data)"
+                ><span class="button-textxg"
+                  ><i class="el-icon-edit-outline"></i
+                ></span>
               </el-button>
             </span>
           </span>
@@ -188,8 +199,8 @@
               <el-table-column
                 label="闂鏂囨湰"
                 align="center"
-                key="questiontext"
-                prop="questiontext"
+                key="questionText"
+                prop="questionText"
                 width="200"
                 :show-overflow-tooltip="true"
               />
@@ -351,7 +362,7 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="dialogFormVisible = false">鍙� 娑�</el-button>
+        <el-button @click="getDeptTree()">鍙� 娑�</el-button>
         <el-button type="primary" @click="submitsidecolumn">纭� 瀹�</el-button>
       </div>
     </el-dialog>
@@ -411,7 +422,7 @@
   getverbaltricklist,
   verbaltrickinfo,
   delverbaltrickinfo,
-  getverbaltrick,
+  compileverbaltrickclassify,
   getillnesslist,
   illnesslistget,
   getillness,
@@ -597,12 +608,22 @@
     getDeptTree() {
       getbaltrickclassify({}).then((res) => {
         this.deptOptions = res.rows;
-        console.log(res);
+        this.dialogFormVisible = false;
+
       });
     },
 
     // 娣诲姞绫诲埆鏍�
     submitsidecolumn() {
+      if (this.classifyform.id) {
+        compileverbaltrickclassify(this.classifyform).then((res) => {
+          this.getDeptTree();
+          this.$modal.msgSuccess("淇敼鎴愬姛");
+          this.classifyform = {};
+          this.dialogFormVisible = false;
+        });
+        return;
+      }
       let calssvalue = {};
       if (
         this.classifyform.pid &&
@@ -656,6 +677,16 @@
           .catch(() => {});
       }
     },
+    altertag(a, b) {
+      this.dialogFormVisible = true;
+      if (!b.pid) {
+        this.radio = "涓诲垎绫�";
+      } else {
+        this.radio = "瀛愬垎绫�";
+      }
+      this.classifyform = b;
+      this.dialogFormVisible = true;
+    },
 
     // 绛涢�夎妭鐐�
     filterNode(value, data) {
diff --git a/src/views/repositoryai/verbaltrick/particulars/index.vue b/src/views/repositoryai/verbaltrick/particulars/index.vue
index 7e8a952..a3a6804 100644
--- a/src/views/repositoryai/verbaltrick/particulars/index.vue
+++ b/src/views/repositoryai/verbaltrick/particulars/index.vue
@@ -271,7 +271,7 @@
                   :rows="2"
                   placeholder="璇疯緭鍏ュ唴瀹�"
                   id="questiontext"
-                  v-model.sync="indexform.questiontext"
+                  v-model.sync="indexform.questionText"
                   @focus="handleInput('questiontext')"
                   maxlength="30"
                 />
@@ -446,7 +446,7 @@
           <el-row>
             <el-col :span="24">
               <el-form-item label="鍊肩被鍨�">
-                <el-radio-group v-model="indexform.isenable">
+                <el-radio-group v-model="indexform.valueType">
                   <el-radio :label="1">閫夐」</el-radio>
                   <el-radio :label="2">鏂囨湰</el-radio>
                   <el-radio :label="3">鏁板��</el-radio>
@@ -454,117 +454,51 @@
               </el-form-item>
             </el-col></el-row
           >
-
-          <!-- <el-card class="box-card" style="margin-bottom: 20px">
-            <el-table
-              v-loading="loading"
-              :data="indexform.ivrLibaScriptTargetoptionList"
-            >
-              <el-table-column
-                label="搴忓彿"
-                align="center"
-                key="guid"
-                prop="guid"
-                width="50"
+          <div v-if="indexform.valueType == 1">
+            <el-card class="box-card" style="margin-bottom: 20px">
+              <Regular
+                :TargetoptionList="indexform.ivrLibaScriptTargetoptionList"
+                @addoption="addoption"
+                @deloption="deloption"
+                @syioption="syioption"
+                @xiayioption="xiayioption"
               />
-              <el-table-column
-                label="鎸囨爣閫夐」"
-                align="center"
-                key="targetvalue"
-                prop="targetvalue"
-                :show-overflow-tooltip="true"
-              >
-                <template slot-scope="scope">
+            </el-card>
+            <el-row :gutter="20">
+              <el-col :span="12">
+                <el-form-item label="娴嬭瘯杈撳叆" prop="targetvalue">
                   <el-input
-                    v-model="scope.row.targetvalue"
-                    placeholder="璇疯緭鍏ュ唴瀹�"
-                  ></el-input>
-                </template>
-              </el-table-column>
-              <el-table-column
-                label="瑙f瀽瑙勫垯"
-                align="center"
-                key="targetregex"
-                prop="targetregex"
-                width="460"
-                :show-overflow-tooltip="true"
+                    v-model="testvalue"
+                    placeholder="璇疯緭鍏ユ祴璇曞唴瀹�"
+                    maxlength="40"
+                  />
+                </el-form-item>
+              </el-col>
+              <el-col :span="4">
+                <el-button type="success">寮�濮嬫祴璇�</el-button>
+              </el-col>
+            </el-row>
+            <div style="margin-bottom: 20px">
+              <el-input
+                type="textarea"
+                :rows="4"
+                placeholder="姝ゅ灞曠ず璇嗗埆缁撴灉"
+                v-model="testgovalue"
               >
-                <template slot-scope="scope">
-                  <el-input
-                    v-model="scope.row.targetregex"
-                    placeholder="璇疯緭鍏ュ唴瀹�"
-                  ></el-input>
-                </template>
-              </el-table-column>
-
-              <el-table-column
-                label="鎿嶄綔"
-                align="center"
-                width="200"
-                class-name="small-padding fixed-width"
-              >
-                <template slot-scope="scope">
-                  <el-button
-                    @click="addoption(scope.row)"
-                    type="success"
-                    icon="el-icon-circle-plus-outline"
-                    circle
-                  ></el-button>
-                  <el-button
-                    type="danger"
-                    icon="el-icon-delete"
-                    circle
-                    @click="deloption(scope.row)"
-                  ></el-button>
-                  <el-button
-                    @click="syioption(scope.row)"
-                    type="primary"
-                    icon="el-icon-top"
-                    circle
-                  ></el-button>
-                  <el-button
-                    @click="xiayioption(scope.row)"
-                    type="primary"
-                    icon="el-icon-bottom"
-                    circle
-                  ></el-button>
-                </template>
-              </el-table-column>
-            </el-table>
-          </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">
-                <el-input
-                  v-model="testvalue"
-                  placeholder="璇疯緭鍏ユ祴璇曞唴瀹�"
-                  maxlength="40"
-                />
-              </el-form-item>
-            </el-col>
-            <el-col :span="4">
-              <el-button type="success">寮�濮嬫祴璇�</el-button>
-            </el-col>
-          </el-row>
+              </el-input>
+            </div>
+          </div>
+          <div style="margin-bottom: 20px" v-else>
+            <el-input
+              type="textarea"
+              :rows="4"
+              placeholder="姝ゅ灞曠ず鏀堕泦淇℃伅"
+              v-model="testgovalue"
+            >
+            </el-input>
+          </div>
         </el-form>
-        <div style="margin-bottom: 10px">
-          <el-input
-            type="textarea"
-            :rows="4"
-            placeholder="姝ゅ灞曠ず璇嗗埆缁撴灉"
-            v-model="testgovalue"
-          >
-          </el-input>
-        </div>
+
         <el-button type="primary" @click="laststep()">涓婁竴姝�</el-button>
         <el-button type="info" @click="closeFm()">鍏抽棴</el-button>
         <el-button @click="Saveproblem()">淇濆瓨鏁版嵁</el-button>
@@ -681,14 +615,18 @@
           this.dynamicTags = this.indexform.ivrLibaScriptTagList.map(
             this.processElement
           );
-          this.targetlist = [
-            {
-              id: this.indexform.targetid,
-              targetname: this.indexform.targetname,
-            },
-          ];
+
+          // this.targetlist = [
+          //   {
+          //     id: this.indexform.targetid,
+          //     targetname: this.indexform.targetname,
+          //   },
+          // ];
         });
       }
+      gettargetInfolist({ pageSize: 100, pageNum: 1 }).then((res) => {
+        this.targetlist = res.rows;
+      });
       // 鏍�
       getbaltrickclassify({}).then((res) => {
         this.questionclass = res.rows;
@@ -714,7 +652,8 @@
 
         this.indexform.isoperation = 2;
         console.log(this.dellist);
-        this.indexform.ivrLibaScriptTargetoptionList=this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist);
+        this.indexform.ivrLibaScriptTargetoptionList =
+          this.indexform.ivrLibaScriptTargetoptionList.concat(this.dellist);
         compileverbaltrick(this.indexform).then((res) => {
           if (res.code == 200) {
             this.$modal.msgSuccess("淇敼鎴愬姛");
@@ -758,12 +697,18 @@
     targetchange(res) {
       console.log(res);
       gettargetInfo({ id: res }).then((res) => {
-        this.indexform.targetname = res.rows[0].targetname;
+        console.log(res.rows[0]);
         this.$modal
-          .confirm('鏄惁娣诲姞"' + this.indexform.targetname + '"鎸囨爣鐨勯�夐」锛�')
+          .confirm('鏄惁娣诲姞"' + res.rows[0].targetname + '"鎸囨爣鐨勯�夐」锛�')
           .then(() => {
+            this.indexform.valueType = res.rows[0].valueType;
+            this.indexform.questiontitle = res.rows[0].targetname;
+            this.indexform.targetname = res.rows[0].targetname;
+            this.indexform.questionText = res.rows[0].targetdesc;
+            this.indexform.isAvailable = "0";
+            this.indexform.language = "鏅�氳瘽";
             this.indexform.isenable = res.rows[0].isenable;
-            console.log(res.rows[0].targetoptionList);
+            this.$forceUpdate()
             res.rows[0].targetoptionList.forEach((item) => {
               item.isoperation = 1;
               this.indexform.ivrLibaScriptTargetoptionList.push(item);
@@ -778,11 +723,11 @@
     // 涓嬩竴姝�
     nextstep() {
       if (this.Editprogress <= 1) {
-        if (this.indexform.targetid) {
-          return this.Editprogress++;
-        } else {
-          this.$message.warning("璇峰厛閫夋嫨鍏宠仈鎸囨爣");
-        }
+        // if (this.indexform.targetid) {
+        return this.Editprogress++;
+        // } else {
+        //   this.$message.warning("璇峰厛閫夋嫨鍏宠仈鎸囨爣");
+        // }
       } else {
       }
     },
@@ -997,7 +942,7 @@
       inputValueArr = inputValueArr.join("");
       console.log(inputValueArr);
       if (this.currentInputId == "questiontext") {
-        this.indexform.questiontext = inputValueArr;
+        this.indexform.questionText = inputValueArr;
       } else if (this.currentInputId == "nomatchtext") {
         this.indexform.nomatchtext = inputValueArr;
       } else if (this.currentInputId == "sliencetext") {

--
Gitblit v1.9.3