From 800cd247bc78fb8c05faa2dc858534cec0326a93 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 10 十一月 2025 17:12:22 +0800
Subject: [PATCH] 测试完成

---
 src/views/followvisit/record/detailpage/index.vue |   80 ++++++++++++++++++++--------------------
 1 files changed, 40 insertions(+), 40 deletions(-)

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index e6ba598..a4dcec8 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -296,17 +296,7 @@
                           }}</span>
                         </div>
                         <div class="dev-xx">
-                          <el-radio-group
-                            v-model="item.scriptResult"
-                            @change="
-                              handleOptionChange(
-                                $event,
-                                index,
-                                item.svyTaskTemplateTargetoptions,
-                                item
-                              )
-                            "
-                          >
+                          <el-radio-group v-model="item.scriptResult">
                             <el-radio
                               v-for="(
                                 items, indexs
@@ -315,7 +305,12 @@
                               :key="indexs"
                               :label="items.optioncontent"
                               @click.native.prevent="
-                                handleRadioToggle(item, items.optioncontent)
+                                handleRadioToggle(
+                                  item,
+                                  index,
+                                  item.svyTaskTemplateTargetoptions,
+                                  items.optioncontent
+                                )
                               "
                               >{{ items.optioncontent }}</el-radio
                             >
@@ -440,9 +435,6 @@
                               :key="index"
                               :label="items"
                               :class="items.isabnormal ? 'red-star' : ''"
-                              @click.native.prevent="
-                                handleRadioToggles(item, items)
-                              "
                               >{{ items }}</el-radio
                             >
                           </el-radio-group>
@@ -1031,10 +1023,7 @@
         :visible.sync="CaldialogVisible"
         width="60%"
       >
-        <CallCenterLs
-          ref="callCenterModal"
-          :initial-phone="currentPhoneNumber"
-        />
+        <CallCenterLs ref="CallCenterLs" :initial-phone="currentPhoneNumber" />
       </el-dialog>
     </div>
   </div>
@@ -1153,6 +1142,9 @@
       isEndingCall: false,
       CaldialogVisible: false,
       currentCall: null, // 褰撳墠閫氳瘽瀵硅薄
+      // 璺敱鐩戝惉鐩稿叧
+      routeWatcher: null,
+      lastRoutePath: this.$route.path,
       input: "浠婂ぉ韬綋杩樹笉閿�",
       radio: "2",
       taskname: "",
@@ -1377,6 +1369,7 @@
       patid: null,
     };
   },
