| | |
| | | <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" |
| | |
| | | :style="{ |
| | | width: |
| | | index == 0 || |
| | | index == chapter002.tableData121.length - 1 |
| | | index == chapter002.headersData.length - 2 || |
| | | index == chapter002.headersData.length - 1 |
| | | ? '100px' |
| | | : '', |
| | | }" |
| | |
| | | <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" |
| | |
| | | <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" |
| | |
| | | </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 { |
| | |
| | | }, |
| | | questionData: { |
| | | type: Object, |
| | | }, |
| | | isSearch: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | }, |
| | | data() { |
| | |
| | | "自查人签名", |
| | | ], // 表头 |
| | | tableData121: [ |
| | | // 二维数组作为表格数据 |
| | | ["空调", "", "", "", "", "", "", ""], |
| | | ["电视机", "", "", "", "", "", "", ""], |
| | | ["电风扇", "", "", "", "", "", "", ""], |
| | |
| | | ["电灯", "", "", "", "", "", "", ""], |
| | | ["电脑", "", "", "", "", "", "", ""], |
| | | ["门窗", "", "", "", "", "", "", ""], |
| | | ["水管", "", "", "", "", "", "", ""], |
| | | ["其他设备", "", "", "", "", "", "", ""], |
| | | ], |
| | | tableData122: [ |
| | | ["", "", "", "", "", "", "", "", "", "", "", "", "", "", ""], |
| | |
| | | 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() { |
| | |
| | | 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); |