diff --git a/src/resources/plugins/TsQuartz/TsQuartz.vue b/src/resources/plugins/TsQuartz/TsQuartz.vue index e83268bf66647ba308bf5b8540596b25e8da40fe..3a7411ddb76b57dc7bc09c6ceb837f3a82e9d90a 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];