From 79925204a4e1588d1031ca0429ae318a608a8928 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 01 二月 2024 11:32:23 +0800
Subject: [PATCH] 指标完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   79 +++++++++-----------------
 src/main.js                                            |   15 ----
 package.json                                           |    2 
 src/views/repositoryai/intention/index.vue             |    7 --
 src/views/knowledge/education/compilequer/index.vue    |   41 +++++--------
 src/views/repositoryai/templateku/index.vue            |    2 
 6 files changed, 47 insertions(+), 99 deletions(-)

diff --git a/package.json b/package.json
index bd2056b..22cce97 100644
--- a/package.json
+++ b/package.json
@@ -77,7 +77,7 @@
     "vue-meta": "2.4.0",
     "vue-quill-editor": "^3.0.6",
     "vue-router": "3.4.9",
-    "vuedraggable": "2.24.3",
+    "vuedraggable": "^2.24.3",
     "vuex": "3.6.0",
     "xlsx": "^0.18.5"
   },
diff --git a/src/main.js b/src/main.js
index 5d1eefd..b6eff6f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -25,28 +25,15 @@
 import { codemirror } from "vue-codemirror";
 import "@/utils/cm-setting.js";
 Vue.component("codemirror", codemirror);
-//  import VueCodeMirror from 'vue-codemirror'
-//  import 'vue-codemirror/dist/codemirror.css'
-//  Vue.use(VueCodeMirror)
 
-//瀹炵幇quill-editor缂栬緫鍣ㄦ嫋鎷戒笂浼犲浘鐗�
-//  import Quill from 'quill'
 import { Quill } from "vue-quill-editor";
 window.Quill = Quill;
 import imageResize from "quill-image-resize";
-//  const scriptEl = document.createElement('script');
-// 	scriptEl.charset = 'utf-8'
-// 	scriptEl.src =  './image-resize.min.js'
-// 	const head = document.head || document.getElementsByTagName('head')[0];
-// 	head.appendChild(scriptEl);
+
 
 import { ImageDrop } from "quill-image-drop-module";
-//  import imageResize from 'quill-image-resize'
 Quill.register("modules/imageDrop", ImageDrop);
-//  import imageResize from 'quill-image-resize-module'
 Quill.register("modules/imageResize", imageResize);
-//瀹炵幇quill-editor缂栬緫鍣ㄨ皟鏁村浘鐗囧昂瀵�
-//  Quill.register('modules/imageResize', ImageResize)
 
 import LemonIMUI from "lemon-imui";
 import "lemon-imui/dist/index.css";
diff --git a/src/views/knowledge/education/compilequer/index.vue b/src/views/knowledge/education/compilequer/index.vue
index ad86eaf..ce20fcf 100644
--- a/src/views/knowledge/education/compilequer/index.vue
+++ b/src/views/knowledge/education/compilequer/index.vue
@@ -386,6 +386,7 @@
   addtargetillness,
   getlibrarylist,
   dellibraryinfo,
+  deltargetillness,
   compilelibrary,
   getlibraryinfo,
   getillnesslist,
@@ -430,7 +431,7 @@
       headers: {
         Authorization: "Bearer " + getToken(),
       },
-      uploadImgUrl: "/v1/admin/common/upload",
+      uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload",
       uploadUrlPath: "娌℃湁鏂囦欢涓婁紶",
       quillUpdateImg: false,
       fileList: [
@@ -625,17 +626,21 @@
           : "";
       if (this.id) {
         this.ruleForm.isoperation = 2;
-        compilelibrary(this.ruleForm).then((response) => {
-          this.$modal.msgSuccess("淇敼鎴愬姛");
-          this.$router.go(-1);
-        });
       } else {
         this.ruleForm.isoperation = 1;
-        compilelibrary(this.ruleForm).then((response) => {
-          this.$modal.msgSuccess("鏂板鎴愬姛");
-          this.$router.go(-1);
-        });
       }
+      this.illnesslist.forEach((item, index) => {
+        if (!item.id) {
+          addtargetillness(item).then((res) => {});
+        }
+      });
+      if (this.illnesslistapi.length) {
+        deltargetillness(this.illnesslistapi.join(",")).then((res) => {});
+      }
+      compilelibrary(this.ruleForm).then((res) => {
+        this.$modal.msgSuccess("缂栬緫鎴愬姛");
+        this.$router.go(-1);
+      });
     },
     // 涓嬩竴姝�
     nextstep() {
@@ -821,7 +826,7 @@
       let tagname = this.inputValue;
       illnesslistget(item).then((res) => {
         opeavalue = res.data;
-        opeavalue.outid = this.indexid;
+        opeavalue.outid = this.id;
         opeavalue.type = 6;
         opeavalue.icd10id = opeavalue.icdid;
         opeavalue.icd10name = opeavalue.icdname;
@@ -830,22 +835,10 @@
           this.illnesslist.push(opeavalue);
         }
       });
