From da407d5de7f1106d494cb8cb13317dded827ba39 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 27 三月 2024 11:19:22 +0800
Subject: [PATCH] 指标完成

---
 src/views/repositoryai/templateku/configurat/index.vue |   76 ++++++++++++++++++++++----------------
 1 files changed, 44 insertions(+), 32 deletions(-)

diff --git a/src/views/repositoryai/templateku/configurat/index.vue b/src/views/repositoryai/templateku/configurat/index.vue
index a9d910a..c074384 100644
--- a/src/views/repositoryai/templateku/configurat/index.vue
+++ b/src/views/repositoryai/templateku/configurat/index.vue
@@ -20,9 +20,7 @@
           </el-step>
           <el-step description="鏌ョ湅闅忚妯$増棰勮锛屽彲瀵煎嚭PDF">
             <template slot="title">
-              <span style="cursor: pointer" @click="Editprogress = 3"
-                >闅忚妯$増棰勮</span
-              >
+              <span style="cursor: pointer" @click="preview">闅忚妯$増棰勮</span>
             </template>
           </el-step>
         </el-steps>
@@ -359,11 +357,11 @@
             ></el-col>
           </el-row>
           <el-form-item>
-            <el-button type="success" @click="nextstep('ruleForm')"
+            <el-button type="success" plain @click="nextstep('ruleForm')"
               >涓嬩竴姝�</el-button
             >
             <el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
-            <el-button @click="Departmenttreatment('ruleForm')"
+            <el-button type="success" @click="Departmenttreatment('ruleForm')"
               >淇濆瓨闅忚妯$増鍩虹淇℃伅</el-button
             >
           </el-form-item>
@@ -747,14 +745,14 @@
           </div>
         </div>
 
-        <el-button type="success" @click="nextstep('ruleForm')"
-          >涓嬩竴姝�</el-button
-        >
-        <el-button type="primary" @click="laststep()">涓婁竴姝�</el-button>
-        <el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
-        <el-button @click="Departmenttreatment('ruleForm')"
+        <el-button type="success" @click="Departmenttreatment('ruleForm')"
           >淇濆瓨棰樼洰鏁版嵁</el-button
         >
+        <el-button type="primary" plain @click="laststep()">涓婁竴姝�</el-button>
+        <el-button type="success" plain @click="preview('ruleForm')"
+          >鏌ョ湅棰勮</el-button
+        >
+        <el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
       </div>
       <!-- 闅忚妯$増棰勮 -->
       <div v-if="Editprogress == 3">
@@ -762,39 +760,39 @@
         <el-divider></el-divider>
         <div class="preview-left">
           <!-- 鍗曢�� -->
-          <div class="topic-dev" v-for="item in valssu" :key="item.aaa">
+          <div class="topic-dev" v-for="(item,index) in valssu" :key="item.aaa">
             <div class="dev-text">
-              {{ item.idd }}銆乕鍗曢�塢<span>{{ item.wssd }}</span>
+              {{ index+1 }}銆乕鍗曢�塢<span>{{ item.questionText }}</span>
             </div>
             <div class="dev-xx">
               <el-radio-group v-model="radio">
                 <el-radio
-                  v-for="(items, index) in item.sdadd"
+                  v-for="(items, index) in item.ivrLibaScriptTargetoptionList"
                   :key="index"
                   :label="index"
-                  >{{ items }}</el-radio
+                  >{{ items.targetvalue }}</el-radio
                 >
               </el-radio-group>
             </div>
           </div>
           <!-- 澶氶�� -->
-          <div class="topic-dev" v-for="item in valssu" :key="item.aaa">
+          <div class="topic-dev" v-for="(item,index) in valssu" :key="item.aaa">
             <div class="dev-text">
-              {{ item.idd }}銆乕澶氶�塢<span>{{ item.wssd }}</span>
+              {{ index+1 }}銆乕澶氶�塢<span>{{ item.questionText }}</span>
             </div>
             <div class="dev-xx">
               <el-checkbox-group v-model="radios">
                 <el-checkbox
