From 46204ed7025c5fcc9e250c4c1c6092c43a5ddb28 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Wed, 11 Dec 2024 11:46:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=80=E5=A7=8B=E6=A3=80?= =?UTF-8?q?=E6=B5=8B->=E9=80=89=E6=8B=A9=E9=A1=B9=E7=9B=AE=EF=BC=8C?= =?UTF-8?q?=E6=9C=89=E9=97=AE=E9=A2=98=E5=BE=85=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/staff/staff.vue | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pages/staff/staff.vue b/pages/staff/staff.vue index b017761..0c1a080 100644 --- a/pages/staff/staff.vue +++ b/pages/staff/staff.vue @@ -232,18 +232,21 @@ export default { id: item.id } let res = await request({ - url: '/partnerOwn/partner/inspectionDetail', + url: `/system/info/getWorkNodeByIdAndNow?id=${item.id}&status=0`, method: 'get', - params: { - inspectionInfoId: item.id - } }) - this.chooseWorkNodes = [res.data.workNodes.map(i => { - return { - label: i.projectName, - value: i.id - } - })] + if (res.data){ + this.chooseWorkNodes = [Object.keys(res.data).map(key => ({ + value: key, + label: res.data[key] + }))] + } + // this.chooseWorkNodes = [res.data.map(i => { + // return { + // label: i.projectName, + // value: i.id + // } + // })] this.show = true }, msgInfo() {