From cf163012eee08ecb016f602d80fdd1875490feda Mon Sep 17 00:00:00 2001 From: limingtao <@ming_tao_li> Date: Mon, 29 Jul 2024 11:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/investigation-item2.vue | 32 +++++++++++-------- pages/investigation/task.vue | 2 +- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/pages/investigation/components/investigation-item2.vue b/pages/investigation/components/investigation-item2.vue index 22b5d31..114c5ab 100644 --- a/pages/investigation/components/investigation-item2.vue +++ b/pages/investigation/components/investigation-item2.vue @@ -114,7 +114,7 @@ item.fileList = []; } switch ( - item.type + item.type ) { // case "1": @@ -131,7 +131,10 @@ let arr = item.standar.split(',') for (let itm of arr) { if (itm) { - item.fileList.push({ url: itm, name: '' }) + item.fileList.push({ + url: itm, + name: '' + }) } } @@ -172,7 +175,10 @@ console.log(arr, 4343242342423) for (let item of arr) { if (item) { - this.fileList.push({ url: item, name: '' }) + this.fileList.push({ + url: item, + name: '' + }) } } @@ -187,7 +193,7 @@ } }, // 页面显示 - onShow() { }, + onShow() {}, // 计算属性 computed: {}, // 方法 @@ -201,7 +207,7 @@ len = !len ? 36 : len; binary = !binary ? 16 : binary; return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" - .replace(/[xy]/g, function (c) { + .replace(/[xy]/g, function(c) { var r = (Math.random() * binary) | 0, v = c == "x" ? r : (r & 0x3) | 0x8; return v.toString(binary); @@ -313,11 +319,12 @@ this.$emit("change", this.formData); }, getData2() { + console.log(this.$props.json) this.$request .globalRequest( - "/hiddenDanger/highDanger/getImportDangerInfo", - { - sid: this.$props.json.nid, + "/hiddenDanger/highDanger/getImportDangerInfo", { + // sid: this.$props.json.nid, + dangerId: this.$props.json.id, }, "GET" ) @@ -351,8 +358,7 @@ getData() { this.$request .globalRequest( - "/hiddenDanger/highDanger/getImportDangerDisplayDetail", - { + "/hiddenDanger/highDanger/getImportDangerDisplayDetail", { dangerId: this.$props.json.id, businessId: this.$props.businessId, }, @@ -416,9 +422,9 @@ }); }, }, - onReady() { }, + onReady() {}, // 页面卸载 - onUnload() { }, + onUnload() {}, // 触发下拉刷新 onPullDownRefresh() { // 延迟关闭刷新动画 @@ -427,7 +433,7 @@ }, 1500); }, // 页面上拉触底事件的处理函数 - onReachBottom() { }, + onReachBottom() {}, }; diff --git a/pages/investigation/task.vue b/pages/investigation/task.vue index 561ed93..1619e15 100644 --- a/pages/investigation/task.vue +++ b/pages/investigation/task.vue @@ -590,7 +590,7 @@ }, showInvestigationTag2(v) { - console.log(v, this.investigationSelectList) + // console.log(v, this.investigationSelectList) if (this.checked.includes(v.id)) { this.showInvestigation2 = true; this.showInvestigation2Item = v