修改开始检测->选择项目,有问题待确认

This commit is contained in:
xiaofajia 2024-12-11 11:46:21 +08:00
parent 4774df24b2
commit 46204ed702

View File

@ -232,18 +232,21 @@ export default {
id: item.id id: item.id
} }
let res = await request({ let res = await request({
url: '/partnerOwn/partner/inspectionDetail', url: `/system/info/getWorkNodeByIdAndNow?id=${item.id}&status=0`,
method: 'get', method: 'get',
params: {
inspectionInfoId: item.id
}
}) })
this.chooseWorkNodes = [res.data.workNodes.map(i => { if (res.data){
return { this.chooseWorkNodes = [Object.keys(res.data).map(key => ({
label: i.projectName, value: key,
value: i.id label: res.data[key]
} }))]
})] }
// this.chooseWorkNodes = [res.data.map(i => {
// return {
// label: i.projectName,
// value: i.id
// }
// })]
this.show = true this.show = true
}, },
msgInfo() { msgInfo() {