feat: 修改下一步操作的判断逻辑

八项作业
mengfanliang 2024-08-30 09:12:18 +08:00
parent 26b5ef1301
commit bfe823ed2d
2 changed files with 6 additions and 2 deletions

View File

@ -172,7 +172,11 @@ export default {
methods: {
async fnGetData(taskId) {
let resData = await getTaskInfo({EW_RU_TASK_ID: taskId})
console.log('resData :>> ', resData);
if (resData.list.form && resData.list.form.length > 0) {
resData.list.form.forEach((sos, index) => {
this.form[sos.ITEM_NAME] = sos.ITEM_VALUE;
})
}
},
fnDateTimePickerClick(event) {
this.dateTimePicker.type = event

View File

@ -211,7 +211,7 @@ export const resolveNextOperation = async (
return
}
// 有限空间作业气体分析
if (info.otherFlag.redirectFlag === '1') {
if (info.otherFlag !== null && info.otherFlag.redirectFlag === '1') {
uni.$u.route({
url: info.otherFlag.url,
params: {taskId: EW_RU_TASK_ID, EW_RU_JOB_ID, TYPE}