|
@@ -42,6 +42,12 @@ import { downloadCodeImpXls } from '@/api/aaApi'
|
|
|
const IMP_CODE = `${window._CONFIG['domianURL']}aa/aaCommodityCode/importCodeExcel/`;
|
|
|
export default {
|
|
|
name: 'AaCommodityCodeImportModal',
|
|
|
+ props: {
|
|
|
+ //查询
|
|
|
+ loadData: {
|
|
|
+ type: Function
|
|
|
+ }
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
visible: false,
|
|
@@ -106,7 +112,8 @@ export default {
|
|
|
} else {
|
|
|
this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
|
|
|
}
|
|
|
- this.loadData()
|
|
|
+ this.loadData(1)
|
|
|
+ this.handleOk()
|
|
|
} else {
|
|
|
this.$message.error(`${info.file.name} ${info.file.response.message}.`);
|
|
|
}
|