-                  v-for="(items, index) in item.sdadd"
-                  :key="index"
-                  :label="index"
+                  v-for="(items, indexs) in item.ivrLibaScriptTargetoptionList"
+                  :key="indexs"
+                  :label="indexs"
                 >
-                  {{ items }}
+                  {{ items.targetvalue }}
                 </el-checkbox>
               </el-checkbox-group>
             </div>
           </div>
-          <!-- 濉┖ -->
+          <!-- 濉┖
           <div class="topic-dev" v-for="item in valssu" :key="item.aaa">
             <div class="dev-text">
               {{ item.idd }}銆乕濉┖]<span>{{ item.wssd }}</span>
@@ -803,11 +801,11 @@
               <el-input placeholder="璇疯緭鍏ョ瓟妗�" v-model="radioas" clearable>
               </el-input>
             </div>
-          </div>
+          </div> -->
         </div>
         <el-button type="info" @click="closeFm('ruleForm')">鍏抽棴</el-button>
-        <el-button>瀵煎嚭涓簆df</el-button>
-        <el-button type="primary" @click="laststep()">涓婁竴姝�</el-button>
+        <el-button type="warning">瀵煎嚭涓簆df</el-button>
+        <el-button type="primary" plain @click="laststep()">涓婁竴姝�</el-button>
       </div>
     </div>
     <!-- 娣诲姞棰樼洰寮圭獥 -->
@@ -967,7 +965,7 @@
       },
       tempDetpRelevanceslist: [],
       delScriptVOList: [],
-      optionIndex:'',
+      optionIndex: "",
       variablelist: [
         { variatename: "濮撳悕", variate: "${name}", default: 1 },
         { variatename: "鐢佃瘽", variate: "${phone}", default: 1 },
@@ -990,6 +988,7 @@
           sdadd: ["sss", "ssccss", "ssaas", "ss"],
         },
       ],
+      radio:'',
       addvalue: "娣诲姞棰樼洰",
       // 棰樼洰琛ㄦ牸鏁版嵁
       userList: [
@@ -1252,6 +1251,7 @@
       this.getaddtopiclist();
     },
     getaddtopiclist() {
+      console.log(11);
       this.drawer = true;
       getverbaltricklist(this.queryParams).then((res) => {
         this.loading = false;
@@ -1265,7 +1265,7 @@
       getverbaltrick({ id: row.id }).then((res) => {
         console.log(res, "璇︽儏");
         res.data.isoperation = 1;
-        res.data.id = null;
+        res.data.pid = this.ruleForm.id;
         res.data.ivrLibaScriptTargetoptionList.forEach((item) => {
           item.isoperation = 1;
         });
@@ -1285,11 +1285,16 @@
       console.log(row);
       this.optionIndex = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row);
       if (row.ivrLibaScriptTargetoptionList.length) {
+        console.log(11);
         this.topicobj = row;
       } else {
         getverbaltrick({ id: row.id }).then((res) => {
-          this.topicobj = res.data;
-          console.log(res.data, "topicobj");
+          if (res.code==200) {
+            this.topicobj = res.data;
+            console.log(res.data, "topicobj");
+          }else{
+            console.log('娌℃壘鍒�');
+          }
         });
       }
     },
@@ -1328,10 +1333,11 @@
     deloption() {},
     // 淇敼棰樼洰淇℃伅
     Submittopicobj() {
-     this.ruleForm.ivrLibaTemplateScriptVOList[this.optionIndex]=this.topicobj;
-     this.$modal.msgSuccess("鏆傚瓨閫夐」鎴愬姛");
+      this.ruleForm.ivrLibaTemplateScriptVOList[this.optionIndex] =
+        this.topicobj;
+      this.$modal.msgSuccess("鏆傚瓨閫夐」鎴愬姛");
     },
-   
+
     // ---------------------
     resetForm(formName) {
       this.$refs[formName].resetFields();
@@ -1378,6 +1384,12 @@
       this.inputVisibleillness = false;
       this.inputValueillness = "";
     },
+    // 棰勮---------------
+    preview() {
+      console.log(this.ruleForm);
+      this.valssu = this.ruleForm.ivrLibaTemplateScriptVOList
+      this.Editprogress = 3;
+    },
   },
 };
 </script>

--
Gitblit v1.9.3