From bfe823ed2dbab15a37b0772b8d8f631285bd16a2 Mon Sep 17 00:00:00 2001 From: mengfanliang Date: Fri, 30 Aug 2024 09:12:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E6=93=8D=E4=BD=9C=E7=9A=84=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/eight_assignments/hot_work/apply.vue | 6 +++++- utils/submitHomeworkProcess.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/eight_assignments/hot_work/apply.vue b/pages/eight_assignments/hot_work/apply.vue index 824b747..40bcf5e 100644 --- a/pages/eight_assignments/hot_work/apply.vue +++ b/pages/eight_assignments/hot_work/apply.vue @@ -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 diff --git a/utils/submitHomeworkProcess.js b/utils/submitHomeworkProcess.js index fa0fe94..5773fb3 100644 --- a/utils/submitHomeworkProcess.js +++ b/utils/submitHomeworkProcess.js @@ -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}