mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
updated CHANGELOG
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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': '未成功转化',
|
||||
|
||||
@@ -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 || [])
|
||||
|
||||
@@ -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('定时任务', '查看任务列表')
|
||||
}
|
||||
},
|
||||
|
||||
@@ -353,7 +353,7 @@ export default {
|
||||
.then(() => {
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: 'Deleted successfully'
|
||||
message: this.$t('Deleted successfully')
|
||||
})
|
||||
})
|
||||
this.$st.sendEv('任务列表', '删除任务')
|
||||
|
||||
Reference in New Issue
Block a user