From 9fb4c5b5f3616f174935cf03bd64d775ee407b79 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 06 六月 2024 19:00:01 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/lifeCare/view/chapter003.vue |  197 +++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 166 insertions(+), 31 deletions(-)

diff --git a/src/books/lifeCare/view/chapter003.vue b/src/books/lifeCare/view/chapter003.vue
index aa95886..e6f56de 100644
--- a/src/books/lifeCare/view/chapter003.vue
+++ b/src/books/lifeCare/view/chapter003.vue
@@ -292,10 +292,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 || index == chapter003.groupData.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter003.publicHeader"
                       :key="index"
@@ -311,6 +308,19 @@
                   >
                     <td v-for="(cell, cellIndex) in row" :key="cellIndex">
                       <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.groupData[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellGroup(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else-if="cellIndex == 4">
                         <input
                           type="text"
                           v-model="chapter003.groupData[rowIndex][cellIndex]"
@@ -928,11 +938,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter003.scoreData1.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter003.publicHeader"
                       :key="index"
@@ -960,9 +966,38 @@
                           "
                         />
                       </template>
+                      <template v-else-if="cellIndex == 4">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData1[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore1(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
                       <template v-else>
                         {{ cell }}
                       </template>
+                      <!-- <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData1[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore1(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else>
+                        {{ cell }}
+                      </template> -->
                     </td>
                   </tr>
                 </tbody>
@@ -1254,11 +1289,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter003.scoreData2.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter003.publicHeader"
                       :key="index"
@@ -1273,7 +1304,36 @@
                     :key="rowIndex"
                   >
                     <td v-for="(cell, cellIndex) in row" :key="cellIndex">
+                      <!-- <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData2[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore2(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else>
+                        {{ cell }}
+                      </template> -->
                       <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData2[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore2(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else-if="cellIndex == 4">
                         <input
                           type="text"
                           v-model="chapter003.scoreData2[rowIndex][cellIndex]"
@@ -1585,11 +1645,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter003.scoreData3.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter003.publicHeader"
                       :key="index"
@@ -1617,9 +1673,38 @@
                           "
                         />
                       </template>
+                      <template v-else-if="cellIndex == 4">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData3[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore3(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
                       <template v-else>
                         {{ cell }}
                       </template>
+                      <!-- <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData3[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore3(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else>
+                        {{ cell }}
+                      </template> -->
                     </td>
                   </tr>
                 </tbody>
@@ -1800,11 +1885,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter003.scoreData4.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter003.publicHeader"
                       :key="index"
@@ -1832,9 +1913,38 @@
                           "
                         />
                       </template>
+                      <template v-else-if="cellIndex == 4">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData4[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore4(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
                       <template v-else>
                         {{ cell }}
                       </template>
+                      <!-- <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData4[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore4(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else>
+                        {{ cell }}
+                      </template> -->
                     </td>
                   </tr>
                 </tbody>
@@ -2082,11 +2192,11 @@
           <p>濠村辜鍎跨粌涔犲埛鐗欑殑娉ㄦ剰浜嬮」鏄粈涔堬紵</p>
           <div class="bk-tx">
             <textarea
-              v-model="chapter003.textAreaItem.text33"
+              v-model="chapter003.textAreaItem.text331"
               style="border: 0"
               placeholder="璇疯緭鍏ュ唴瀹�"
               rows="5"
-              @blur="onBlurChange('text33')"
+              @blur="onBlurChange('text331')"
             ></textarea>
           </div>
         </div>
@@ -2147,11 +2257,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter003.scoreData5.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter003.publicHeader"
                       :key="index"
@@ -2166,6 +2272,22 @@
                     :key="rowIndex"
                   >
                     <td v-for="(cell, cellIndex) in row" :key="cellIndex">
+                      <!-- <template v-if="cell === ''">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData5[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore5(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else>
+                        {{ cell }}
+                      </template> -->
                       <template v-if="cell === ''">
                         <input
                           type="text"
@@ -2179,6 +2301,19 @@
                           "
                         />
                       </template>
+                      <template v-else-if="cellIndex == 4">
+                        <input
+                          type="text"
+                          v-model="chapter003.scoreData5[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore5(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
                       <template v-else>
                         {{ cell }}
                       </template>

--
Gitblit v1.9.1