From bbc883a116a8237d61bfc89f5cd6e09834136d94 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Wed, 3 Jul 2024 21:52:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../implementation/updateTable.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/project-management/implementation/updateTable.vue b/src/views/project-management/implementation/updateTable.vue index f0155eb..950611d 100644 --- a/src/views/project-management/implementation/updateTable.vue +++ b/src/views/project-management/implementation/updateTable.vue @@ -10,7 +10,7 @@ {{ tableForm.projectChargePersonName }} - + {{ tableForm.projectChargePersonName ? '更改' : '请选择项目负责人' }} @@ -154,12 +154,14 @@ getBaseInfo() const init = async () => { const {code, msg, data} = await searchUpdateLedgerData(route.query.id) tableForm.value = data - let userObj = { - id: data.projectChargePerson, - name: data.projectChargePersonName, - companyName: data.companyName, + if(data.projectChargePersonName){ + let userObj = { + id: data.projectChargePerson, + name: data.projectChargePersonName, + companyName: data.companyName, + } + userList.value.push(userObj) } - userList.value.push(userObj) if (code !== 1000) { ElNotification({ title: '提示',