From 0779db18bd94646a004600fa5df393ebb9e39688 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Thu, 11 May 2023 17:34:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=B8=A6?= =?UTF-8?q?=E5=87=BA=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reportProcess/components/reportForm.vue | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/views/reportProcess/components/reportForm.vue b/src/views/reportProcess/components/reportForm.vue index f3303b2..1ba7ebb 100644 --- a/src/views/reportProcess/components/reportForm.vue +++ b/src/views/reportProcess/components/reportForm.vue @@ -254,31 +254,32 @@ export default { } }, watch: { - processForm(val) { - this.form = this.processForm - - if(this.form.secrecyLast){ - this.isShowTime=true - this.form.secrecyLast=new Date(this.form.secrecyLast) - } - if(this.processForm.keyContent){ - this.tags=JSON.parse(this.processForm.keyContent) - } - if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){ - this.form.labelList= this.processForm.labelList.map(item=>{ - return JSON.parse(item) - }) - } - - - + processForm:{ + handler(val) { + this.form = this.processForm + console.log("ε˜εŒ–δΊ†",this.form) + if(this.form.secrecyLast){ + this.isShowTime=true + this.form.secrecyLast=new Date(this.form.secrecyLast) + } + if(this.processForm.keyContent){ + this.tags=JSON.parse(this.processForm.keyContent) + } + debugger + if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){ + this.form.labelList= this.processForm.labelList.map(item=>{ + return JSON.parse(item) + }) + } + }, + immediate:true } }, methods: { downFile(id){ if(this.formControl) return - this.$api.report.reportDownload({reportId:'',fileId:id}).then(res=>{ + this.$api.report.reportDownload({reportId:null,fileId:id}).then(res=>{ downloadFile(res) }) },