updated CHANGELOG

This commit is contained in:
marvzhang
2020-03-29 09:22:08 +08:00
parent fa05253a31
commit 50bd3fd1dd
8 changed files with 30 additions and 12 deletions

View File

@@ -15,10 +15,16 @@ export default {
'scheduleForm'
])
},
methods: {
update () {
this.isFilterSpiderDisabled = true
this.$set(this.filter, 'spider_id', this.scheduleForm.spider_id)
this.filter.schedule_id = this.scheduleForm._id
this.$store.dispatch('task/getTaskList')
}
},
async created () {
this.isFilterSpiderDisabled = true
this.filter.spider_id = this.scheduleForm.spider_id
await this.$store.dispatch('task/getTaskList')
this.update()
}
}
</script>

View File

@@ -377,6 +377,7 @@ export default {
'Are you sure to run this spider?': '你确定要运行该爬虫?',
'Are you sure to delete this file/directory?': '你确定要删除该文件/文件夹?',
'Are you sure to convert this spider to customized spider?': '你确定要转化该爬虫为自定义爬虫?',
'Are you sure to delete this task?': '您确定要删除该任务?',
'Added spider successfully': '成功添加爬虫',
'Converted successfully': '成功转化',
'Converted unsuccessfully': '未成功转化',

View File

@@ -15,7 +15,8 @@ const state = {
filter: {
node_id: '',
spider_id: '',
status: ''
status: '',
schedule_id: ''
},
// pagination
pageNum: 1,
@@ -122,7 +123,8 @@ const actions = {
page_size: state.pageSize,
node_id: state.filter.node_id || undefined,
spider_id: state.filter.spider_id || undefined,
status: state.filter.status || undefined
status: state.filter.status || undefined,
schedule_id: state.filter.schedule_id || undefined
})
.then(response => {
commit('SET_TASK_LIST', response.data.data || [])

View File

@@ -170,7 +170,7 @@
width="calc(100% - 240px)"
:before-close="() => this.isViewTasksDialogVisible = false"
>
<schedule-task-list/>
<schedule-task-list ref="schedule-task-list"/>
</el-dialog>
<!--./view tasks popup-->
@@ -618,6 +618,9 @@ export default {
async onViewTasks (row) {
this.isViewTasksDialogVisible = true
this.$store.commit('schedule/SET_SCHEDULE_FORM', row)
setTimeout(() => {
this.$refs['schedule-task-list'].update()
}, 100)
this.$st.sendEv('定时任务', '查看任务列表')
}
},

View File

@@ -353,7 +353,7 @@ export default {
.then(() => {
this.$message({
type: 'success',
message: 'Deleted successfully'
message: this.$t('Deleted successfully')
})
})
this.$st.sendEv('任务列表', '删除任务')