-      console.log(this.illnesslist, "鍔�");
       this.illnessVisible = false;
       this.inputValue = "";
     },
-    confirmillness() {
-      this.illnesslist.forEach((item, index) => {
-        if (!item.id) {
-          addtargetillness(item).then((res) => {});
-        }
-      });
-      if (this.illnesslistapi.length) {
-        deltargetillness(this.illnesslistapi.join(",")).then((res) => {});
-      }
-      this.illnessVisible = false;
-      this.$modal.msgSuccess("缂栬緫鎴愬姛");
-    },
+    
     illnessshowInput() {
       this.illnessVisible = true;
     },
@@ -875,7 +868,7 @@
       // this.$emit('upload',res, file)
       console.log(res, file);
       //鎷兼帴鍑轰笂浼犵殑鍥剧墖鍦ㄦ湇鍔″櫒鐨勫畬鏁村湴鍧�
-      let imgUrl = res.data.url;
+      let imgUrl = res.url;
       let type = imgUrl.substring(imgUrl.lastIndexOf(".") + 1);
       console.log(type);
       // 鑾峰彇瀵屾枃鏈粍浠跺疄渚�
diff --git a/src/views/repositoryai/intention/index.vue b/src/views/repositoryai/intention/index.vue
index 11cf0f8..1d48246 100644
--- a/src/views/repositoryai/intention/index.vue
+++ b/src/views/repositoryai/intention/index.vue
@@ -690,13 +690,6 @@
 
 <script>
 import {
-  listUser,
-  getUser,
-  delUser,
-  addUser,
-  updateUser,
-} from "@/api/system/user";
-import {
   gettargetInfo,
   particulartarget,
   gettargetInfoedit,
diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index e301dee..5c24a30 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -307,7 +307,7 @@
           </el-form-item>
           <el-row :gutter="20">
             <el-col :span="8">
-              <el-form-item label="闅忚鍓嶅鐞�" prop="name">
+              <el-form-item label="闅忚鍓嶅鐞嗭紙鏄惁闇�瑕侊級" prop="name">
                 <el-select
                   v-model="ruleForm.prefollowup"
                   size="medium"
@@ -325,7 +325,7 @@
                 </el-select> </el-form-item
             ></el-col>
             <el-col :span="9">
-              <el-form-item label="闅忚鍚庡鐞�" prop="region">
+              <el-form-item label="闅忚鍚庡鐞嗭紙鏄惁闇�瑕侊級" prop="region">
                 <el-select
                   v-model="ruleForm.postfollowup"
                   size="medium"
@@ -348,7 +348,7 @@
               <el-form-item label="闈欓粯鏃堕棿(绉�)" prop="name">
                 <div style="width: 40%">
                   <el-input
-                    v-model="ruleForm.name"
+                    v-model="ruleForm.silencetime"
                   ></el-input></div></el-form-item
             ></el-col>
             <el-col :span="10">
@@ -591,7 +591,7 @@
                     >
                     <el-col :span="8">
                       <div style="text-align: right; padding-right: 10px">
-                        <el-button type="danger" round>鍒犻櫎</el-button>
+                        <el-button type="danger" @click="" round>鍒犻櫎</el-button>
                       </div>
                     </el-col>
                   </el-row>
@@ -896,6 +896,7 @@
   delFollowupinfo,
   Followupinfo,
   getFollowuplist,
+  deltargetillness,
   getillnesslist,
   illnesslistget,
   getillness,
@@ -958,6 +959,7 @@
         label: "indexAssortName",
       },
       tempDetpRelevanceslist: [],
