code cleanup

This commit is contained in:
marvzhang
2020-07-15 11:17:07 +08:00
parent a3d82c40c0
commit 061fed4bbd
10 changed files with 33 additions and 405 deletions

View File

@@ -29,7 +29,7 @@
@change="onFilterChange"
>
<el-option value="" :label="$t('All')" />
<el-option v-for="spider in spiderList" :key="spider._id" :value="spider._id" :label="spider.name" />
<el-option v-for="spider in allSpiderList" :key="spider._id" :value="spider._id" :label="spider.name" />
</el-select>
</el-form-item>
<el-form-item prop="status" :label="$t('Status')">
@@ -310,7 +310,7 @@
'taskForm'
]),
...mapState('spider', [
'spiderList'
'allSpiderList'
]),
...mapState('node', [
'nodeList'
@@ -350,7 +350,7 @@
},
created() {
this.$store.dispatch('task/getTaskList')
this.$store.dispatch('spider/getSpiderList')
this.$store.dispatch('spider/getAllSpiderList')
this.$store.dispatch('node/getNodeList')
},
mounted() {