From 741805d8daa2d2baa0b6b75bc1724488baf9c6bc Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 15 六月 2026 14:55:10 +0800
Subject: [PATCH] 测试完成

---
 src/views/outsideChainwtnew.vue |   76 +++++++++++++++++++++++++++++++------
 1 files changed, 63 insertions(+), 13 deletions(-)

diff --git a/src/views/outsideChainwtnew.vue b/src/views/outsideChainwtnew.vue
index 3882e7f..ffcee9d 100644
--- a/src/views/outsideChainwtnew.vue
+++ b/src/views/outsideChainwtnew.vue
@@ -23,6 +23,7 @@
                   : "浜茬埍鐨勬偅鑰�-瀹跺睘锛屾垜浠槸鍖婚櫌鐨勫尰鎶や汉鍛橈紝涓轰簡鏇村ソ鍦颁簡瑙f偍鐨勫悍澶嶆儏鍐碉紝璇锋偍鎶戒竴鐐瑰疂璐垫椂闂达紝瀹屾垚杩欎唤闅忚闂嵎銆�"
               }}
             </div>
+            <div v-if="orgname" class="questionnaire-signature">鈥斺�斺�攞{ orgname }}</div>
           </div>
 
           <el-divider class="custom-divider"></el-divider>
@@ -93,7 +94,7 @@
                         @click.native.prevent="
                           handleRadioToggle(
                             item,
-                            getGlobalIndex(dimension, group, index),
+                            getGlobalIndex(item.dimension, group, index),
                             item.svyTaskTemplateTargetoptions,
                             option.optioncontent
                           )
@@ -159,6 +160,18 @@
                       :closable="false"
                       class="warning-alert"
                     ></el-alert>
+                  </div>
+                  <div
+                    v-if="item.showAppendInput || item.answerps"
+                    class="append-input-container"
+                  >
+                    <el-input
+                      type="textarea"
+                      :rows="1"
+                      placeholder="璇疯緭鍏ュ叿浣撲俊鎭�"
+                      v-model="item.answerps"
+                      clearable
+                    ></el-input>
                   </div>
                 </div>
               </div>
@@ -281,6 +294,18 @@
                   class="warning-alert"
                 ></el-alert>
               </div>
+              <div
+                v-if="item.showAppendInput || item.answerps"
+                class="append-input-container"
+              >
+                <el-input
+                  type="textarea"
+                  :rows="1"
+                  placeholder="璇疯緭鍏ュ叿浣撲俊鎭�"
+                  v-model="item.answerps"
+                  clearable
+                ></el-input>
+              </div>
             </div>
           </div>
 
@@ -335,6 +360,7 @@
       excep: 0,
       isabnormal: 0,
       taskname: "",
+      orgname: "",
       questionList: [],
       param6: null,
       jsy: null,
@@ -480,6 +506,8 @@
             res.data.param3,
             res.data.param5
           );
+          this.orgname = res.data.orgname;
+
           this.param6 = res.data.param6;
         }
       });
@@ -746,6 +774,7 @@
       this.questionList[questionIndex].showAppendInput =
         selectedOptionObj.appendflag == 1;
       console.log(this.questionList);
+      console.log(selectedOptionObj.appendflag);
 
       // if (!this.questionList[questionIndex].showAppendInput) {
       //   this.questionList[questionIndex].answerps = ""; // 娓呴櫎闄勫姞淇℃伅
@@ -818,6 +847,7 @@
           hiddenByEnd: index == questionIndex + 1 ? false : item.hiddenByEnd,
         }));
       }
+      this.$forceUpdate();
 
       // 鍦ㄥ鐞嗗畬棰樼洰鏄剧ず/闅愯棌鍚庯紝寮哄埗鏇存柊瑙嗗浘浠ョ‘淇濆簭鍙锋纭�
       this.$nextTick(() => {
@@ -864,13 +894,24 @@
 }
 
 .questionnaire-description {
-  font-size: 18px;
+  font-size: 16px;
   color: #5a6c84;
-  line-height: 1.6;
-  max-width: 700px;
-  margin: 0 auto;
+  line-height: 1.8;
+  max-width: 720px;
+  margin: 0;
+  padding: 0 16px;
+  text-align: justify; /* 涓ょ瀵归綈锛屾洿缇庤 */
+  text-indent: 2em; /* 棣栬缂╄繘 */
 }
-
+.questionnaire-signature {
+  font-size: 15px;
+  color: #8a9bb5; /* 姣旀鏂囬鑹茬◢娴咃紝浣撶幇闄勫睘鎰� */
+  text-align: right; /* 鍙冲榻� */
+  max-width: 720px;
+  margin: 8px 0 0 auto; /* 涓婅竟璺�8px锛屽彸杈归潬榻� */
+  padding: 0 16px;
+  letter-spacing: 1px; /* 瀛楅棿璺濈◢瀹斤紝鏇存湁钀芥鎰� */
+}
 .custom-divider {
   margin: 25px 0;
   background-color: #eaeef2;
@@ -930,8 +971,10 @@
 }
 
 .question-stem {
-  display: flex;
-  align-items: flex-start;
+  display: grid;
+  grid-template-columns: auto 1fr auto; /* 棰樺彿鑷�傚簲锛屾枃鏈崰婊″墿浣欑┖闂达紝棰樺瀷鏍囩鑷�傚簲 */
+  gap: 3px;
+  align-items: center;
   margin-bottom: 20px;
   font-size: 18px;
 }
@@ -939,22 +982,23 @@
 .question-number {
   font-weight: 600;
   color: #175997;
-  margin-right: 8px;
-  min-width: 24px;
+  min-width: 16px;
 }
 
 .question-text {
-  flex: 1;
   line-height: 1.5;
   color: #2c3e50;
   font-weight: 500;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
 }
 
 .question-type-tag {
   color: #3ba2f7;
   font-size: 14px;
-  margin-left: 10px;
   font-weight: 500;
+  text-align: right;
 }
 
 .question-options {
@@ -1021,7 +1065,13 @@
 .question-warning {
   margin-top: 15px;
 }
-
+.append-input-container {
+  margin-top: 15px;
+  padding: 10px;
+  background-color: #f5f7fa;
+  border-radius: 4px;
+  border: 1px solid #dcdfe6;
+}
 .warning-alert {
   :deep(.el-alert__title) {
     font-size: 15px;

--
Gitblit v1.9.3