From 5c4993cf1256efa1aab89de9e7891155de02d335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Sat, 11 May 2024 18:17:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dreport=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=8C=89=E9=92=AE=E4=B8=8D=E4=BC=9Adisabled=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/Report.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/report/Report.vue b/src/views/report/Report.vue index d3ef4ff5..ccce937b 100644 --- a/src/views/report/Report.vue +++ b/src/views/report/Report.vue @@ -273,6 +273,7 @@ export default { for (let i = 0; i < response.data.data.list.length; i++) { response.data.data.list[i].status = response.data.data.list[i].status + '' } + this.tableData = [] this.$nextTick(() => { this.tableData = response.data.data.list.map(item => { return { @@ -316,10 +317,17 @@ export default { type: 'warning' }).catch(() => {}) } else { - const curRecord = this.batchDeleteObjs[0] - this.initConfig(curRecord) - this.object = curRecord - this.rightBox.show = true + axios.get(`${api.reportTemp}/${this.batchDeleteObjs[0].id}`).then(response => { + if (response.status === 200) { + const curRecord = response.data.data + if (curRecord.config) { + curRecord.config = JSON.parse(curRecord.config) + } + this.initConfig(curRecord) + this.object = curRecord + this.rightBox.show = true + } + }) } }, initConfig (u) {