feat: There is no way the, 56527 立项单-下载,下载完成后空白文件

This commit is contained in:
396572590@qq.com
2022-07-26 15:12:07 +08:00
parent d5caf87f09
commit b14934a7b6
@@ -1357,6 +1357,7 @@
drafterName: command[0].drafterName, // 起草人 drafterName: command[0].drafterName, // 起草人
drafter: command[0].drafter, drafter: command[0].drafter,
} }
if(command[0].lxd && command[0].lxd !== 'null'){
this.addForm.LXD = command[0].lxd this.addForm.LXD = command[0].lxd
let fileName1 = "" let fileName1 = ""
if(this.addForm.esName && this.addForm.esName !== ''){ if(this.addForm.esName && this.addForm.esName !== ''){
@@ -1366,6 +1367,21 @@
} }
this.addForm.lxdName = fileName1 this.addForm.lxdName = fileName1
this.LXDList=this.assemble(command[0].lxd,fileName1) this.LXDList=this.assemble(command[0].lxd,fileName1)
}else {
this.$http.get('/lawss/activiti/saveEditFile', {
model: 'model_lx'
},{
_this: this
}, res => {
if(res){
this.addForm.lxd = res.id
this.addForm.lxdName = '立项单'
this.LXDList=this.assemble(res.id,'立项单');
}
})
}
if (typeof (this.addForm.area) === 'string') { if (typeof (this.addForm.area) === 'string') {
this.addForm.area = command[0].area.split(',') this.addForm.area = command[0].area.split(',')
} }
@@ -1399,14 +1415,30 @@
this.addDrawer = true this.addDrawer = true
this.addForm = command[0] this.addForm = command[0]
this.addForm.LXD = command[0].lxd this.addForm.LXD = command[0].lxd
let fileName = "" if(command[0].lxd && command[0].lxd !== 'null'){
this.addForm.LXD = command[0].lxd
let fileName1 = ""
if(this.addForm.esName && this.addForm.esName !== ''){ if(this.addForm.esName && this.addForm.esName !== ''){
fileName = this.addForm.esName+'-立项单' fileName1 = this.addForm.esName+'-立项单'
}else { }else {
fileName = '立项单' fileName1 = '立项单'
}
this.addForm.lxdName = fileName1
this.LXDList=this.assemble(command[0].lxd,fileName1)
}else {
this.$http.get('/lawss/activiti/saveEditFile', {
model: 'model_lx'
},{
_this: this
}, res => {
if(res){
this.addForm.lxd = res.id
this.addForm.lxdName = '立项单'
this.LXDList=this.assemble(res.id,'立项单');
}
})
} }
this.addForm.lxdName = fileName
this.LXDList=this.assemble(command[0].lxd,fileName);
if (typeof (this.addForm.area) === 'string') { if (typeof (this.addForm.area) === 'string') {
this.addForm.area = command[0].area.split(',') this.addForm.area = command[0].area.split(',')
} }