fix 定时任务管理

This commit is contained in:
陈景阳
2019-10-11 23:23:04 +08:00
parent 04924b2f19
commit e13fd7d375

View File

@@ -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>