feat: 受限空间安全作业待办的回显修补
parent
70364c296b
commit
69fc1d6516
|
@ -184,11 +184,17 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async fnGetData(taskId) {
|
async fnGetData(taskId) {
|
||||||
let resData = await getTaskInfo({EW_RU_TASK_ID: taskId});
|
let resData = await getTaskInfo({ EW_RU_TASK_ID: taskId })
|
||||||
if (resData.list.form && resData.list.form.length > 0) {
|
if (resData.list.form && resData.list.form.length > 0) {
|
||||||
|
let newFormData = { ...this.form };
|
||||||
|
|
||||||
resData.list.form.forEach((sos, index) => {
|
resData.list.form.forEach((sos, index) => {
|
||||||
this.form[sos.ITEM_NAME] = sos.ITEM_VALUE;
|
newFormData[sos.ITEM_NAME] = sos.ITEM_VALUE;
|
||||||
})
|
if (sos.FK_NAME) {
|
||||||
|
newFormData[sos.FK_NAME] = sos.FK_VALUE;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.form = newFormData;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async fnGetConfinedSpaceSelectList() {
|
async fnGetConfinedSpaceSelectList() {
|
||||||
|
|
|
@ -88,7 +88,7 @@ export default {
|
||||||
let tempUrlStr = this.type.replace(/([a-z])([A-Z])/g, '\$1_\$2').toLowerCase()
|
let tempUrlStr = this.type.replace(/([a-z])([A-Z])/g, '\$1_\$2').toLowerCase()
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
url: `/pages/eight_assignments/${tempUrlStr}/apply`,
|
url: `/pages/eight_assignments/${tempUrlStr}/apply`,
|
||||||
params: { taskId: value.taskId }
|
params: { taskId: value.taskId, CORPINFO_ID: value.corpId }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue