finish up project

This commit is contained in:
marvzhang
2020-02-02 13:29:56 +08:00
parent 9d5d0253a8
commit 024f9ac3b2
4 changed files with 24 additions and 4 deletions

View File

@@ -571,8 +571,12 @@ export default {
this.getList()
},
onAdd () {
let projectId = '000000000000000000000000'
if (this.filter.project_id) {
projectId = this.filter.project_id
}
this.$store.commit('spider/SET_SPIDER_FORM', {
project_id: '000000000000000000000000',
project_id: projectId,
template: this.templateList[0]
})
this.addDialogVisible = true
@@ -812,7 +816,6 @@ export default {
// fetch template list
await this.$store.dispatch('spider/getTemplateList')
},
mounted () {
const vm = this