Commit 662bc0c6 by liwk

commit

1 parent 5fbec03d
...@@ -225,7 +225,6 @@ ...@@ -225,7 +225,6 @@
:action="uploadAction" :action="uploadAction"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:file-list="fileList"
:on-success='onSuccess' :on-success='onSuccess'
:auto-upload="false" :auto-upload="false"
with-credentials with-credentials
...@@ -300,7 +299,6 @@ ...@@ -300,7 +299,6 @@
:action="uploadmerIdAction" :action="uploadmerIdAction"
:on-preview="handlePreview" :on-preview="handlePreview"
:on-remove="handleRemove" :on-remove="handleRemove"
:file-list="fileList"
:on-success='onMerIdSuccess' :on-success='onMerIdSuccess'
:auto-upload="false" :auto-upload="false"
with-credentials with-credentials
...@@ -468,7 +466,6 @@ export default { ...@@ -468,7 +466,6 @@ export default {
uploadAction: `${process.env.VUE_APP_API}shop/import`, uploadAction: `${process.env.VUE_APP_API}shop/import`,
uploadmerIdAction: `${process.env.VUE_APP_API}shop/importMerId`, uploadmerIdAction: `${process.env.VUE_APP_API}shop/importMerId`,
fileTips: '', fileTips: '',
fileList: [],
failFile: '', failFile: '',
batchId: null, batchId: null,
merIDlVisible: false, merIDlVisible: false,
...@@ -503,6 +500,7 @@ export default { ...@@ -503,6 +500,7 @@ export default {
let id = row.id let id = row.id
if (!this.storeVisible) return if (!this.storeVisible) return
api.getStoreDetails({ id: id }, id).then(res => { api.getStoreDetails({ id: id }, id).then(res => {
console.log(res)
let obj = { let obj = {
id: id, id: id,
name: res.name, name: res.name,
...@@ -553,6 +551,7 @@ export default { ...@@ -553,6 +551,7 @@ export default {
if (this.importExcelVisible) { if (this.importExcelVisible) {
if (this.batchId) { if (this.batchId) {
this.$refs.storeTable.refreshTable() this.$refs.storeTable.refreshTable()
this.$refs.upload.clearFiles()
} }
this.fileTips = '' this.fileTips = ''
this.failFile = '' this.failFile = ''
...@@ -560,13 +559,7 @@ export default { ...@@ -560,13 +559,7 @@ export default {
this.importExcelVisible = !this.importExcelVisible this.importExcelVisible = !this.importExcelVisible
// this.$refs.storeTable.refreshTable() // this.$refs.storeTable.refreshTable()
}, },
handleRemove (file, fileList) { beforeRemove (file) {
console.log(file, fileList);
},
handlePreview (file) {
console.log(file);
},
beforeRemove (file, fileList) {
this.notice.warningTips() this.notice.warningTips()
return this.$confirm(`确定移除 ${file.name}?`); return this.$confirm(`确定移除 ${file.name}?`);
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!