From 04dcf813e8002a99f6553d25065c30af1c4431f2 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 31 五月 2024 17:54:30 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/lifeCare/view/chapter005.vue |  109 +++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 94 insertions(+), 15 deletions(-)

diff --git a/src/books/lifeCare/view/chapter005.vue b/src/books/lifeCare/view/chapter005.vue
index 812bcc1..69e4c2b 100644
--- a/src/books/lifeCare/view/chapter005.vue
+++ b/src/books/lifeCare/view/chapter005.vue
@@ -383,8 +383,12 @@
           </div>
           <p><br /></p>
           <p>3.灏忕粍璁ㄨ鍒嗘瀽鍚勪綅鎴愬憳鐨勪竴鏃ラ璋憋紝璇勫嚭鏈�浣充竴鏃ラ璋便��</p>
-          <p class="pic-wall">锛�1锛夎鐢ㄥ浘鐗囧舰寮忓憟鐜帮紝骞惰创鍦ㄤ笅闈€��<span class="btnUpload-list" @click="handFile('fileTwo')">
-            <svg
+          <p class="pic-wall">
+            锛�1锛夎鐢ㄥ浘鐗囧舰寮忓憟鐜帮紝骞惰创鍦ㄤ笅闈€��<span
+              class="btnUpload-list"
+              @click="handFile('fileTwo')"
+            >
+              <svg
                 t="1717059899765"
                 class="icon"
                 viewBox="0 0 1024 1024"
@@ -402,8 +406,7 @@
                 <path
                   d="M796.366227 796.430223v-142.199112a28.414224 28.414224 0 0 1 56.892444 0v142.199112h142.199113a28.414224 28.414224 0 0 1 0 56.828448h-142.199113v142.263109a28.414224 28.414224 0 0 1-56.95644 0v-142.263109h-142.135116a28.414224 28.414224 0 0 1 0-56.828448h142.199112z"
                   p-id="2635"
-                >
-              </path>
+                ></path>
               </svg>
             </span>
           </p>
@@ -2598,23 +2601,79 @@
               <thead>
                 <tr>
                   <th>濠村辜鍎垮鍚�</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text1"
+                      @blur="changeThVal($event, 'text1')"
+                    />
+                  </td>
                   <th>鎬у埆</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text2"
+                      @blur="changeThVal($event, 'text2')"
+                    />
+                  </td>
                   <th>骞撮緞</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text3"
+                      @blur="changeThVal($event, 'text3')"
+                    />
+                  </td>
                   <th>鐝骇</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text4"
+                      @blur="changeThVal($event, 'text4')"
+                    />
+                  </td>
                 </tr>
                 <tr>
                   <th>瀹堕暱濮撳悕</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text5"
+                      @blur="changeThVal($event, 'text5')"
+                    />
+                  </td>
                   <th>鑱旂郴鏂瑰紡</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text6"
+                      @blur="changeThVal($event, 'text6')"
+                    />
+                  </td>
                   <th>瀹跺涵浣忓潃</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text7"
+                      @blur="changeThVal($event, 'text7')"
+                    />
+                  </td>
                   <th>璁板綍鏃堕棿</th>
-                  <th></th>
+                  <td>
+                    <textarea
+                      rows="2"
+                      style="min-width: 80px;max-width:80px;font-size: 14px"
+                      v-model="chapter005.textTh.text8"
+                      @blur="changeThVal($event, 'text8')"
+                    />
+                  </td>
                 </tr>
               </thead>
               <tbody>
@@ -2642,6 +2701,13 @@
                     </template>
                     <template v-else>
                       <input
+                        :readonly="
+                          cell == '闂琛ㄧ幇' ||
+                          cell == '鍘熷洜鍒嗘瀽' ||
+                          cell == '閲囧彇鎺柦' ||
+                          cell == '鏁堟灉鍒嗘瀽' ||
+                          cell == '鍚庣画寤鸿'
+                        "
                         type="text"
                         :value="chapter005.tableData156[rowIndex][cellIndex]"
                         @blur="
@@ -2658,6 +2724,7 @@
               </tbody>
             </table>
           </div>
+          <p><br/></p>
           <h3 id="c020">
             <span class="bk-h3"
               ><span class="bj1-h3">鍏�</span>銆�銆�椁愬悗淇濊偛銆�</span
@@ -3436,7 +3503,7 @@
           ["", "", "", ""],
         ],
         // 1-5-3
-        headers153: ["閫傚悎鏈堥緞", "7-2鏈堥緞", "13-24鏈堥緞", "24浠ヤ笂鏈堥緞"], // 琛ㄥご
+        headers153: ["閫傚悎鏈堥緞", "7-12鏈堥緞", "13-24鏈堥緞", "24浠ヤ笂鏈堥緞"], // 琛ㄥご
         tableData153: [
           // 浜岀淮鏁扮粍浣滀负琛ㄦ牸鏁版嵁
           ["椋熺墿鍚嶇О", "", "", ""],
@@ -3458,7 +3525,7 @@
         headers155: [
           "鍠傚吇鍘熷垯",
           "閫傚悎鏈堥緞",
-          "7-2鏈堥緞",
+          "7-12鏈堥緞",
           "13-24鏈堥緞",
           "24浠ヤ笂鏈堥緞",
         ],
@@ -3479,6 +3546,7 @@
         ],
         textAreaItem: {},
         radio: {},
+        textTh: {},
       },
     };
   },
@@ -3643,6 +3711,11 @@
       this.$set(this.chapter005.tableData155[rowIndex], cellIndex, value);
       localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
     },
+    updateCell156(rowIndex, cellIndex, value) {
+      // 鏇存柊鍗曞厓鏍兼暟鎹�
+      this.$set(this.chapter005.tableData156[rowIndex], cellIndex, value);
+      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
+    },
     onBlurChange() {
       localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
     },
@@ -3686,13 +3759,19 @@
         });
     },
     handFile(str) {
-      let dom = (this.container ? this.container : document).getElementById(str);
+      let dom = (this.container ? this.container : document).getElementById(
+        str
+      );
       dom.click();
     },
     drawflowDataClick(val) {
       this.chapter005.drawData = val;
       localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
     },
+    changeThVal(e, val) {
+      this.chapter005.textTh[val] = e.target.value;
+      localStorage.setItem("chapter005", JSON.stringify(this.chapter005));
+    },
   },
 };
 </script>

--
Gitblit v1.9.1