|
@@ -33,6 +33,7 @@
|
|
action="/api/blade-client/vehicleBrand/importBrand"
|
|
action="/api/blade-client/vehicleBrand/importBrand"
|
|
:headers="headers"
|
|
:headers="headers"
|
|
:on-error="onError"
|
|
:on-error="onError"
|
|
|
|
+ :on-success="onSuccess"
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|
|
multiple>
|
|
multiple>
|
|
<el-button size="small" type="primary">导入品牌</el-button>
|
|
<el-button size="small" type="primary">导入品牌</el-button>
|
|
@@ -42,6 +43,7 @@
|
|
action="/api/blade-client/vehicleSeries/importSeries"
|
|
action="/api/blade-client/vehicleSeries/importSeries"
|
|
:headers="headers"
|
|
:headers="headers"
|
|
:on-error="onError"
|
|
:on-error="onError"
|
|
|
|
+ :on-success="onSuccess"
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|
|
multiple>
|
|
multiple>
|
|
<el-button size="small" type="primary">导入车系</el-button>
|
|
<el-button size="small" type="primary">导入车系</el-button>
|
|
@@ -51,6 +53,7 @@
|
|
action="/api/blade-client/vehicleModel/importModel"
|
|
action="/api/blade-client/vehicleModel/importModel"
|
|
:headers="headers"
|
|
:headers="headers"
|
|
:on-error="onError"
|
|
:on-error="onError"
|
|
|
|
+ :on-success="onSuccess"
|
|
:show-file-list="false"
|
|
:show-file-list="false"
|
|
multiple>
|
|
multiple>
|
|
<el-button size="small" type="primary">导入车型</el-button>
|
|
<el-button size="small" type="primary">导入车型</el-button>
|
|
@@ -208,6 +211,9 @@ export default {
|
|
onError(err, file, fileList){
|
|
onError(err, file, fileList){
|
|
this.$message.error(JSON.parse(err.message).msg)
|
|
this.$message.error(JSON.parse(err.message).msg)
|
|
},
|
|
},
|
|
|
|
+ onSuccess(response, file, fileList){
|
|
|
|
+ this.onLoad(this.page,this.search)
|
|
|
|
+ },
|
|
check(row){
|
|
check(row){
|
|
this.form = row
|
|
this.form = row
|
|
this.detailsOpen = true
|
|
this.detailsOpen = true
|