[fix]导出的文件名切换为中英文可切换的模式

This commit is contained in:
zer0Black
2022-06-29 12:55:25 +08:00
parent df6a017c2a
commit 60a25bf28a
3 changed files with 19 additions and 5 deletions
@@ -221,7 +221,7 @@ export default {
}
let _xx = JSON.stringify(_tt)
let _yy = { paramsInfoVO : _xx, exportName: '参数项列表' }
downloadFile('params/paramsInfo/exportParamsInfoZip', '参数项导出数据.zip', { paramsInfoVO : _xx, exportName: '参数项列表' } , this.Deselect)
downloadFile('params/paramsInfo/exportParamsInfoZip', this.$t('parameterDataExport') + '.zip', { paramsInfoVO : _xx, exportName: '参数项列表' } , this.Deselect)
},
// 发布版本
releaseVersion() {
@@ -235,7 +235,15 @@ export default {
},
//下载模板
handleModule() {
downloadFile('params/paramsInfo/exportTemplate', '参数项列表.xlsx', {})
// let lang = localStorage.getItem('language') || 'zh-cn';
// if (lang == 'en-us') {
downloadFile('params/paramsInfo/exportTemplate', this.$t('parameterTemplateExportName') + '.xlsx', {})
// } else if (langCn == 'zh-cn') {
// downloadFile('params/paramsInfo/exportTemplate', 'Parameter list.xlsx', {})
// }
},
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus