mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
This commit is contained in:
24
frontend/src/components/Schedule/ScheduleTaskList.vue
Normal file
24
frontend/src/components/Schedule/ScheduleTaskList.vue
Normal file
@@ -0,0 +1,24 @@
|
||||
<script>
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex'
|
||||
import TaskList from '../../views/task/TaskList'
|
||||
|
||||
export default {
|
||||
name: 'ScheduleTaskList',
|
||||
extends: TaskList,
|
||||
computed: {
|
||||
...mapState('task', [
|
||||
'filter'
|
||||
]),
|
||||
...mapState('schedule', [
|
||||
'scheduleForm'
|
||||
])
|
||||
},
|
||||
async created () {
|
||||
this.isFilterSpiderDisabled = true
|
||||
this.filter.spider_id = this.scheduleForm.spider_id
|
||||
await this.$store.dispatch('task/getTaskList')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user