From c80fc409ef976fcdb129d4d215e7e4701340fa4c Mon Sep 17 00:00:00 2001 From: dengbf Date: Thu, 12 Jun 2025 19:00:40 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=85=B3=E8=81=94]=20#[1442030977253376]?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E4=BD=9C=E4=B8=9A=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=EF=BC=8Crunner=E6=89=A7=E8=A1=8C=E7=9A=84phase?= =?UTF-8?q?=E7=BB=88=E6=AD=A2=E7=8A=B6=E6=80=81=E4=B9=9F=E8=A6=81=E7=BB=A7?= =?UTF-8?q?=E7=BB=AD=E5=88=B7=E6=96=B03=E6=AC=A1tail=20http://192.168.0.96?= =?UTF-8?q?:8090/demo/rdm.html#/story-detail/939050947543040/9390509475430?= =?UTF-8?q?42/1442030977253376?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autoexec/detail/jobDetail/phase/node/node-detail.vue | 7 +++++++ .../pages/autoexec/detail/logcomponents/node-log.vue | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/views/pages/autoexec/detail/jobDetail/phase/node/node-detail.vue b/src/views/pages/autoexec/detail/jobDetail/phase/node/node-detail.vue index c98a0529..d44c9891 100644 --- a/src/views/pages/autoexec/detail/jobDetail/phase/node/node-detail.vue +++ b/src/views/pages/autoexec/detail/jobDetail/phase/node/node-detail.vue @@ -399,6 +399,7 @@ export default { customTemplateData: {}, isCustomTemplateShow: true, customTemplateTimmer: null, + refreshTimes: 3, //刷新次数:终点状态后刷新,避免operationList数据不更新 operationEndingStatusList: ['completed', 'aborted', 'failed'] //终点状态节点列表,非终点状态列表的需要定时刷新。 }; }, @@ -483,6 +484,12 @@ export default { let isRefresh = data.isRefresh; this.$set(this, 'operationList', data.operationStatusList); if (isRefresh === 1) { + this.refreshTimes = 3; + this.timmer = setTimeout(() => { + this.refreshOperationStatus(); + }, 3000); + } else if (isRefresh === 0 && this.refreshTimes > 0) { + this.refreshTimes--; this.timmer = setTimeout(() => { this.refreshOperationStatus(); }, 3000); diff --git a/src/views/pages/autoexec/detail/logcomponents/node-log.vue b/src/views/pages/autoexec/detail/logcomponents/node-log.vue index 09d22cdf..688feea7 100644 --- a/src/views/pages/autoexec/detail/logcomponents/node-log.vue +++ b/src/views/pages/autoexec/detail/logcomponents/node-log.vue @@ -99,7 +99,8 @@ export default { timmer: null, isAutoScroll: true, //自动滚动日志 encodeList: [], //编码列表 - encoding: 'UTF-8' + encoding: 'UTF-8', + refreshTimes: 3 //刷新次数:终点状态后刷新,避免日志内容不一致 }; }, beforeCreate() {}, @@ -201,9 +202,15 @@ export default { } } if (isRefresh == 1) { + this.refreshTimes = 3; this.timmer = setTimeout(() => { this.getContent('down', this.endPos); }, this.calcIntervalTime(res.Return.lineList.length)); + } else if (isRefresh == 0 && this.refreshTimes > 0) { + this.refreshTimes--; + this.timmer = setTimeout(() => { + this.getContent('down', this.endPos); + }, 2000); } } }) -- Gitee