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) }) },