From 68f6c0c974e6b451cf8cc3538f9d599b0a59f0b1 Mon Sep 17 00:00:00 2001 From: hLinx <327159425@qq.com> Date: Tue, 12 Jul 2022 12:15:44 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E5=8E=9F=E5=AD=90=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E6=94=AF=E6=8C=81=E6=BB=9A=E5=8A=A8=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=20#446?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../step-detail/components/rolling-batch/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/views/executive-history/step-detail/components/rolling-batch/index.vue b/src/frontend/src/views/executive-history/step-detail/components/rolling-batch/index.vue index 2a2edfbb99..d900d861bc 100644 --- a/src/frontend/src/views/executive-history/step-detail/components/rolling-batch/index.vue +++ b/src/frontend/src/views/executive-history/step-detail/components/rolling-batch/index.vue @@ -180,12 +180,16 @@ created () { this.list = Object.freeze(this.data.rollingTasks); this.selectBatch = this.data.runningBatchOrder; - this.isAutoSelectRunningBatch = true; + this.isAutoSelectRunningBatch = false; }, mounted () { this.initRender(); setTimeout(() => { - this.handleLocalChange(this.data.runningBatchOrder); + // url 上面有 batch 参数 + const defaultBatch = parseInt(this.$route.query.batch, 10) < 0 + ? this.data.runningBatchOrder + : parseInt(this.$route.query.batch, 10); + this.handleLocalChange(defaultBatch); this.isAutoSelectRunningBatch = true; }, 300); const resizeHandler = _.throttle(() => {