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/chapter002.vue |   58 ++++++++++++++++++++++++++++------------------------------
 1 files changed, 28 insertions(+), 30 deletions(-)

diff --git a/src/books/lifeCare/view/chapter002.vue b/src/books/lifeCare/view/chapter002.vue
index e82a22a..bd24f43 100644
--- a/src/books/lifeCare/view/chapter002.vue
+++ b/src/books/lifeCare/view/chapter002.vue
@@ -288,10 +288,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 || index == chapter002.groupData.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter002.groupHeader"
                       :key="index"
@@ -427,7 +424,8 @@
                     :style="{
                       width:
                         index == 0 ||
-                        index == chapter002.tableData121.length - 1
+                        index == chapter002.headersData.length - 2 ||
+                        index == chapter002.headersData.length - 1
                           ? '100px'
                           : '',
                     }"
@@ -707,11 +705,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter002.inspectData.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter002.inspectHeader"
                       :key="index"
@@ -991,11 +985,7 @@
                   <tr>
                     <th
                       :style="{
-                        width:
-                          index == 1 ||
-                          index == chapter002.designData.length - 1
-                            ? '100px'
-                            : '',
+                        width: index == 3 ? '300px' : '50px',
                       }"
                       v-for="(header, index) in chapter002.designHeader"
                       :key="index"
@@ -1410,7 +1400,7 @@
   </div>
 </template>
 <script>
-import getResourcePath from "@/assets/methods/resources.js";
+import { getResourcePath } from "@/assets/methods/resources.js";
 import examinations from "@/components/examinations/index.vue";
 
 export default {
@@ -1422,6 +1412,10 @@
     },
     questionData: {
       type: Object,
+    },
+    isSearch: {
+      type: Boolean,
+      default: false,
     },
   },
   data() {
@@ -1452,7 +1446,6 @@
           "鑷煡浜虹鍚�",
         ], // 琛ㄥご
         tableData121: [
-          // 浜岀淮鏁扮粍浣滀负琛ㄦ牸鏁版嵁
           ["绌鸿皟", "", "", "", "", "", "", ""],
           ["鐢佃鏈�", "", "", "", "", "", "", ""],
           ["鐢甸鎵�", "", "", "", "", "", "", ""],
@@ -1460,6 +1453,8 @@
           ["鐢电伅", "", "", "", "", "", "", ""],
           ["鐢佃剳", "", "", "", "", "", "", ""],
           ["闂ㄧ獥", "", "", "", "", "", "", ""],
+          ["姘寸", "", "", "", "", "", "", ""],
+          ["鍏朵粬璁惧", "", "", "", "", "", "", ""],
         ],
         tableData122: [
           ["", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
@@ -1663,20 +1658,18 @@
     examinations,
   },
   async created() {
-    const localData = JSON.parse(localStorage.getItem("chapter002"));
-    if (localData) {
-      this.chapter002 = { ...Object.assign(this.chapter002, localData) };
+    if (!this.isSearch) {
+      const localData = JSON.parse(localStorage.getItem("chapter002"));
+      if (localData) {
+        this.chapter002 = { ...Object.assign(this.chapter002, localData) };
+      }
+      this.chapter002.videOneUrl = await getResourcePath(
+        "6e471afdbeb95a8891f1551cbb0cd4fd"
+      );
+      this.chapter002.videOneUrl116 = await getResourcePath(
+        "b727b78f8036a38cbd054816a81da7f8"
+      );
     }
-    this.chapter002.videOneUrl = await getResourcePath(
-      "6e471afdbeb95a8891f1551cbb0cd4fd"
-    );
-    this.chapter002.videOneUrl116 = await getResourcePath(
-      "b727b78f8036a38cbd054816a81da7f8"
-    );
-    // this.chapter002.videOneUrl116 =
-    //   "https:/jsek.bnuic.com/file/api/ApiDownload?md5=b727b78f8036a38cbd054816a81da7f8";
-    // this.chapter002.videOneUrl =
-    //   "https:/jsek.bnuic.com/file/api/ApiDownload?md5=6e471afdbeb95a8891f1551cbb0cd4fd";
   },
   methods: {
     activityOne() {
@@ -1705,6 +1698,11 @@
       this.$set(this.chapter002.tableData121[rowIndex], cellIndex, value);
       localStorage.setItem("chapter002", JSON.stringify(this.chapter002));
     },
+    updateCell122(rowIndex, cellIndex, value) {
+      // 鏇存柊鍗曞厓鏍兼暟鎹�
+      this.$set(this.chapter002.tableData122[rowIndex], cellIndex, value);
+      localStorage.setItem("chapter002", JSON.stringify(this.chapter002));
+    },
     updateCell123(rowIndex, cellIndex, value) {
       // 鏇存柊鍗曞厓鏍兼暟鎹�
       this.$set(this.chapter002.tableData123[rowIndex], cellIndex, value);

--
Gitblit v1.9.1