|
@@ -71,6 +71,7 @@ export default {
|
|
|
disableMixinCreated: true,
|
|
|
templateUrl: '',
|
|
|
templateName: '',
|
|
|
+ templateDownloadName: '',
|
|
|
url: {
|
|
|
importExcelUrl: '',
|
|
|
},
|
|
@@ -83,15 +84,16 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- initModal(apiUrl, templateUrl, templateName) {
|
|
|
+ initModal(apiUrl, templateUrl, templateName, templateDownloadName = '供应商模板') {
|
|
|
this.url.importExcelUrl = apiUrl
|
|
|
this.templateUrl = templateUrl
|
|
|
this.templateName = templateName
|
|
|
+ this.templateDownloadName = templateDownloadName
|
|
|
this.visible = true
|
|
|
},
|
|
|
importTemplate() {
|
|
|
let link = this.$refs.myLink
|
|
|
- link.setAttribute('download', '供应商模板' + '.xls')
|
|
|
+ link.setAttribute('download', this.templateDownloadName + '.xls')
|
|
|
},
|
|
|
close() {
|
|
|
this.$emit('close')
|