diff --git a/frontend/src/views/dataset/data/UpdateInfo.vue b/frontend/src/views/dataset/data/UpdateInfo.vue index 6cd42c83ed..0d13f46cd1 100644 --- a/frontend/src/views/dataset/data/UpdateInfo.vue +++ b/frontend/src/views/dataset/data/UpdateInfo.vue @@ -574,7 +574,7 @@ export default { startTime: '', rate: 'SIMPLE', cron: '', - endTime: '', + endTime: 0, end: '0', extraData: { simple_cron_type: 'hour', @@ -779,6 +779,7 @@ export default { this.taskForm.name = this.table.name + ' ' + this.$t('dataset.task_update') this.taskForm.startTime = new Date() + this.taskForm.endTime = new Date() this.update_task_dialog_title = this.$t('dataset.task_add_title') } else { // update @@ -908,6 +909,7 @@ export default { } this.incrementalConfig.tableId = this.table.id task.startTime = new Date(task.startTime).getTime() + console.log(task.endTime) task.endTime = new Date(task.endTime).getTime() task.tableId = this.table.id const form = JSON.parse(JSON.stringify(task)) @@ -1030,7 +1032,7 @@ export default { onRateChange() { if (this.taskForm.rate === 'SIMPLE') { this.taskForm.end = '0' - this.taskForm.endTime = '' + this.taskForm.endTime = 0 this.taskForm.cron = '' this.showCron = false } diff --git a/frontend/src/views/dataset/data/UpdateRecords.vue b/frontend/src/views/dataset/data/UpdateRecords.vue index 3e6fa82ebe..c3a0ed622d 100644 --- a/frontend/src/views/dataset/data/UpdateRecords.vue +++ b/frontend/src/views/dataset/data/UpdateRecords.vue @@ -530,7 +530,7 @@ export default { startTime: '', rate: 'SIMPLE', cron: '', - endTime: '', + endTime: 0, end: '0', extraData: { simple_cron_type: 'hour', @@ -707,6 +707,7 @@ export default { this.resetTaskForm() this.taskForm.name = this.table.name + ' ' + this.$t('dataset.task_update') this.taskForm.startTime = new Date() + this.taskForm.endTime = new Date() this.update_task_dialog_title = this.$t('dataset.task_add_title') } else { this.taskForm = JSON.parse(JSON.stringify(task)) @@ -854,7 +855,7 @@ export default { onRateChange() { if (this.taskForm.rate === 'SIMPLE') { this.taskForm.end = '0' - this.taskForm.endTime = '' + this.taskForm.endTime = 0 this.taskForm.cron = '' } if (this.taskForm.rate === 'SIMPLE_CRON') { diff --git a/frontend/src/views/system/task/Form.vue b/frontend/src/views/system/task/Form.vue index 82f3b62848..36d506bce0 100644 --- a/frontend/src/views/system/task/Form.vue +++ b/frontend/src/views/system/task/Form.vue @@ -295,7 +295,7 @@ export default { tableId: '', rate: 'SIMPLE', cron: '', - endTime: '', + endTime: 0, end: '0', extraData: { simple_cron_type: 'hour', @@ -391,6 +391,7 @@ export default { this.taskDetail = { datasetName, id, tableId } if (!id) { this.taskForm.startTime = new Date() + this.taskForm.endTime = new Date() return } this.getTaskDetail(id) @@ -418,7 +419,7 @@ export default { onRateChange() { if (this.taskForm.rate === 'SIMPLE') { this.taskForm.end = '0' - this.taskForm.endTime = '' + this.taskForm.endTime = 0 this.taskForm.cron = '' this.showCron = false }