diff --git a/src/api/manage.js b/src/api/manage.js
index e293f27..bcc00ff 100644
--- a/src/api/manage.js
+++ b/src/api/manage.js
@@ -2,6 +2,7 @@ import Vue from 'vue'
import { axios } from '@/utils/request'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import signMd5Utils from '@/utils/encryption/signMd5Utils'
+import i18n from '@/common/lang'
const api = {
user: '/mock/api/user',
@@ -153,7 +154,7 @@ export function postDownFile (url, parameter) {
export function downloadFile (url, fileName, parameter) {
return downFile(url, parameter).then((data) => {
if (!data || data.size === 0) {
- Vue.prototype.$message.warning('文件下载失败')
+ Vue.prototype.$message.warning(i18n.t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
diff --git a/src/common/lang/dashboard/en.js b/src/common/lang/dashboard/en.js
index a7df49e..bff4103 100644
--- a/src/common/lang/dashboard/en.js
+++ b/src/common/lang/dashboard/en.js
@@ -28,7 +28,8 @@ module.exports = {
foreignStandard: 'Foreign standards and regulations',
enterpriseStandard: 'Enterprise standards',
notIncludeAbolishedStandard: 'Excluding abolishment standards',
- includeAbolishedStandard: 'Including abolishment standards'
+ includeAbolishedStandard: 'Including abolishment standards',
+ previewFileNotFound: 'There is currently no preview file for this standard. Please contact the standard administrator.'
},
// 高级搜索
advancedSearch: {
diff --git a/src/common/lang/dashboard/zh.js b/src/common/lang/dashboard/zh.js
index ae5e89e..7571cb9 100644
--- a/src/common/lang/dashboard/zh.js
+++ b/src/common/lang/dashboard/zh.js
@@ -28,7 +28,8 @@ module.exports = {
foreignStandard: '外来标准法规',
enterpriseStandard: '企业标准',
notIncludeAbolishedStandard: '不包含废止标准',
- includeAbolishedStandard: '包含废止标准'
+ includeAbolishedStandard: '包含废止标准',
+ previewFileNotFound: '该标准暂无预览文件,请联系标准管理员。'
},
// 高级搜索
advancedSearch: {
diff --git a/src/common/lang/en-us.js b/src/common/lang/en-us.js
index fa6ebb7..7b14c4f 100644
--- a/src/common/lang/en-us.js
+++ b/src/common/lang/en-us.js
@@ -132,6 +132,11 @@ module.exports = {
uploadFileBtn: 'Upload File',
tips: 'Tips',
exportTip: 'Exporting, please wait',
+ importTip: 'Importing, please wait',
+ exportFile: 'Export file',
+ exportWithFiles: 'Export files with files',
+ templateFile: 'Template file',
+ fileUploadSuccess: 'File uploaded successfully',
fileDownloadFail: 'File download failure',
pleaseEnterTreeSystem: 'Please enter the tree system',
project: 'Project',
@@ -214,6 +219,7 @@ module.exports = {
loginExpiredMessage: 'Sorry, the login has expired. Please log in again',
logInAgain: 'Log in again',
loggingBackIn: 'Login has expired, logging in again',
+ fileUploadFailed: 'File upload failed',
prompted: 'prompted',
noAccess: 'no access',
resourceNotFound: 'Sorry, the resource was not found!',
@@ -248,7 +254,8 @@ module.exports = {
lookMore: 'View More',
generalMsg: 'General message',
importantMsg: 'Important news',
- EmergencyMsg: 'Emergency messages'
+ EmergencyMsg: 'Emergency messages',
+ logOutTip: 'Do you really want to log out'
},
// 用户管理
user: {
diff --git a/src/common/lang/workCenter/en.js b/src/common/lang/workCenter/en.js
index 1b35fb3..26593ef 100644
--- a/src/common/lang/workCenter/en.js
+++ b/src/common/lang/workCenter/en.js
@@ -119,7 +119,9 @@ module.exports = {
approvedPerson: 'Approved personnel',
batchEdit: 'Bulk edit',
pleaseSelectInterpreter: 'Select at least one piece of data for each department involved to interpret',
- pleaseSelectClause: 'Please select terms'
+ pleaseSelectClause: 'Please select terms',
+ interpretationDistribution: 'Interpretation and Distribution',
+ interpretationTable: 'Interpretation Table'
},
// 流程配置
processConfig: {
diff --git a/src/common/lang/workCenter/zh.js b/src/common/lang/workCenter/zh.js
index e84e3e0..11787f8 100644
--- a/src/common/lang/workCenter/zh.js
+++ b/src/common/lang/workCenter/zh.js
@@ -119,7 +119,9 @@ module.exports = {
approvedPerson: '批准人员',
batchEdit: '批量编辑',
pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人',
- pleaseSelectClause: '请选择条款'
+ pleaseSelectClause: '请选择条款',
+ interpretationDistribution: '解读分发',
+ interpretationTable: '解读表'
},
// 流程配置
processConfig: {
diff --git a/src/common/lang/zh-cn.js b/src/common/lang/zh-cn.js
index 294faf4..f5ceb51 100644
--- a/src/common/lang/zh-cn.js
+++ b/src/common/lang/zh-cn.js
@@ -133,6 +133,11 @@ module.exports = {
uploadFileBtn: '上传文件',
tips: '提示',
exportTip: '正在导出,请稍候',
+ importTip: '正在导入,请稍候',
+ exportFile: '导出文件',
+ exportWithFiles: '带文件导出文件',
+ templateFile: '模板文件',
+ fileUploadSuccess: '文件上传成功',
fileDownloadFail: '文件下载失败',
pleaseEnterTreeSystem: '输入树状图体系',
project: '项目',
@@ -231,6 +236,7 @@ module.exports = {
loginExpiredMessage: '很抱歉,登录已过期,请重新登录',
logInAgain: '重新登录',
loggingBackIn: '登录已过期,正在重新登陆',
+ fileUploadFailed: '文件上传失败',
prompted: '系统提示',
noAccess: '拒绝访问',
resourceNotFound: '很抱歉,资源未找到!',
@@ -274,7 +280,8 @@ module.exports = {
lookMore: '查看更多',
generalMsg: '一般消息',
importantMsg: '重要消息',
- EmergencyMsg: '紧急消息'
+ EmergencyMsg: '紧急消息',
+ logOutTip: '真的要注销登录吗'
},
// 用户管理
user: {
diff --git a/src/components/tools/UserMenu.vue b/src/components/tools/UserMenu.vue
index a9a5d33..a8692e4 100644
--- a/src/components/tools/UserMenu.vue
+++ b/src/components/tools/UserMenu.vue
@@ -221,8 +221,8 @@ export default {
const that = this
this.$confirm({
- title: '提示',
- content: '真的要注销登录吗 ?',
+ title: this.$t('tips'),
+ content: `${this.$t('header.logOutTip')} ?`,
onOk () {
return that.Logout({}).then(() => {
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
diff --git a/src/mixins/ConfigurableTableMixin.js b/src/mixins/ConfigurableTableMixin.js
index d50b4db..5e344ea 100644
--- a/src/mixins/ConfigurableTableMixin.js
+++ b/src/mixins/ConfigurableTableMixin.js
@@ -267,8 +267,8 @@ export const ConfigurableTableMixin = {
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({
- title: '提示',
- content: 正在导入,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('importTip')} ,
keyboard: false
})
}
@@ -301,7 +301,7 @@ export const ConfigurableTableMixin = {
)
})
} else {
- this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
+ this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
}
this.loadData()
} else {
@@ -335,7 +335,7 @@ export const ConfigurableTableMixin = {
})
}
} else {
- this.$message.warning(`文件上传失败: ${info.file.msg} `)
+ this.$message.warning(`${this.$t('fileUploadFailed')}: ${info.file.msg} `)
}
}
},
@@ -346,7 +346,7 @@ export const ConfigurableTableMixin = {
*/
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -392,7 +392,7 @@ export const ConfigurableTableMixin = {
*/
handleFileExport (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '带文件导出文件'
+ fileName = this.$t('exportWithFiles')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -421,7 +421,7 @@ export const ConfigurableTableMixin = {
// 下载导入模板
downTemplate (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix)
},
diff --git a/src/mixins/JeroListMixin.js b/src/mixins/JeroListMixin.js
index f870f27..928ffcb 100644
--- a/src/mixins/JeroListMixin.js
+++ b/src/mixins/JeroListMixin.js
@@ -303,7 +303,7 @@ export const JeroListMixin = {
},
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -312,8 +312,8 @@ export const JeroListMixin = {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -322,7 +322,7 @@ export const JeroListMixin = {
})
downFile(this.url.exportXlsUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
@@ -346,7 +346,7 @@ export const JeroListMixin = {
// 带文件导出
handleFileExport (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -355,8 +355,8 @@ export const JeroListMixin = {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -365,7 +365,7 @@ export const JeroListMixin = {
})
downFile(this.url.exportZipUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
@@ -397,8 +397,8 @@ export const JeroListMixin = {
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({
- title: '提示',
- content: 正在导入,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('importTip')} ,
keyboard: false
})
}
@@ -435,7 +435,7 @@ export const JeroListMixin = {
)
})
} else {
- this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
+ this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
}
this.loadData()
} else {
@@ -469,7 +469,7 @@ export const JeroListMixin = {
})
}
} else {
- this.$message.warning(`文件上传失败: ${info.file.msg} `)
+ this.$message.warning(`${this.$t('fileUploadFailed')}: ${info.file.msg} `)
}
}
},
@@ -496,7 +496,7 @@ export const JeroListMixin = {
// 下载导入模板
downTemplate (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix)
},
diff --git a/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue b/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue
index d9a801c..ee51ac9 100644
--- a/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue
+++ b/src/views/businessSupport/askForAdvice/AskForAdviceDetail.vue
@@ -225,7 +225,7 @@ export default {
},
handleExportXls (fileName, fileSuffix = '.xlsx') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
param.businessId = this.$route.query.id
@@ -235,8 +235,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -245,7 +245,7 @@ export default {
})
downFile('/laws/consultation/exportExcel', param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
diff --git a/src/views/dashboard/search/AdvancedSearch.vue b/src/views/dashboard/search/AdvancedSearch.vue
index 943ea9c..a09d188 100644
--- a/src/views/dashboard/search/AdvancedSearch.vue
+++ b/src/views/dashboard/search/AdvancedSearch.vue
@@ -20,7 +20,7 @@
-
+
diff --git a/src/views/dashboard/search/GeneralSearch.vue b/src/views/dashboard/search/GeneralSearch.vue
index 071f87a..383e756 100644
--- a/src/views/dashboard/search/GeneralSearch.vue
+++ b/src/views/dashboard/search/GeneralSearch.vue
@@ -256,14 +256,14 @@ export default {
// 导出
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getSearchParam()
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -272,7 +272,7 @@ export default {
})
exportGeneralSearch(param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
@@ -681,7 +681,7 @@ export default {
file = await this.selectNewestFile(newestFileList)
if (file === null) { // 没有找到文件就退出
console.log('没有找到符合要求的文件!')
- this.$message.error('该标准暂无预览文件,请联系标准管理员。')
+ this.$message.error(this.$t('dashboard.eneralSearch.previewFileNotFound'))
return
}
console.log('seletedFile', file)
diff --git a/src/views/documentTool/documentSplit/DocumentSplitDetail.vue b/src/views/documentTool/documentSplit/DocumentSplitDetail.vue
index 632e69e..5c89aaa 100644
--- a/src/views/documentTool/documentSplit/DocumentSplitDetail.vue
+++ b/src/views/documentTool/documentSplit/DocumentSplitDetail.vue
@@ -661,7 +661,7 @@ export default {
// 下载导入模板
downTemplate (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix, { infoId: this.$route.query.infoId })
}
diff --git a/src/views/documentTool/documentSplit/modules/ImportSplitResultModal.vue b/src/views/documentTool/documentSplit/modules/ImportSplitResultModal.vue
index 4e090c3..64c316e 100644
--- a/src/views/documentTool/documentSplit/modules/ImportSplitResultModal.vue
+++ b/src/views/documentTool/documentSplit/modules/ImportSplitResultModal.vue
@@ -170,7 +170,7 @@ export default {
// 下载导入模板
downTemplate (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.downTemplateUrl, fileName + fileSuffix)
}
diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue
index 7953f4a..7e70c9e 100644
--- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue
+++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue
@@ -453,7 +453,7 @@ export default {
// 导出改成用post
handleExportXls (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -462,8 +462,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -472,7 +472,7 @@ export default {
})
postDownFile(this.url.exportXlsUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
@@ -496,7 +496,7 @@ export default {
// 带文件导出
handleFileExport (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -505,8 +505,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -515,7 +515,7 @@ export default {
})
postDownFile(this.url.exportZipUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
window.navigator.msSaveBlob(new Blob([data]), fileName + '.zip')
@@ -539,7 +539,7 @@ export default {
// 下载导入模板
downTemplate (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.url.downTemplateUrl, fileName + '.zip')
},
diff --git a/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue b/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue
index eb188a5..54e418e 100644
--- a/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue
+++ b/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue
@@ -570,7 +570,7 @@ export default {
// 导出改成用post
handleExportXls (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -579,8 +579,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -589,7 +589,7 @@ export default {
})
postDownFile(this.url.exportXlsUrl, param).then((data) => {
if (!data || data.size === 0) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
@@ -613,7 +613,7 @@ export default {
// 带文件导出
handleFileExport (fileName) {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -623,8 +623,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -633,7 +633,7 @@ export default {
})
postDownFile(this.url.exportZipUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
window.navigator.msSaveBlob(new Blob([data]), fileName + '.zip')
diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/EngineerInitBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/EngineerInitBaseInfo.vue
index 293de9a..db60dc4 100644
--- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/EngineerInitBaseInfo.vue
+++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/EngineerInitBaseInfo.vue
@@ -581,14 +581,14 @@ export default {
// 下载分解单上传模板
salvageListTemplateDownload (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.url.salvageListDownTemplateUrl, fileName + fileSuffix)
},
// 车型项目文件上传模板
carTypeFileTemplateDownload (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '模板文件'
+ fileName = this.$t('templateFile')
}
downloadFile(this.url.carTypeFileDownTemplateUrl, fileName + fileSuffix)
},
diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue
index d60aac4..a209857 100644
--- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue
+++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderCollectBaseInfo.vue
@@ -305,7 +305,7 @@ export default {
},
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -314,8 +314,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -324,7 +324,7 @@ export default {
})
downFile(this.url.exportXlsUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue
index 2d35037..fa49dd4 100644
--- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue
+++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderDistributesBaseInfo.vue
@@ -620,8 +620,8 @@ export default {
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({
- title: '提示',
- content: 正在导入,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('importTip')} ,
keyboard: false
})
}
@@ -651,7 +651,7 @@ export default {
)
})
} else {
- this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
+ this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
}
// 推入表格中
this.dataSourceEvaluate = info.file.response.result.map(item => {
@@ -692,13 +692,13 @@ export default {
})
}
} else {
- this.$message.warning(`文件上传失败: ${info.file.msg} `)
+ this.$message.warning(`${this.$t('fileUploadFailed')}: ${info.file.msg} `)
}
}
},
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -707,8 +707,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -717,7 +717,7 @@ export default {
})
downFile(this.url.exportXlsUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
diff --git a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue
index 3983a20..6ea07d9 100644
--- a/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue
+++ b/src/views/workCenter/regulatoryComplianceCheckProcess/modules/MainFinderSingleAuditBaseInfo.vue
@@ -196,7 +196,7 @@ export default {
},
handleExportXls (fileName, fileSuffix = '.xls') {
if (!fileName || typeof fileName !== 'string') {
- fileName = '导出文件'
+ fileName = this.$t('exportFile')
}
const param = this.getQueryParams()
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -205,8 +205,8 @@ export default {
console.log('导出参数', param)
// 加一个大的提示
const modalLoading = this.$info({
- title: '提示',
- content: 正在导出,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('exportTip')} ,
keyboard: false
})
// 把知道了这个按钮去掉
@@ -215,7 +215,7 @@ export default {
})
downFile(this.url.exportXlsUrl, param).then((data) => {
if (!data) {
- this.$message.warning('文件下载失败')
+ this.$message.warning(this.$t('fileDownloadFail'))
return
}
if (typeof window.navigator.msSaveBlob !== 'undefined') {
diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue
index d0d9eaf..2ed89c6 100644
--- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue
+++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable.vue
@@ -556,8 +556,8 @@ export default {
// 加一个大的提示
if (!this.loading) {
importModalLoading = this.$info({
- title: '提示',
- content: 正在导入,请稍候 ,
+ title: this.$t('tips'),
+ content: {this.$t('importTip')} ,
keyboard: false,
// 不显示 知道了 按钮
okButtonProps: {
@@ -587,7 +587,7 @@ export default {
)
})
} else {
- this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`)
+ this.$message.success(info.file.response.message || `${info.file.name} ${this.$t('fileUploadSuccess')}`)
}
// 前端存储,没有id的数据,前端加上uuid
const data = info.file.response.result || []
@@ -631,7 +631,7 @@ export default {
})
}
} else {
- this.$message.warning(`文件上传失败: ${info.file.msg} `)
+ this.$message.warning(`${this.$t('fileUploadFailed')}: ${info.file.msg} `)
}
}
},
@@ -640,10 +640,10 @@ export default {
const { standardNumber, standardName } = this.standardInfo || {}
if (this.isDistribute) {
// 分发:编号 + 名称 + 解读分发
- fileName = `${standardNumber} ${standardName}-解读分发`
+ fileName = `${standardNumber} ${standardName}-${this.$t('workCenter.standardInterpretationProcess.interpretationDistribution')}`
} else {
// 不分发和汇总:编号 + 名称 + 解读表
- fileName = `${standardNumber} ${standardName}-解读表`
+ fileName = `${standardNumber} ${standardName}-${this.$t('workCenter.standardInterpretationProcess.interpretationTable')}`
}
const param = {
projectId: this.$route.query.projectId,