From 325eaadb2690835633d28848c1f756afb85ddd8f Mon Sep 17 00:00:00 2001 From: Iruka <1017819588@qq.com> Date: Mon, 6 Jan 2025 18:03:14 +0800 Subject: [PATCH] . --- pages/work/operation-log/index.vue | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pages/work/operation-log/index.vue b/pages/work/operation-log/index.vue index cc46a5a..8f3f561 100644 --- a/pages/work/operation-log/index.vue +++ b/pages/work/operation-log/index.vue @@ -109,17 +109,22 @@ }).then(response => { if (response.rows.length) { response.rows.forEach(item => { - if (item.eventType == 9) { - stepList.splice(stepCurrent, 0, { - title: '中断', - description: item.occurTime, - status: 'success' - }); - } else { - if (item.eventType > stepCurrent) { + if (item.eventType > stepCurrent) { + if (item.eventType == 9) { + stepList.splice(stepCurrent, 0, { + title: '中断', + description: item.occurTime, + status: 'success' + }); + } else { stepCurrent = item.eventType; stepList[stepCurrent - 1].description = item.occurTime; stepList[stepCurrent - 1].status = 'success'; + + if (item.eventType == 5 && stepList[3].status == "") { + stepList[3].description = item.occurTime; + stepList[3].status = 'success'; + } } } });