[update 全局翻译] 导入导出提示
This commit is contained in:
+2
-1
@@ -2,6 +2,7 @@ import Vue from 'vue'
|
|||||||
import { axios } from '@/utils/request'
|
import { axios } from '@/utils/request'
|
||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import signMd5Utils from '@/utils/encryption/signMd5Utils'
|
import signMd5Utils from '@/utils/encryption/signMd5Utils'
|
||||||
|
import i18n from '@/common/lang'
|
||||||
|
|
||||||
const api = {
|
const api = {
|
||||||
user: '/mock/api/user',
|
user: '/mock/api/user',
|
||||||
@@ -153,7 +154,7 @@ export function postDownFile (url, parameter) {
|
|||||||
export function downloadFile (url, fileName, parameter) {
|
export function downloadFile (url, fileName, parameter) {
|
||||||
return downFile(url, parameter).then((data) => {
|
return downFile(url, parameter).then((data) => {
|
||||||
if (!data || data.size === 0) {
|
if (!data || data.size === 0) {
|
||||||
Vue.prototype.$message.warning('文件下载失败')
|
Vue.prototype.$message.warning(i18n.t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ module.exports = {
|
|||||||
foreignStandard: 'Foreign standards and regulations',
|
foreignStandard: 'Foreign standards and regulations',
|
||||||
enterpriseStandard: 'Enterprise standards',
|
enterpriseStandard: 'Enterprise standards',
|
||||||
notIncludeAbolishedStandard: 'Excluding abolishment 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: {
|
advancedSearch: {
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ module.exports = {
|
|||||||
foreignStandard: '外来标准法规',
|
foreignStandard: '外来标准法规',
|
||||||
enterpriseStandard: '企业标准',
|
enterpriseStandard: '企业标准',
|
||||||
notIncludeAbolishedStandard: '不包含废止标准',
|
notIncludeAbolishedStandard: '不包含废止标准',
|
||||||
includeAbolishedStandard: '包含废止标准'
|
includeAbolishedStandard: '包含废止标准',
|
||||||
|
previewFileNotFound: '该标准暂无预览文件,请联系标准管理员。'
|
||||||
},
|
},
|
||||||
// 高级搜索
|
// 高级搜索
|
||||||
advancedSearch: {
|
advancedSearch: {
|
||||||
|
|||||||
@@ -132,6 +132,11 @@ module.exports = {
|
|||||||
uploadFileBtn: 'Upload File',
|
uploadFileBtn: 'Upload File',
|
||||||
tips: 'Tips',
|
tips: 'Tips',
|
||||||
exportTip: 'Exporting, please wait',
|
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',
|
fileDownloadFail: 'File download failure',
|
||||||
pleaseEnterTreeSystem: 'Please enter the tree system',
|
pleaseEnterTreeSystem: 'Please enter the tree system',
|
||||||
project: 'Project',
|
project: 'Project',
|
||||||
@@ -214,6 +219,7 @@ module.exports = {
|
|||||||
loginExpiredMessage: 'Sorry, the login has expired. Please log in again',
|
loginExpiredMessage: 'Sorry, the login has expired. Please log in again',
|
||||||
logInAgain: 'Log in again',
|
logInAgain: 'Log in again',
|
||||||
loggingBackIn: 'Login has expired, logging in again',
|
loggingBackIn: 'Login has expired, logging in again',
|
||||||
|
fileUploadFailed: 'File upload failed',
|
||||||
prompted: 'prompted',
|
prompted: 'prompted',
|
||||||
noAccess: 'no access',
|
noAccess: 'no access',
|
||||||
resourceNotFound: 'Sorry, the resource was not found!',
|
resourceNotFound: 'Sorry, the resource was not found!',
|
||||||
@@ -248,7 +254,8 @@ module.exports = {
|
|||||||
lookMore: 'View More',
|
lookMore: 'View More',
|
||||||
generalMsg: 'General message',
|
generalMsg: 'General message',
|
||||||
importantMsg: 'Important news',
|
importantMsg: 'Important news',
|
||||||
EmergencyMsg: 'Emergency messages'
|
EmergencyMsg: 'Emergency messages',
|
||||||
|
logOutTip: 'Do you really want to log out'
|
||||||
},
|
},
|
||||||
// 用户管理
|
// 用户管理
|
||||||
user: {
|
user: {
|
||||||
|
|||||||
@@ -119,7 +119,9 @@ module.exports = {
|
|||||||
approvedPerson: 'Approved personnel',
|
approvedPerson: 'Approved personnel',
|
||||||
batchEdit: 'Bulk edit',
|
batchEdit: 'Bulk edit',
|
||||||
pleaseSelectInterpreter: 'Select at least one piece of data for each department involved to interpret',
|
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: {
|
processConfig: {
|
||||||
|
|||||||
@@ -119,7 +119,9 @@ module.exports = {
|
|||||||
approvedPerson: '批准人员',
|
approvedPerson: '批准人员',
|
||||||
batchEdit: '批量编辑',
|
batchEdit: '批量编辑',
|
||||||
pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人',
|
pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人',
|
||||||
pleaseSelectClause: '请选择条款'
|
pleaseSelectClause: '请选择条款',
|
||||||
|
interpretationDistribution: '解读分发',
|
||||||
|
interpretationTable: '解读表'
|
||||||
},
|
},
|
||||||
// 流程配置
|
// 流程配置
|
||||||
processConfig: {
|
processConfig: {
|
||||||
|
|||||||
@@ -133,6 +133,11 @@ module.exports = {
|
|||||||
uploadFileBtn: '上传文件',
|
uploadFileBtn: '上传文件',
|
||||||
tips: '提示',
|
tips: '提示',
|
||||||
exportTip: '正在导出,请稍候',
|
exportTip: '正在导出,请稍候',
|
||||||
|
importTip: '正在导入,请稍候',
|
||||||
|
exportFile: '导出文件',
|
||||||
|
exportWithFiles: '带文件导出文件',
|
||||||
|
templateFile: '模板文件',
|
||||||
|
fileUploadSuccess: '文件上传成功',
|
||||||
fileDownloadFail: '文件下载失败',
|
fileDownloadFail: '文件下载失败',
|
||||||
pleaseEnterTreeSystem: '输入树状图体系',
|
pleaseEnterTreeSystem: '输入树状图体系',
|
||||||
project: '项目',
|
project: '项目',
|
||||||
@@ -231,6 +236,7 @@ module.exports = {
|
|||||||
loginExpiredMessage: '很抱歉,登录已过期,请重新登录',
|
loginExpiredMessage: '很抱歉,登录已过期,请重新登录',
|
||||||
logInAgain: '重新登录',
|
logInAgain: '重新登录',
|
||||||
loggingBackIn: '登录已过期,正在重新登陆',
|
loggingBackIn: '登录已过期,正在重新登陆',
|
||||||
|
fileUploadFailed: '文件上传失败',
|
||||||
prompted: '系统提示',
|
prompted: '系统提示',
|
||||||
noAccess: '拒绝访问',
|
noAccess: '拒绝访问',
|
||||||
resourceNotFound: '很抱歉,资源未找到!',
|
resourceNotFound: '很抱歉,资源未找到!',
|
||||||
@@ -274,7 +280,8 @@ module.exports = {
|
|||||||
lookMore: '查看更多',
|
lookMore: '查看更多',
|
||||||
generalMsg: '一般消息',
|
generalMsg: '一般消息',
|
||||||
importantMsg: '重要消息',
|
importantMsg: '重要消息',
|
||||||
EmergencyMsg: '紧急消息'
|
EmergencyMsg: '紧急消息',
|
||||||
|
logOutTip: '真的要注销登录吗'
|
||||||
},
|
},
|
||||||
// 用户管理
|
// 用户管理
|
||||||
user: {
|
user: {
|
||||||
|
|||||||
@@ -221,8 +221,8 @@ export default {
|
|||||||
const that = this
|
const that = this
|
||||||
|
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: '真的要注销登录吗 ?',
|
content: `${this.$t('header.logOutTip')} ?`,
|
||||||
onOk () {
|
onOk () {
|
||||||
return that.Logout({}).then(() => {
|
return that.Logout({}).then(() => {
|
||||||
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
window.location.replace(process.env.VUE_APP_LOGOUT_PAGE)
|
||||||
|
|||||||
@@ -267,8 +267,8 @@ export const ConfigurableTableMixin = {
|
|||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
importModalLoading = this.$info({
|
importModalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导入,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('importTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,7 @@ export const ConfigurableTableMixin = {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else {
|
} 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()
|
this.loadData()
|
||||||
} else {
|
} else {
|
||||||
@@ -335,7 +335,7 @@ export const ConfigurableTableMixin = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} 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') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -392,7 +392,7 @@ export const ConfigurableTableMixin = {
|
|||||||
*/
|
*/
|
||||||
handleFileExport (fileName) {
|
handleFileExport (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '带文件导出文件'
|
fileName = this.$t('exportWithFiles')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -421,7 +421,7 @@ export const ConfigurableTableMixin = {
|
|||||||
// 下载导入模板
|
// 下载导入模板
|
||||||
downTemplate (fileName, fileSuffix = '.xls') {
|
downTemplate (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix)
|
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix)
|
||||||
},
|
},
|
||||||
|
|||||||
+13
-13
@@ -303,7 +303,7 @@ export const JeroListMixin = {
|
|||||||
},
|
},
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -312,8 +312,8 @@ export const JeroListMixin = {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -322,7 +322,7 @@ export const JeroListMixin = {
|
|||||||
})
|
})
|
||||||
downFile(this.url.exportXlsUrl, param).then((data) => {
|
downFile(this.url.exportXlsUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
@@ -346,7 +346,7 @@ export const JeroListMixin = {
|
|||||||
// 带文件导出
|
// 带文件导出
|
||||||
handleFileExport (fileName) {
|
handleFileExport (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -355,8 +355,8 @@ export const JeroListMixin = {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -365,7 +365,7 @@ export const JeroListMixin = {
|
|||||||
})
|
})
|
||||||
downFile(this.url.exportZipUrl, param).then((data) => {
|
downFile(this.url.exportZipUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
@@ -397,8 +397,8 @@ export const JeroListMixin = {
|
|||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
importModalLoading = this.$info({
|
importModalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导入,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('importTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -435,7 +435,7 @@ export const JeroListMixin = {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else {
|
} 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()
|
this.loadData()
|
||||||
} else {
|
} else {
|
||||||
@@ -469,7 +469,7 @@ export const JeroListMixin = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} 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') {
|
downTemplate (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix)
|
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleExportXls (fileName, fileSuffix = '.xlsx') {
|
handleExportXls (fileName, fileSuffix = '.xlsx') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
param.businessId = this.$route.query.id
|
param.businessId = this.$route.query.id
|
||||||
@@ -235,8 +235,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -245,7 +245,7 @@ export default {
|
|||||||
})
|
})
|
||||||
downFile('/laws/consultation/exportExcel', param).then((data) => {
|
downFile('/laws/consultation/exportExcel', param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
<a-form v-if="toggleSearchStatus" layout="inline" @keyup.enter.native="searchQuery">
|
<a-form v-if="toggleSearchStatus" layout="inline" @keyup.enter.native="searchQuery" class="form-label">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="(24 / (minLength + 1))"
|
<a-col :md="(24 / (minLength + 1))"
|
||||||
:sm="(24 / minLength)"
|
:sm="(24 / minLength)"
|
||||||
@@ -518,7 +518,7 @@ export default {
|
|||||||
// 导出
|
// 导出
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
param.resourceType = this.currStandardType
|
param.resourceType = this.currStandardType
|
||||||
@@ -666,7 +666,7 @@ export default {
|
|||||||
file = await this.selectNewestFile(newestFileList)
|
file = await this.selectNewestFile(newestFileList)
|
||||||
if (file === null) { // 没有找到文件就退出
|
if (file === null) { // 没有找到文件就退出
|
||||||
console.log('没有找到符合要求的文件!')
|
console.log('没有找到符合要求的文件!')
|
||||||
this.$message.error('该标准暂无预览文件,请联系标准管理员。')
|
this.$message.error(this.$t('dashboard.eneralSearch.previewFileNotFound'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log('seletedFile', file)
|
console.log('seletedFile', file)
|
||||||
@@ -1008,4 +1008,14 @@ export default {
|
|||||||
width: calc(100% - 220px);
|
width: calc(100% - 220px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 表单label溢出隐藏
|
||||||
|
.form-label {
|
||||||
|
/deep/ .ant-form-item-label {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
padding-right: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -256,14 +256,14 @@ export default {
|
|||||||
// 导出
|
// 导出
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getSearchParam()
|
const param = this.getSearchParam()
|
||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -272,7 +272,7 @@ export default {
|
|||||||
})
|
})
|
||||||
exportGeneralSearch(param).then((data) => {
|
exportGeneralSearch(param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
@@ -681,7 +681,7 @@ export default {
|
|||||||
file = await this.selectNewestFile(newestFileList)
|
file = await this.selectNewestFile(newestFileList)
|
||||||
if (file === null) { // 没有找到文件就退出
|
if (file === null) { // 没有找到文件就退出
|
||||||
console.log('没有找到符合要求的文件!')
|
console.log('没有找到符合要求的文件!')
|
||||||
this.$message.error('该标准暂无预览文件,请联系标准管理员。')
|
this.$message.error(this.$t('dashboard.eneralSearch.previewFileNotFound'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log('seletedFile', file)
|
console.log('seletedFile', file)
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ export default {
|
|||||||
// 下载导入模板
|
// 下载导入模板
|
||||||
downTemplate (fileName, fileSuffix = '.xls') {
|
downTemplate (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix, { infoId: this.$route.query.infoId })
|
downloadFile(this.url.downTemplateUrl, fileName + fileSuffix, { infoId: this.$route.query.infoId })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ export default {
|
|||||||
// 下载导入模板
|
// 下载导入模板
|
||||||
downTemplate (fileName, fileSuffix = '.xls') {
|
downTemplate (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.downTemplateUrl, fileName + fileSuffix)
|
downloadFile(this.downTemplateUrl, fileName + fileSuffix)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ export default {
|
|||||||
// 导出改成用post
|
// 导出改成用post
|
||||||
handleExportXls (fileName) {
|
handleExportXls (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -462,8 +462,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -472,7 +472,7 @@ export default {
|
|||||||
})
|
})
|
||||||
postDownFile(this.url.exportXlsUrl, param).then((data) => {
|
postDownFile(this.url.exportXlsUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
@@ -496,7 +496,7 @@ export default {
|
|||||||
// 带文件导出
|
// 带文件导出
|
||||||
handleFileExport (fileName) {
|
handleFileExport (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -505,8 +505,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -515,7 +515,7 @@ export default {
|
|||||||
})
|
})
|
||||||
postDownFile(this.url.exportZipUrl, param).then((data) => {
|
postDownFile(this.url.exportZipUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
window.navigator.msSaveBlob(new Blob([data]), fileName + '.zip')
|
window.navigator.msSaveBlob(new Blob([data]), fileName + '.zip')
|
||||||
@@ -539,7 +539,7 @@ export default {
|
|||||||
// 下载导入模板
|
// 下载导入模板
|
||||||
downTemplate (fileName) {
|
downTemplate (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.url.downTemplateUrl, fileName + '.zip')
|
downloadFile(this.url.downTemplateUrl, fileName + '.zip')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -570,7 +570,7 @@ export default {
|
|||||||
// 导出改成用post
|
// 导出改成用post
|
||||||
handleExportXls (fileName) {
|
handleExportXls (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -579,8 +579,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -589,7 +589,7 @@ export default {
|
|||||||
})
|
})
|
||||||
postDownFile(this.url.exportXlsUrl, param).then((data) => {
|
postDownFile(this.url.exportXlsUrl, param).then((data) => {
|
||||||
if (!data || data.size === 0) {
|
if (!data || data.size === 0) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
@@ -613,7 +613,7 @@ export default {
|
|||||||
// 带文件导出
|
// 带文件导出
|
||||||
handleFileExport (fileName) {
|
handleFileExport (fileName) {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -623,8 +623,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -633,7 +633,7 @@ export default {
|
|||||||
})
|
})
|
||||||
postDownFile(this.url.exportZipUrl, param).then((data) => {
|
postDownFile(this.url.exportZipUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
window.navigator.msSaveBlob(new Blob([data]), fileName + '.zip')
|
window.navigator.msSaveBlob(new Blob([data]), fileName + '.zip')
|
||||||
|
|||||||
+2
-2
@@ -581,14 +581,14 @@ export default {
|
|||||||
// 下载分解单上传模板
|
// 下载分解单上传模板
|
||||||
salvageListTemplateDownload (fileName, fileSuffix = '.xls') {
|
salvageListTemplateDownload (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.url.salvageListDownTemplateUrl, fileName + fileSuffix)
|
downloadFile(this.url.salvageListDownTemplateUrl, fileName + fileSuffix)
|
||||||
},
|
},
|
||||||
// 车型项目文件上传模板
|
// 车型项目文件上传模板
|
||||||
carTypeFileTemplateDownload (fileName, fileSuffix = '.xls') {
|
carTypeFileTemplateDownload (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '模板文件'
|
fileName = this.$t('templateFile')
|
||||||
}
|
}
|
||||||
downloadFile(this.url.carTypeFileDownTemplateUrl, fileName + fileSuffix)
|
downloadFile(this.url.carTypeFileDownTemplateUrl, fileName + fileSuffix)
|
||||||
},
|
},
|
||||||
|
|||||||
+4
-4
@@ -305,7 +305,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -314,8 +314,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -324,7 +324,7 @@ export default {
|
|||||||
})
|
})
|
||||||
downFile(this.url.exportXlsUrl, param).then((data) => {
|
downFile(this.url.exportXlsUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
|
|||||||
+8
-8
@@ -620,8 +620,8 @@ export default {
|
|||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
importModalLoading = this.$info({
|
importModalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导入,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('importTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -651,7 +651,7 @@ export default {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else {
|
} 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 => {
|
this.dataSourceEvaluate = info.file.response.result.map(item => {
|
||||||
@@ -692,13 +692,13 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(`文件上传失败: ${info.file.msg} `)
|
this.$message.warning(`${this.$t('fileUploadFailed')}: ${info.file.msg} `)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -707,8 +707,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -717,7 +717,7 @@ export default {
|
|||||||
})
|
})
|
||||||
downFile(this.url.exportXlsUrl, param).then((data) => {
|
downFile(this.url.exportXlsUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
|
|||||||
+4
-4
@@ -196,7 +196,7 @@ export default {
|
|||||||
},
|
},
|
||||||
handleExportXls (fileName, fileSuffix = '.xls') {
|
handleExportXls (fileName, fileSuffix = '.xls') {
|
||||||
if (!fileName || typeof fileName !== 'string') {
|
if (!fileName || typeof fileName !== 'string') {
|
||||||
fileName = '导出文件'
|
fileName = this.$t('exportFile')
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -205,8 +205,8 @@ export default {
|
|||||||
console.log('导出参数', param)
|
console.log('导出参数', param)
|
||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
const modalLoading = this.$info({
|
const modalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导出,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('exportTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false
|
keyboard: false
|
||||||
})
|
})
|
||||||
// 把知道了这个按钮去掉
|
// 把知道了这个按钮去掉
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
})
|
})
|
||||||
downFile(this.url.exportXlsUrl, param).then((data) => {
|
downFile(this.url.exportXlsUrl, param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning(this.$t('fileDownloadFail'))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
||||||
|
|||||||
+6
-6
@@ -556,8 +556,8 @@ export default {
|
|||||||
// 加一个大的提示
|
// 加一个大的提示
|
||||||
if (!this.loading) {
|
if (!this.loading) {
|
||||||
importModalLoading = this.$info({
|
importModalLoading = this.$info({
|
||||||
title: '提示',
|
title: this.$t('tips'),
|
||||||
content: <span>正在导入,请稍候 <a-spin size="small" /></span>,
|
content: <span>{this.$t('importTip')} <a-spin size="small" /></span>,
|
||||||
keyboard: false,
|
keyboard: false,
|
||||||
// 不显示 知道了 按钮
|
// 不显示 知道了 按钮
|
||||||
okButtonProps: {
|
okButtonProps: {
|
||||||
@@ -587,7 +587,7 @@ export default {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
} else {
|
} 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
|
// 前端存储,没有id的数据,前端加上uuid
|
||||||
const data = info.file.response.result || []
|
const data = info.file.response.result || []
|
||||||
@@ -631,7 +631,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} 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 || {}
|
const { standardNumber, standardName } = this.standardInfo || {}
|
||||||
if (this.isDistribute) {
|
if (this.isDistribute) {
|
||||||
// 分发:编号 + 名称 + 解读分发
|
// 分发:编号 + 名称 + 解读分发
|
||||||
fileName = `${standardNumber} ${standardName}-解读分发`
|
fileName = `${standardNumber} ${standardName}-${this.$t('workCenter.standardInterpretationProcess.interpretationDistribution')}`
|
||||||
} else {
|
} else {
|
||||||
// 不分发和汇总:编号 + 名称 + 解读表
|
// 不分发和汇总:编号 + 名称 + 解读表
|
||||||
fileName = `${standardNumber} ${standardName}-解读表`
|
fileName = `${standardNumber} ${standardName}-${this.$t('workCenter.standardInterpretationProcess.interpretationTable')}`
|
||||||
}
|
}
|
||||||
const param = {
|
const param = {
|
||||||
projectId: this.$route.query.projectId,
|
projectId: this.$route.query.projectId,
|
||||||
|
|||||||
Reference in New Issue
Block a user