From b14934a7b626c2e9aed12f5a51a21b3e8ad572bb Mon Sep 17 00:00:00 2001 From: "396572590@qq.com" Date: Tue, 26 Jul 2022 15:12:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20There=20is=20no=20way=20the,=2056527=20?= =?UTF-8?q?=E7=AB=8B=E9=A1=B9=E5=8D=95-=E4=B8=8B=E8=BD=BD=EF=BC=8C?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E5=AE=8C=E6=88=90=E5=90=8E=E7=A9=BA=E7=99=BD?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enterpriseStandardPlan/index.vue | 58 ++++++++++++++----- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue index c13e6e906..1390d70fe 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue @@ -1357,15 +1357,31 @@ drafterName: command[0].drafterName, // 起草人 drafter: command[0].drafter, } - this.addForm.LXD = command[0].lxd - let fileName1 = "" - if(this.addForm.esName && this.addForm.esName !== ''){ - fileName1 = this.addForm.esName+'-立项单' + if(command[0].lxd && command[0].lxd !== 'null'){ + this.addForm.LXD = command[0].lxd + 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 { - 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') { this.addForm.area = command[0].area.split(',') } @@ -1399,14 +1415,30 @@ this.addDrawer = true this.addForm = command[0] this.addForm.LXD = command[0].lxd - let fileName = "" - if(this.addForm.esName && this.addForm.esName !== ''){ - fileName = this.addForm.esName+'-立项单' + if(command[0].lxd && command[0].lxd !== 'null'){ + this.addForm.LXD = command[0].lxd + 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 { - 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') { this.addForm.area = command[0].area.split(',') }