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,15 +1357,31 @@
drafterName: command[0].drafterName, // 起草人 drafterName: command[0].drafterName, // 起草人
drafter: command[0].drafter, drafter: command[0].drafter,
} }
this.addForm.LXD = command[0].lxd if(command[0].lxd && command[0].lxd !== 'null'){
let fileName1 = "" this.addForm.LXD = command[0].lxd
if(this.addForm.esName && this.addForm.esName !== ''){ let fileName1 = ""
fileName1 = this.addForm.esName+'-立项单' if(this.addForm.esName && this.addForm.esName !== ''){
fileName1 = this.addForm.esName+'-立项单'
}else {
fileName1 = '立项单'
}
this.addForm.lxdName = fileName1
this.LXDList=this.assemble(command[0].lxd,fileName1)
}else { }else {
fileName1 = '立项单' 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 = fileName1
this.LXDList=this.assemble(command[0].lxd,fileName1)
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'){
if(this.addForm.esName && this.addForm.esName !== ''){ this.addForm.LXD = command[0].lxd
fileName = this.addForm.esName+'-立项单' let fileName1 = ""
if(this.addForm.esName && this.addForm.esName !== ''){
fileName1 = this.addForm.esName+'-立项单'
}else {
fileName1 = '立项单'
}
this.addForm.lxdName = fileName1
this.LXDList=this.assemble(command[0].lxd,fileName1)
}else { }else {
fileName = '立项单' 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(',')
} }