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

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

diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index a4dcec8..36faefa 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -282,11 +282,7 @@
                     >
                       <!-- 鍗曢�� -->
                       <div
-                        :class="
-                          item.isabnormal
-                            ? 'scriptTopic-isabnormal'
-                            : 'scriptTopic-dev'
-                        "
+                        :class="getTopicClass(item)"
                         :key="index"
                         v-if="item.scriptType == 1 && !item.astrict"
                       >
@@ -301,7 +297,7 @@
                               v-for="(
                                 items, indexs
                               ) in item.svyTaskTemplateTargetoptions"
-                              :class="items.isabnormal ? 'red-star' : ''"
+                              :class="getOptionClass(items)"
                               :key="indexs"
                               :label="items.optioncontent"
                               @click.native.prevent="
@@ -1407,6 +1403,29 @@
   },
 
   methods: {
+    // 鑾峰彇涓婚鏍峰紡绫�
+    getTopicClass(item) {
+      console.log(item.isabnormal,'111');
+
+      // 鏍规嵁鐘舵�佸�艰繑鍥炲搴旂殑鏍峰紡绫�
+      if (item.isabnormal == 1) {
+        return "scriptTopic-isabnormal"; // 寮傚父 - 绾㈣壊
+      } else if (item.isabnormal == 2) {
+        return "scriptTopic-warning"; // 璀﹀憡 - 榛勮壊
+      } else {
+        return "scriptTopic-dev"; // 姝e父 - 榛樿鏍峰紡
+      }
+    },
+
+    // 鑾峰彇閫夐」鏍峰紡绫�
+    getOptionClass(items) {
+      if (items.isabnormal == 1) {
+        return "red-star"; // 寮傚父 - 绾㈣壊鏄熷彿
+      } else if (items.isabnormal == 2) {
+        return "yellow-star"; // 璀﹀憡 - 榛勮壊鏄熷彿
+      }
+      return ""; // 姝e父 - 鏃犵壒娈婃牱寮�
+    },
     // 鑾峰彇闂嵎鏁版嵁
     getsearchrResults(id) {
       getsearchrResults({
@@ -1609,11 +1628,15 @@
         var objs = item.svyTaskTemplateTargetoptions.find(
           (items) => items.optioncontent == item.scriptResult
         );
-        if (obj) {
-          if (objs.isabnormal) {
-            excep = 1;
+
+        if (objs) {
+          if (excep != 1 && objs.isabnormal) {
+            excep = objs.isabnormal;
+            this.selectedTag = objs.isabnormal;
           }
         }
+        console.log(excep, "excep");
+
         let obj = {
           asrtext: null,
           patid: this.patid,
@@ -1792,7 +1815,8 @@
     },
     yuyingetdetail() {
       const dataToSubmit = JSON.parse(JSON.stringify(this.tableDatatop));
-
+      console.log(dataToSubmit, "dataToSubmit");
+      // return;
       dataToSubmit.forEach((item, index) => {
         // 瀵规嫹璐濈殑鏁版嵁杩涜鎿嶄綔锛屼笉褰卞搷鍘熷鐨� scriptResult 鏁扮粍
         item.scriptResult = item.scriptResult.join("&");
@@ -2089,7 +2113,7 @@
       if (questionItem.matchedtext == optionValue) {
         this.$set(questionItem, "matchedtext", "");
         // 鍚屾椂閲嶇疆涓庨�夐」鐩稿叧鐨勭姸鎬�
-        questionItem.isabnormal = false;
+        // questionItem.isabnormal = false;
         questionItem.showAppendInput = false;
         // 娉ㄦ剰锛氬彇娑堥�変腑鏃讹紝鎴戜滑閫氬父涓嶅笇鏈涜Е鍙戦鐩烦杞�昏緫锛屾墍浠ョ洿鎺ヨ繑鍥�
         // 濡傛灉闇�瑕侊紝鍙互鍦ㄨ繖閲屾坊鍔犲彇娑堥�変腑鍚庣殑鐗瑰畾閫昏緫锛屼緥濡傞噸缃鐩簭鍒�
@@ -2101,13 +2125,11 @@
     },
     // 鏂板鐨勫垏鎹㈤�変腑/鍙栨秷閫変腑鏂规硶
     handleRadioToggle(questionItem, index, options, optionValue) {
-      console.log(questionItem, optionValue, 999);
-
       // 濡傛灉鐐瑰嚮鐨勬槸褰撳墠宸查�変腑鐨勯�夐」锛屽垯鍙栨秷閫変腑
       if (questionItem.scriptResult === optionValue) {
         questionItem.scriptResult = ""; // 娓呯┖閫変腑鍊�
         // 鍚屾椂閲嶇疆涓庨�夐」鐩稿叧鐨勭姸鎬�
-        questionItem.isabnormal = false;
+        // questionItem.isabnormal = false;
         questionItem.showAppendInput = false;
         // 娉ㄦ剰锛氬彇娑堥�変腑鏃讹紝鎴戜滑閫氬父涓嶅笇鏈涜Е鍙戦鐩烦杞�昏緫锛屾墍浠ョ洿鎺ヨ繑鍥�
         // 濡傛灉闇�瑕侊紝鍙互鍦ㄨ繖閲屾坊鍔犲彇娑堥�変腑鍚庣殑鐗瑰畾閫昏緫锛屼緥濡傞噸缃鐩簭鍒�
@@ -2135,7 +2157,7 @@
 
       // 澶勭悊寮傚父鐘舵�侀珮浜�
       this.tableDatatop[questionIndex].isabnormal =
-        !!selectedOptionObj.isabnormal;
+        selectedOptionObj.isabnormal;
       // 澶勭悊闄勫姞杈撳叆妗嗘樉绀�
 
       this.tableDatatop[questionIndex].showAppendInput =
@@ -2210,7 +2232,7 @@
           astrict: index === questionIndex + 1 ? 0 : item.astrict,
           hiddenByEnd: index === questionIndex + 1 ? false : item.hiddenByEnd,
         }));
-      }
+      }2
 
       this.$forceUpdate();
     },
@@ -2221,9 +2243,7 @@
         );
         if (obj) {
           if (obj.isabnormal) {
-            this.tableDatatop[index].isabnormal = true;
-          } else {
-            this.tableDatatop[index].isabnormal = false;
+            this.tableDatatop[index].isabnormal = obj.isabnormal;
           }
           this.$forceUpdate();
         }
@@ -2615,6 +2635,18 @@
   }
 }
 
+/* 寮傚父鐘舵�佹牱寮� - 绾㈣壊 (淇濇寔涓嶅彉) */
+.scriptTopic-isabnormal {
+  color: red;
+}
+
+/* 鏂板锛氳鍛婄姸鎬佹牱寮� - 榛勮壊 */
+.scriptTopic-warning {
+  color: #d4be00; /* 鎮ㄦ寚瀹氱殑榛勮壊 */
+
+}
+
+/* 寮傚父閫夐」鏍峰紡 - 绾㈣壊鏄熷彿 (淇濇寔涓嶅彉) */
 .red-star {
   ::v-deep.el-radio__label {
     position: relative;
@@ -2628,24 +2660,42 @@
     right: -5px;
     top: 0;
   }
+}
 
-  ::v-deep.el-input-group__textarea {
-    white-space: pre-wrap;
-    word-break: break-all;
-  }
-
-  ::v-deep.el-checkbox__label {
+/* 鏂板锛氳鍛婇�夐」鏍峰紡 - 榛勮壊鏄熷彿 */
+.yellow-star {
+  ::v-deep.el-radio__label {
     position: relative;
     padding-right: 10px;
   }
 
-  ::v-deep.el-checkbox__label::after {
+  ::v-deep.el-radio__label::after {
     content: "*";
-    color: red;
+    color: #ffe202; /* 榛勮壊鏄熷彿 */
     position: absolute;
     right: -5px;
     top: 0;
+    font-weight: bold;
   }
+}
+
+/* 鍏辩敤鏍峰紡淇濇寔涓嶅彉 */
+::v-deep.el-input-group__textarea {
+  white-space: pre-wrap;
+  word-break: break-all;
+}
+
+::v-deep.el-checkbox__label {
+  position: relative;
+  padding-right: 10px;
+}
+
+::v-deep.el-checkbox__label::after {
+  content: "*";
+  color: red;
+  position: absolute;
+  right: -5px;
+  top: 0;
 }
 .tag-selector-container {
   display: flex;
@@ -2760,7 +2810,7 @@
   margin: 0 10px 20px 10px;
 
   /* 褰撶缉鏀炬瘮渚嬪ぇ浜�100%鎴栧睆骞曞搴﹁緝灏忔椂鏀逛负涓婁笅鎺掑垪 */
-  @media screen and (max-width: 1200px), (min-resolution: 1dppx) {
+  @media screen and (min-resolution: 1.5dppx) {
     flex-direction: column;
 
     .call-action,
@@ -2916,9 +2966,8 @@
 }
 
 /* 缂╂斁妫�娴嬫牱寮� */
-@media screen and (min-resolution: 1.1dppx),
-  screen and (-webkit-min-device-pixel-ratio: 1.1),
-  screen and (max-width: 1200px) {
+@media screen and (min-resolution: 1.5dppx),
+  screen and (-webkit-min-device-pixel-ratio: 1.5) {
   .action-container {
     flex-direction: column;
   }

--
Gitblit v1.9.3