feat: 受限空间安全作业待办的回显修补

八项作业
mengfanliang 2024-08-30 14:13:12 +08:00
parent 70364c296b
commit 69fc1d6516
2 changed files with 10 additions and 4 deletions

View File

@ -184,11 +184,17 @@ export default {
},
methods: {
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) {
let newFormData = { ...this.form };
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() {

View File

@ -88,7 +88,7 @@ export default {
let tempUrlStr = this.type.replace(/([a-z])([A-Z])/g, '\$1_\$2').toLowerCase()
uni.$u.route({
url: `/pages/eight_assignments/${tempUrlStr}/apply`,
params: { taskId: value.taskId }
params: { taskId: value.taskId, CORPINFO_ID: value.corpId }
})
}
},