【修改】带出部门

This commit is contained in:
zhoulingpo
2023-05-11 17:34:43 +08:00
parent eadc465186
commit 0779db18bd
@@ -254,9 +254,10 @@ export default {
} }
}, },
watch: { watch: {
processForm(val) { processForm:{
handler(val) {
this.form = this.processForm this.form = this.processForm
console.log("变化了",this.form)
if(this.form.secrecyLast){ if(this.form.secrecyLast){
this.isShowTime=true this.isShowTime=true
this.form.secrecyLast=new Date(this.form.secrecyLast) this.form.secrecyLast=new Date(this.form.secrecyLast)
@@ -264,21 +265,21 @@ export default {
if(this.processForm.keyContent){ if(this.processForm.keyContent){
this.tags=JSON.parse(this.processForm.keyContent) this.tags=JSON.parse(this.processForm.keyContent)
} }
debugger
if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){ if(this.processForm.labelList && typeof this.processForm.labelList[0]=='string'){
this.form.labelList= this.processForm.labelList.map(item=>{ this.form.labelList= this.processForm.labelList.map(item=>{
return JSON.parse(item) return JSON.parse(item)
}) })
} }
},
immediate:true
} }
}, },
methods: { methods: {
downFile(id){ downFile(id){
if(this.formControl) return 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) downloadFile(res)
}) })
}, },