|
@@ -70,7 +70,6 @@
|
|
|
class="upload-demo"
|
|
|
accept=".xls, .xlsx"
|
|
|
:action="importUrl"
|
|
|
- :before-upload="beforeAvatarUpload"
|
|
|
:on-success="handleImportSuccess"
|
|
|
:on-error="handleImportError"
|
|
|
:limit="1"
|
|
@@ -137,6 +136,7 @@
|
|
|
import {mapGetters} from "vuex";
|
|
|
import {getByParentId} from "../../../api/mall/categoryinfo";
|
|
|
import {getList as getStoreList} from "@/api/mall/store";
|
|
|
+ import {getToken} from '@/util/auth';
|
|
|
|
|
|
export default {
|
|
|
|
|
@@ -151,6 +151,13 @@
|
|
|
return {
|
|
|
batchImportBox: false,
|
|
|
fileList: [],
|
|
|
+ importUrl: baseUrl + "/api/mall/goodsinfo/batchImport",
|
|
|
+ fileDa: {
|
|
|
+ storeId: ''
|
|
|
+ },
|
|
|
+ headers: {
|
|
|
+ 'Blade-Auth': 'bearer ' + getToken()
|
|
|
+ },
|
|
|
option: {
|
|
|
height: 'auto',
|
|
|
calcHeight: 30,
|