From a5989ab9f67c04065c21f89e3f64bd10ff6d4c64 Mon Sep 17 00:00:00 2001 From: dengbf Date: Tue, 1 Jul 2025 17:16:50 +0800 Subject: [PATCH] =?UTF-8?q?-[=E4=BF=AE=E5=A4=8D]=20#[1455845538234368]cron?= =?UTF-8?q?=E7=BB=84=E4=BB=B6-=E4=BF=AE=E6=94=B9=E4=B8=BA=E2=80=9C?= =?UTF-8?q?=E6=AF=8F=E5=88=86=E9=92=9F=E2=80=9D=E9=85=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BF=9D=E5=AD=98=E5=BC=82=E5=B8=B8=20http:/?= =?UTF-8?q?/192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/93?= =?UTF-8?q?9050947543057/1455845538234368?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/plugins/TsQuartz/TsQuartz.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/resources/plugins/TsQuartz/TsQuartz.vue b/src/resources/plugins/TsQuartz/TsQuartz.vue index e83268bf..3a7411dd 100644 --- a/src/resources/plugins/TsQuartz/TsQuartz.vue +++ b/src/resources/plugins/TsQuartz/TsQuartz.vue @@ -133,17 +133,19 @@ export default { this.tmpCronType = item; for (let key in this.cronData) { //秒需要保持是0 - if (key != 'second' && key != 'minute' && !this.Setting.controllerList[item].find(d => d.datasource && d.datasource === key)) { + if (key != 'second' && !this.Setting.controllerList[item].find(d => d.datasource && d.datasource === key)) { this.$set(this.cronData, key, '*'); if (key === 'dayofweek') { this.$set(this.cronData, 'dayofmonth', '?'); } else if (key === 'dayofmonth') { this.$set(this.cronData, 'dayofweek', '?'); - } - } else if (key === 'second' || key === 'minute') { - this.$set(this.cronData, key, '0'); + } } } + this.$set(this.cronData, 'second', '0'); + if (item !== 'minute') { + this.$set(this.cronData, 'minute', '0'); + } this.datasourceVisibleMap[controller.datasource] = false; } else if (controller.get === 'value') { let v = this.cronData[controller.datasource]; -- Gitee