From ad70f145e8bea957b41043b4a1e37ce37cc5ed1e Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 16 一月 2024 18:39:24 +0800
Subject: [PATCH] 指标完成

---
 src/views/repositoryai/templateku/configurat/index.vue |  226 +++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 196 insertions(+), 30 deletions(-)

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index 1178af9..004e65d 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -45,14 +45,19 @@
                   filterable
                   placeholder="璇烽�夋嫨鍒嗙被"
                 >
-                  <el-option
-                    class="ruleFormaa"
-                    v-for="item in indexAssortlist"
-                    :key="item.id"
-                    :label="item.indexAssortName"
-                    :value="item.id"
+                  <el-option-group
+                    v-for="group in indexAssortlist"
+                    :key="group.id"
+                    :label="group.indexAssortName"
                   >
-                  </el-option>
+                    <el-option
+                      v-for="item in group.ivrLibaTemplateAssortList"
+                      :key="item.id"
+                      :label="item.indexAssortName"
+                      :value="item.id"
+                    >
+                    </el-option>
+                  </el-option-group>
                 </el-select>
               </el-form-item>
             </el-col>
@@ -372,8 +377,8 @@
                 <el-table-column
                   label="缂栧彿"
                   align="center"
-                  key="id"
-                  prop="id"
+                  key="guid"
+                  prop="guid"
                 />
                 <el-table-column
                   label="鏍囬"
@@ -444,7 +449,8 @@
                 <el-form-item label="棰樼洰鏍囬">
                   <el-input
                     v-model="topicobj.questiontitle"
-                    placeholder="璇疯緭鍏ユ爣棰�"
+                    placeholder="璇蜂粠宸︿晶鍒楄〃閫夋嫨"
+                    :disabled="true"
                   ></el-input>
                 </el-form-item>
                 <el-row :gutter="10">
@@ -573,6 +579,148 @@
                         <el-button type="danger" round>鍒犻櫎</el-button>
                       </div>
                     </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.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
+                          >
+                        </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>
               </el-form>
@@ -775,6 +923,7 @@
         { value: "1", label: "蹇冨绉�" },
         { value: "2", label: "蹇冨唴绉�" },
       ],
+      standbylist: [],
       themelist: [],
       languagelist: [],
       courtyardlist: [],
@@ -922,9 +1071,6 @@
 
       //   鎻愪氦
 
-      compileFollowup(this.ruleForm).then((res) => {
-        this.$modal.msgSuccess("缂栬緫鎴愬姛");
-      });
       this.illnesslist.forEach((item, index) => {
         if (!item.id) {
           addtargetillness(item).then((res) => {});
@@ -933,6 +1079,10 @@
       if (this.illnesslistapi.length) {
         deltargetillness(this.illnesslistapi.join(",")).then((res) => {});
       }
+      compileFollowup(this.ruleForm).then((res) => {
+        this.$modal.msgSuccess("缂栬緫鎴愬姛");
+        this.$router.go(-1);
+      });
     },
     // 绉戝澶勭悊
     Departmenttreatment() {
@@ -1119,35 +1269,49 @@
       });
     },
     handleDelete(item) {
-      const index = this.userList.indexOf(item);
+      const index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(item);
       if (index !== -1) {
-        this.userList.splice(index, 1); // 浠庣储寮曚綅缃垹闄や竴涓厓绱�
+        this.ruleForm.ivrLibaTemplateScriptVOList.splice(index, 1); // 浠庣储寮曚綅缃垹闄や竴涓厓绱�
         this.sortFn();
       } else {
         console.log("鏈壘鍒拌瀵硅薄");
       }
     },
     syioption(row) {
-      const index = this.getIndexInArray(this.userList, row);
-      const item = this.userList.splice(index, 1)[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓�
-      this.userList.splice(index - 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣�
+      const index = this.getIndexInArray(
+        this.ruleForm.ivrLibaTemplateScriptVOList,
+        row
+      );
+      const item = this.ruleForm.ivrLibaTemplateScriptVOList.splice(
+        index,
+        1
+      )[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓�
+      this.ruleForm.ivrLibaTemplateScriptVOList.splice(index - 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣�
       this.sortFn();
     },
     xiayioption(row) {
-      const index = this.getIndexInArray(this.userList, row);
-      const item = this.userList.splice(index, 1)[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓�
-      this.userList.splice(index + 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣�
+      const index = this.getIndexInArray(
+        this.ruleForm.ivrLibaTemplateScriptVOList,
+        row
+      );
+      const item = this.ruleForm.ivrLibaTemplateScriptVOList.splice(
+        index,
+        1
+      )[0]; // 绉婚櫎鎸囧畾绱㈠紩澶勭殑鍏冪礌锛屽苟淇濆瓨鍒癷tem鍙橀噺涓�
+      this.ruleForm.ivrLibaTemplateScriptVOList.splice(index + 1, 0, item); // 灏唅tem鎻掑叆鍒扮储寮曚綅缃殑鍓嶄竴浣�
       this.sortFn();
     },
     sortFn() {
-      this.userList = this.userList.map((item, index) => {
-        return {
-          userid: index + 1,
-          userName: item.userName,
-          verbaltrick: item.verbaltrick,
-        };
-      });
-      console.log(this.userList);
+      this.ruleForm.ivrLibaTemplateScriptVOList =
+        this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => {
+          return {
+            guid: index + 1,
+            id: item.id,
+            questiontitle: item.questiontitle,
+            questionText: item.questionText,
+          };
+        });
+      console.log(this.ruleForm.ivrLibaTemplateScriptVOList);
     },
     // ---------------------
     resetForm(formName) {
@@ -1319,8 +1483,10 @@
   .presentation-right {
     width: 55%;
     max-height: 688px;
-    padding: 0 20px;
+    margin: 0 20px;
     font-size: 18px;
+    -webkit-box-shadow: 0 2px 4px 0 rgba(32, 32, 32, 0.12),
+      0 0 6px 0 rgba(58, 57, 57, 0.04);
     overflow: auto;
     .headline {
       display: flex;

--
Gitblit v1.9.3