From eba11e88005ea1bbc29559978ac24d470c85380e Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 26 Sep 2025 18:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E7=AB=99=E9=A2=86=E6=96=99?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue index d6232a3..e1e2b56 100644 --- a/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue +++ b/src/pages/materialsStation/toolsLease/toolsLeaseAdd.vue @@ -306,9 +306,9 @@ const getTeamList = async () => { }) // console.log('🚀 ~ teamRange.value=res.data.map ~ teamRange.value:', teamRange.value) // 如果 teamRange.value 列表中的 idCard 有与userInfo.userName 一致的,则设置 teamId - console.log('🚀 ~ getTeamList ~ userInfo.value.userName:', userInfo.value.userName) - if (teamRange.value.some((item) => item.teamLeaderIdCard == userInfo.value.userName)) { - const team = res.data.find((item) => item.teamLeaderIdCard == userInfo.value.userName) + if (opts.value.isEdit) { + const team = res.data.find((item) => item.teamName == formData.teamName) + console.log("xxxxxxxxx",team) formData.teamId = team.id formData.teamName = team.teamName formData.leasePerson = team.relName @@ -468,6 +468,7 @@ const changeTeamd = (e) => { formData.relName = team ? team.relName : '' formData.phone = team ? team.relPhone : '' formData.teamLeaderIdCard = team ? team.teamLeaderIdCard : '' + formData.subUnitName = team? team.subUnitName : '' equipmentList.value = [] // getProjectListApi() getAgreementInfoById()