+      delScriptVOList: [],
       variablelist: [
         { variatename: "濮撳悕", variate: "${name}", default: 1 },
         { variatename: "鐢佃瘽", variate: "${phone}", default: 1 },
@@ -1103,6 +1105,9 @@
     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(
         (subArr) => subArr[subArr.length - 1]
       );
@@ -1161,20 +1166,6 @@
         });
     },
 
-    /** 鏌ヨ棰樼洰鍒楄〃 */
-    getList() {
-      //   this.loading = true;
-      listUser().then((response) => {
-        console.log(response);
-        // this.userList = response.data;
-        // this.total = response.total;
-        // this.loading = false;
-        console.log(this.userList);
-      });
-      //   const { rows } = await listUser();
-      //   console.log(rows);
-      //   this.list = rows;
-    },
     // 淇敼棰樼洰淇℃伅
     Submittopicobj() {},
 
@@ -1269,31 +1260,33 @@
     addtopic(row) {
       console.log(row);
       getverbaltrick({ id: row.id }).then((res) => {
-        console.log(res);
+        console.log(res, "璇︽儏");
+        res.data.isoperation = 1;
+        res.data.id = null;
+        res.data.ivrLibaScriptTargetoptionList.forEach((item) => {
+        item.isoperation = 1;
       });
-      row.isoperation = 1;
-      this.ruleForm.ivrLibaTemplateScriptVOList.push(row);
+        this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data);
+      });
     },
     handleDelete(row) {
+      let index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row);
       this.ruleForm.ivrLibaTemplateScriptVOList.splice(
         this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row),
         1
       );
+      row.isoperation = 3;
+      this.delScriptVOList.push(row);
     },
     handleUpdate(row) {
-      console.log(row.id);
-      getverbaltrick({ id: row.id }).then((res) => {
-        this.topicobj = res.data;
-        console.log(res.data);
-      });
-    },
-    handleDelete(item) {
-      const index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(item);
-      if (index !== -1) {
-        this.ruleForm.ivrLibaTemplateScriptVOList.splice(index, 1); // 浠庣储寮曚綅缃垹闄や竴涓厓绱�
-        this.sortFn();
+      console.log(row);
+      if (row.ivrLibaScriptTargetoptionList.length) {
+        this.topicobj = row;
       } else {
-        console.log("鏈壘鍒拌瀵硅薄");
+        getverbaltrick({ id: row.id }).then((res) => {
+          this.topicobj = res.data;
+          console.log(res.data, "topicobj");
+        });
       }
     },
     syioption(row) {
@@ -1323,12 +1316,7 @@
     sortFn() {
       this.ruleForm.ivrLibaTemplateScriptVOList =
         this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => {
-          return {
-            guid: index + 1,
-            id: item.id,
-            questiontitle: item.questiontitle,
-            questionText: item.questionText,
-          };
+          return Object.assign({}, item, { guid: (index + 1).toString() });
         });
       console.log(this.ruleForm.ivrLibaTemplateScriptVOList);
     },
@@ -1377,19 +1365,6 @@
       console.log(this.illnesslist);
       this.inputVisibleillness = false;
       this.inputValueillness = "";
-    },
-    // 淇濆瓨
-    confirmillness() {
-      this.illnesslist.forEach((item, index) => {
-        if (!item.id) {
-          addtargetillness(item).then((res) => {});
-        }
-      });
-      if (this.illnesslistapi.length) {
-        deltargetillness(this.illnesslistapi.join(",")).then((res) => {});
-      }
-      this.illnessVisible = false;
-      this.$modal.msgSuccess("缂栬緫鎴愬姛");
     },
   },
 };
diff --git a/src/views/repositoryai/templateku/index.vue b/src/views/repositoryai/templateku/index.vue
index 371522e..1789932 100644
--- a/src/views/repositoryai/templateku/index.vue
+++ b/src/views/repositoryai/templateku/index.vue
@@ -247,7 +247,7 @@
 
               <el-table-column
                 label="璧勬枡褰㈠紡"
-                align="center"
+                align="center" 
                 key="playType"
                 prop="playType"
                 width="120"

--
Gitblit v1.9.3