From c19e68bd3e404d57510046580f8dada3206cc86c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Wed, 20 Apr 2022 16:07:59 +0800 Subject: [PATCH] =?UTF-8?q?52546=20=E6=A0=87=E5=87=86=E5=BE=81=E6=B1=82?= =?UTF-8?q?=E6=84=8F=E8=A7=81=E6=B5=81=E7=A8=8B=E6=B5=81=E7=A8=8B=E8=B5=B0?= =?UTF-8?q?=E5=AE=8C=E5=90=8E=EF=BC=8C=E6=B5=81=E7=A8=8B=E7=9B=91=E6=8E=A7?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=EF=BC=8C=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=BD=92?= =?UTF-8?q?=E6=A1=A3=EF=BC=8C=E5=88=A0=E9=99=A4=E5=AE=A1=E6=89=B9=E6=84=8F?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzzqyj/step1-9.vue | 54 ++++++------------- 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step1-9.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step1-9.vue index a80b09eba..a422d7804 100644 --- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step1-9.vue +++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step1-9.vue @@ -354,54 +354,30 @@ export default { pId: this.pId }).then(res => { let data = JSON.parse(res.mesg) - this.form.fjList = data.fjList || data.form.fjList - if (data.fjListId === '') { - this.form.fjListId = '' - } else { - this.form.fjListId = data.form.fjListId || data.fjListId - } this.commentText9 = data.commentText9 || '' + this.onlyKey = data.form ? data.form.onlyKey :data.onlyKey + this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser + this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName + this.form.fjList = data.fjList || data.form.fjList this.form.cid = data.cid || data.form.cid; this.form.endTime = data.endTime || data.form.endTime; - this.form.cname = data.cname || data.form.cname; - this.oldData = JSON.parse(JSON.stringify(data.info)) - var arr = [] - data.info.forEach(item => { - arr.push(item) - }) - this.json = data this.form.textType = data.textType || data.form.textType this.form.modelList = data.modelList || data.form.modelList - this.form.modelNameList = data.modelNameList || data.form.modelNameList + let newArr = data.info ? data.info : data.form.data + this.oldData = JSON.parse(JSON.stringify(newArr)) + let arr = [] + newArr.forEach(item => { + if (item.state != '3') { + arr.push(item) + } + }) + this.json = data this.data = arr + this.data2 = newArr }).catch(e => { }); }); - // return new Promise((resolve, reject) => { - // inboundLiaisonDetail({ - // taskIds: this.taskIds, - // pId: this.pId - // }).then(res => { - // let data = JSON.parse(res.mesg) - // console.log(data); - // this.form.cid = data.cid - // this.form.endTime = data.endTime - // this.form.cname = data.cname - // this.form.fjList = data.fjList - // this.form.fjListId = data.fjListId - // var arr = [] - // data.summaryList.forEach( item => { - // if (item.state != '3') { - // arr.push(item) - // } - // }) - // this.json = data - // this.data = arr - // this.oldData = data.oldinfo - // }).catch(e => { - // }) - // }) - }, + } }, mounted () { this.getHistoryData()