修改开始检测->选择项目,有问题待确认
This commit is contained in:
parent
4774df24b2
commit
46204ed702
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user