+
   computed: {
     callStatusText() {
       const statusMap = {
@@ -2088,25 +2081,6 @@
       }
       this.$forceUpdate();
     },
-    // 鏂板鐨勫垏鎹㈤�変腑/鍙栨秷閫変腑鏂规硶
-    handleRadioToggle(questionItem, optionValue) {
-      console.log(questionItem, optionValue, 999);
-
-      // 濡傛灉鐐瑰嚮鐨勬槸褰撳墠宸查�変腑鐨勯�夐」锛屽垯鍙栨秷閫変腑
-      if (questionItem.scriptResult === optionValue) {
-        questionItem.scriptResult = ""; // 娓呯┖閫変腑鍊�
-        // 鍚屾椂閲嶇疆涓庨�夐」鐩稿叧鐨勭姸鎬�
-        questionItem.isabnormal = false;
-        questionItem.showAppendInput = false;
-        // 娉ㄦ剰锛氬彇娑堥�変腑鏃讹紝鎴戜滑閫氬父涓嶅笇鏈涜Е鍙戦鐩烦杞�昏緫锛屾墍浠ョ洿鎺ヨ繑鍥�
-        // 濡傛灉闇�瑕侊紝鍙互鍦ㄨ繖閲屾坊鍔犲彇娑堥�変腑鍚庣殑鐗瑰畾閫昏緫锛屼緥濡傞噸缃鐩簭鍒�
-      } else {
-        // 濡傛灉鐐瑰嚮鐨勬槸鏈�変腑鐨勯�夐」锛屽垯閫氳繃鏇存敼缁戝畾鍊兼潵瑙﹀彂鍘熷鐨� handleOptionChange 鏂规硶
-        // 杩欓噷鍙渶瑕佹敼鍙� v-model 缁戝畾鐨勫�硷紝change浜嬩欢浼氳嚜鍔ㄨЕ鍙�
-        questionItem.scriptResult = optionValue;
-        // 鍚庣画鐨勮烦杞瓑澶嶆潅閫昏緫浼氬湪 handleOptionChange 涓甯告墽琛�
-      }
-    },
     handleRadioToggles(questionItem, optionValue) {
       if (!questionItem.matchedtext) {
         questionItem.matchedtext == "";
@@ -2125,6 +2099,27 @@
         this.$set(questionItem, "matchedtext", optionValue); // 鍚庣画鐨勮烦杞瓑澶嶆潅閫昏緫浼氬湪 handleOptionChange 涓甯告墽琛�
       }
     },
+    // 鏂板鐨勫垏鎹㈤�変腑/鍙栨秷閫変腑鏂规硶
+    handleRadioToggle(questionItem, index, options, optionValue) {
+      console.log(questionItem, optionValue, 999);
+
+      // 濡傛灉鐐瑰嚮鐨勬槸褰撳墠宸查�変腑鐨勯�夐」锛屽垯鍙栨秷閫変腑
+      if (questionItem.scriptResult === optionValue) {
+        questionItem.scriptResult = ""; // 娓呯┖閫変腑鍊�
+        // 鍚屾椂閲嶇疆涓庨�夐」鐩稿叧鐨勭姸鎬�
+        questionItem.isabnormal = false;
+        questionItem.showAppendInput = false;
+        // 娉ㄦ剰锛氬彇娑堥�変腑鏃讹紝鎴戜滑閫氬父涓嶅笇鏈涜Е鍙戦鐩烦杞�昏緫锛屾墍浠ョ洿鎺ヨ繑鍥�
+        // 濡傛灉闇�瑕侊紝鍙互鍦ㄨ繖閲屾坊鍔犲彇娑堥�変腑鍚庣殑鐗瑰畾閫昏緫锛屼緥濡傞噸缃鐩簭鍒�
+      } else {
+        // 濡傛灉鐐瑰嚮鐨勬槸鏈�変腑鐨勯�夐」锛屽垯閫氳繃鏇存敼缁戝畾鍊兼潵瑙﹀彂鍘熷鐨� handleOptionChange 鏂规硶
+        // 杩欓噷鍙渶瑕佹敼鍙� v-model 缁戝畾鐨勫�硷紝change浜嬩欢浼氳嚜鍔ㄨЕ鍙�
+        questionItem.scriptResult = optionValue;
+        this.handleOptionChange(optionValue, index, options, questionItem);
+        // 鍚庣画鐨勮烦杞瓑澶嶆潅閫昏緫浼氬湪 handleOptionChange 涓甯告墽琛�
+      }
+    },
+
     // 鍦╩ethods閮ㄥ垎锛屼慨鏀筯andleOptionChange鏂规硶:
     handleOptionChange(selectedOption, questionIndex, options, a) {
       console.log(selectedOption, questionIndex, options, a, "888");
@@ -2356,6 +2351,11 @@
   // },
   beforeRouteLeave(to, from, next) {
     this.$refs.callButton.cleanupResources();
+    if (this.$refs.CallCenterLs) {
+      console.log(1);
+
+      this.$refs.CallCenterLs.handleSeatLogout();
+    }
     next(); // 纭繚璋冪敤 nex
   },
   // beforeRouteUpdate() {
@@ -2550,7 +2550,7 @@
 .CONTENT {
   padding: 10px;
   height: 100%;
-  min-height: 660px; /* 璁剧疆鏈�灏忛珮搴� */
+  min-height: 738px; /* 璁剧疆鏈�灏忛珮搴� */
 
   .title {
     font-size: 22px;
@@ -2565,7 +2565,7 @@
   padding: 30px;
   border: 1px solid #dcdfe6;
   box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
-  max-height: 580px; /* 璁剧疆鏈�澶ч珮搴� */
+  max-height: 618px; /* 璁剧疆鏈�澶ч珮搴� */
   overflow-y: auto; /* 鍐呭瓒呰繃楂樺害鏃舵樉绀烘粴鍔ㄦ潯 */
 
   .topic-dev {

--
Gitblit v1.9.3