diff --git a/frontend/src/views/schedule/ScheduleList.vue b/frontend/src/views/schedule/ScheduleList.vue index f4f569a2..548c7696 100644 --- a/frontend/src/views/schedule/ScheduleList.vue +++ b/frontend/src/views/schedule/ScheduleList.vue @@ -184,6 +184,15 @@ + + + +
@@ -257,25 +266,31 @@ - + @@ -292,10 +307,12 @@ import { } from 'vuex' import ParametersDialog from '../../components/Common/ParametersDialog' import ScheduleTaskList from '../../components/Schedule/ScheduleTaskList' +import CrawlConfirmDialog from '../../components/Common/CrawlConfirmDialog' export default { name: 'ScheduleList', components: { + CrawlConfirmDialog, ScheduleTaskList, VueCronLinux, ParametersDialog @@ -326,6 +343,7 @@ export default { isLoading: false, isParametersVisible: false, isViewTasksDialogVisible: false, + crawlConfirmDialogVisible: false, // tutorial tourSteps: [ @@ -622,6 +640,11 @@ export default { this.$refs['schedule-task-list'].update() }, 100) this.$st.sendEv('定时任务', '查看任务列表') + }, + async onRun (row) { + this.crawlConfirmDialogVisible = true + this.$store.commit('schedule/SET_SCHEDULE_FORM', row) + this.$st.sendEv('定时任务', '点击运行任务') } }, created () {