diff --git a/frontend/src/i18n/zh.js b/frontend/src/i18n/zh.js index c9e24806..d8f1dbe2 100644 --- a/frontend/src/i18n/zh.js +++ b/frontend/src/i18n/zh.js @@ -214,6 +214,9 @@ export default { 'Add Schedule': '添加定时任务', 'stop': '暂停', 'running': '运行', + 'error': '错误', + 'Not Found Node': '节点配置错误', + 'Not Found Spider': '爬虫配置错误', // 网站 'Site': '网站', diff --git a/frontend/src/views/schedule/ScheduleList.vue b/frontend/src/views/schedule/ScheduleList.vue index f07de8f9..c7d5a4ad 100644 --- a/frontend/src/views/schedule/ScheduleList.vue +++ b/frontend/src/views/schedule/ScheduleList.vue @@ -110,7 +110,14 @@ :align="col.align" :width="col.width"> {}) } - }, - onCrontabFill (value) { - value = value.replace(/[?]/g, '*') - this.$set(this.scheduleForm, 'cron', value) - - this.$st.sendEv('定时任务', '提交生成Cron', 'cron', this.scheduleForm.cron) - }, - onShowCronDialog () { - this.showCron = true - if (this.expression.split(' ').length < 7) { - // this.expression = (this.scheduleForm.cron + ' ').replace(/[?]/g, '*') - this.expression = this.scheduleForm.cron + ' ' - } else { - // this.expression = this.scheduleForm.cron.replace(/[?]/g, '*') - this.expression = this.scheduleForm.cron - } - - this.$st.sendEv('定时任务', '点击生成Cron', 'cron', this.scheduleForm.cron) } }, created () { @@ -343,4 +332,7 @@ export default { min-height: 360px; margin-top: 10px; } + .status-tag { + cursor: pointer; + } diff --git a/frontend/src/views/task/TaskList.vue b/frontend/src/views/task/TaskList.vue index 2c8b73bc..8013c080 100644 --- a/frontend/src/views/task/TaskList.vue +++ b/frontend/src/views/task/TaskList.vue @@ -229,6 +229,7 @@ export default { type: 'error', message: '请选择要删除的任务' }) + return } this.$confirm('确定删除任务', '提示', { confirmButtonText: '确定',