From cc7bbbd9b6a859235c9985cc09836effc1157fe8 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 07 六月 2024 10:51:38 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/lifeCare/view/chapter003.vue |  304 ++++++++++++++++++++++++++++++++++---------------
 1 files changed, 209 insertions(+), 95 deletions(-)

diff --git a/src/books/lifeCare/view/chapter003.vue b/src/books/lifeCare/view/chapter003.vue
index b2b9f85..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,7 +2272,36 @@
                     :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"
+                          v-model="chapter003.scoreData5[rowIndex][cellIndex]"
+                          @blur="
+                            updateCellScore5(
+                              rowIndex,
+                              cellIndex,
+                              $event.target.value
+                            )
+                          "
+                        />
+                      </template>
+                      <template v-else-if="cellIndex == 4">
                         <input
                           type="text"
                           v-model="chapter003.scoreData5[rowIndex][cellIndex]"
@@ -2785,7 +2920,7 @@
   </div>
 </template>
 <script>
-import getResourcePath from "@/assets/methods/resources.js";
+import { getResourcePath } from "@/assets/methods/resources.js";
 // import getQuestionData from "@/assets/methods/examination.js";
 // import testData from "../js/examinationList.js";
 import examinations from "@/components/examinations/index.vue";
@@ -2800,6 +2935,10 @@
     },
     questionData: {
       type: Object,
+    },
+    isSearch: {
+      type: Boolean,
+      default: false,
     },
   },
   data() {
@@ -3247,70 +3386,45 @@
     drawflow,
   },
   async created() {
-    const localData = JSON.parse(localStorage.getItem("chapter003"));
-    if (localData) {
-      this.chapter003 = { ...Object.assign(this.chapter003, localData) };
+    if (!this.isSearch) {
+      const localData = JSON.parse(localStorage.getItem("chapter003"));
+      if (localData) {
+        this.chapter003 = { ...Object.assign(this.chapter003, localData) };
+      }
+      this.chapter003.videOneUrl = await getResourcePath(
+        "459ab85d46207bfcca4801dc9b319b9b"
+      );
+      this.chapter003.videoTwoUrl = await getResourcePath(
+        "3817bea302b25b865ff938140939a8de"
+      );
+      this.chapter003.videoFourUrl = await getResourcePath(
+        "7af72da649f6656c3b2164e708f5c132"
+      );
+      this.chapter003.videoFiveUrl = await getResourcePath(
+        "e24de9b0cdd889cb73e9b472ad6f4731"
+      );
+      this.chapter003.videoSixUrl = await getResourcePath(
+        "d95740ab777d9c7ca074c33317a835c4"
+      );
+      this.chapter003.videoSevenUrl = await getResourcePath(
+        "0b330926f3e6ed510b48144a83199fb3"
+      );
+      this.chapter003.videoEigthUrl = await getResourcePath(
+        "9f63cc4dcba6a87cbfe82a9ec4d7c77e"
+      );
+      this.chapter003.videoNineUrl = await getResourcePath(
+        "c2ecf6f102a6e9b210f3db49b17b58a4"
+      );
+      this.chapter003.videoTenUrl = await getResourcePath(
+        "b6943018923c0cbad4e414dc2097cb9a"
+      );
+      this.chapter003.videoEleUrl = await getResourcePath(
+        "eb604885f7c01cdf2d95df839c9c233a"
+      );
+      this.chapter003.videoTevUrl = await getResourcePath(
+        "f12a50c2ac57da78ff02f3d5f430163b"
+      );
     }
-    this.chapter003.videOneUrl = await getResourcePath(
-      "459ab85d46207bfcca4801dc9b319b9b"
-    );
-    this.chapter003.videoTwoUrl = await getResourcePath(
-      "3817bea302b25b865ff938140939a8de"
-    );
-    this.chapter003.videoFourUrl = await getResourcePath(
-      "7af72da649f6656c3b2164e708f5c132"
-    );
-    this.chapter003.videoFiveUrl = await getResourcePath(
-      "e24de9b0cdd889cb73e9b472ad6f4731"
-    );
-    this.chapter003.videoSixUrl = await getResourcePath(
-      "d95740ab777d9c7ca074c33317a835c4"
-    );
-    this.chapter003.videoSevenUrl = await getResourcePath(
-      "0b330926f3e6ed510b48144a83199fb3"
-    );
-    this.chapter003.videoEigthUrl = await getResourcePath(
-      "9f63cc4dcba6a87cbfe82a9ec4d7c77e"
-    );
-    this.chapter003.videoNineUrl = await getResourcePath(
-      "c2ecf6f102a6e9b210f3db49b17b58a4"
-    );
-    this.chapter003.videoTenUrl = await getResourcePath(
-      "b6943018923c0cbad4e414dc2097cb9a"
-    );
-    this.chapter003.videoEleUrl = await getResourcePath(
-      "eb604885f7c01cdf2d95df839c9c233a"
-    );
-    this.chapter003.videoTevUrl = await getResourcePath(
-      "f12a50c2ac57da78ff02f3d5f430163b"
-    );
-    // this.chapter003.videOneUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=459ab85d46207bfcca4801dc9b319b9b";
-    // this.chapter003.videoTwoUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=3817bea302b25b865ff938140939a8de";
-    // this.chapter003.videoFourUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=7af72da649f6656c3b2164e708f5c132";
-    // this.chapter003.videoFiveUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=e24de9b0cdd889cb73e9b472ad6f4731";
-    // this.chapter003.videoSixUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=d95740ab777d9c7ca074c33317a835c4";
-    // this.chapter003.videoSevenUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=0b330926f3e6ed510b48144a83199fb3";
-    // this.chapter003.videoEigthUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=9f63cc4dcba6a87cbfe82a9ec4d7c77e";
-    // this.chapter003.videoNineUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=c2ecf6f102a6e9b210f3db49b17b58a4";
-    // this.chapter003.videoTenUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=b6943018923c0cbad4e414dc2097cb9a";
-    // this.chapter003.videoEleUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=eb604885f7c01cdf2d95df839c9c233a";
-    // this.chapter003.videoTevUrl =
-    //   "https://jsek.bnuic.com/file/api/ApiDownload?md5=f12a50c2ac57da78ff02f3d5f430163b";
-    // this.chapter003.qustionData = await getQuestionData(
-    //   "3",
-    //   testData[3],
-    //   this.config.activeBook
-    // );
   },
   methods: {
     activityOne() {

--
Gitblit v1.9.1