mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-23 17:31:11 +01:00
fix 定时任务管理
This commit is contained in:
@@ -132,6 +132,7 @@
|
||||
|
||||
<script>
|
||||
import vcrontab from 'vcrontab'
|
||||
import request from '../../api/request'
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex'
|
||||
@@ -169,7 +170,8 @@ export default {
|
||||
{ validator: cronValidator, trigger: 'blur' }
|
||||
],
|
||||
showCron: false,
|
||||
expression: ''
|
||||
expression: '',
|
||||
spiderList: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -177,9 +179,6 @@ export default {
|
||||
'scheduleList',
|
||||
'scheduleForm'
|
||||
]),
|
||||
...mapState('spider', [
|
||||
'spiderList'
|
||||
]),
|
||||
...mapState('node', [
|
||||
'nodeList'
|
||||
]),
|
||||
@@ -269,8 +268,11 @@ export default {
|
||||
},
|
||||
created () {
|
||||
this.$store.dispatch('schedule/getScheduleList')
|
||||
this.$store.dispatch('spider/getSpiderList')
|
||||
this.$store.dispatch('node/getNodeList')
|
||||
request.get('/spiders', {})
|
||||
.then(response => {
|
||||
this.spiderList = response.data.data.list
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user