marvzhang
2019-12-30 13:39:36 +08:00
parent 55b6904993
commit 6bbf77bca5
2 changed files with 45 additions and 4 deletions

View File

@@ -51,6 +51,7 @@
<el-form-item :label="$t('Upload Zip File')" label-width="120px" name="site">
<el-upload
:action="$request.baseUrl + '/spiders'"
:data="uploadForm"
:headers="{Authorization:token}"
:on-success="onUploadSuccess"
:file-list="fileList">
@@ -325,7 +326,15 @@ export default {
]),
...mapGetters('user', [
'token'
])
]),
uploadForm () {
return {
name: this.spiderForm.name,
display_name: this.spiderForm.display_name,
col: this.spiderForm.col,
cmd: this.spiderForm.cmd
}
}
},
methods: {
onSpiderTypeChange (val) {