updated frontend to adapt changes of golang version

This commit is contained in:
Marvin Zhang
2019-07-22 12:32:36 +08:00
parent 67c299e5d9
commit c6bd35bd02
11 changed files with 44 additions and 25 deletions

View File

@@ -56,7 +56,7 @@ export default {
this.$st.sendEv('爬虫详情-环境', '删除')
},
save () {
this.$store.dispatch('spider/updateSpiderEnvs')
this.$store.dispatch('spider/editSpider')
.then(() => {
this.$message.success(this.$t('Spider info has been saved successfully'))
})

View File

@@ -66,7 +66,7 @@ export default {
onRestart () {
},
onStop () {
this.$store.dispatch('task/stopTask', this.$route.params.id)
this.$store.dispatch('task/cancelTask', this.$route.params.id)
.then(() => {
this.$message.success(`Task "${this.$route.params.id}" has been sent signal to stop`)
})

View File

@@ -5,7 +5,7 @@
:header-cell-style="{background:'rgb(48, 65, 86)',color:'white'}"
border>
<template v-for="col in columns">
<el-table-column :key="col" :label="col" :property="col" align="center">
<el-table-column :key="col" :label="col" :property="col" min-width="120">
</el-table-column>
</template>
</el-table>