[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
+5 -2
View File
@@ -724,7 +724,7 @@ module.exports = {
Dropdownmultipleselection: 'Drop down multiple selection',
a: '+',
positiveInteger: 'Positive integer',
// 参数收集开始
ParameteItemCollectionList: 'Parameter item collection list',
Areyousureparameteritems: 'Are you sure to submit the selected parameter items?',
Theselectedconfiguration: 'The configuration can only be added when the parameter items in the parameter list are to be collected or changed',
@@ -787,6 +787,9 @@ module.exports = {
releaseVersion: 'Release Version',
parameterTemplate: 'Parameter Template',
contentDescription: 'Content Description',
parameterTemplateExportName: 'Parameter List',
parameterDataExport: 'Parameter Export Data',
// 参数收集结束
circulationInformation: 'Circulation information',
circulationHistory: 'Circulation History',
agree: 'Agree',
@@ -1054,5 +1057,5 @@ module.exports = {
Copyparameterlist: 'Copy parameter list',
Templatenamelist: 'Template name - parameter item collection list',
newNiONumber: 'Number',
English: 'English'
English: 'English',
}
+4 -1
View File
@@ -735,7 +735,7 @@ module.exports = {
Dropdownmultipleselection: '下拉多选',
a: '+',
positiveInteger: '正整数',
// 参数收集
ParameteItemCollectionList: '参数项收集清单',
Areyousureparameteritems: '确认提交所选参数项嘛?',
Theselectedconfiguration: '参数清单中参数项均为待发起收集或变更时才能添加配置',
@@ -798,6 +798,9 @@ module.exports = {
releaseVersion: '发布版本',
parameterTemplate: '参数模板',
contentDescription: '内容说明',
parameterTemplateExportName: '参数项列表',
parameterDataExport: '参数项导出数据',
// 参数收集结束
circulationInformation: '流转信息',
circulationHistory: '流转历史',
agree: '同意',
@@ -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