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() {