diff --git a/src/api/export.js b/src/api/export.js index 77d99a12..93067284 100644 --- a/src/api/export.js +++ b/src/api/export.js @@ -230,3 +230,12 @@ export function getCommonJudgeRatioList_Export(data) { data }) } +// 导出国际化列表 +export function GetInternationalizationList_Export(data) { + return requestDownload({ + url: `/ExcelExport/GetInternationalizationList_Export`, + responseType: 'blob', + method: 'post', + data + }) +} diff --git a/src/views/system/i18n/index.vue b/src/views/system/i18n/index.vue index ce1550f2..65cbc3c6 100644 --- a/src/views/system/i18n/index.vue +++ b/src/views/system/i18n/index.vue @@ -87,6 +87,30 @@ /> + + + + + + 查询 + + + {{ $t('common:button:reset') }} + 批量更新 + + {{ $t('common:button:export') }} + { SortField: '', PageIndex: 1, PageSize: 20, + BeginCreateTime: null, + EndCreatTime: null, + BeginUpdateTime: null, + EndUpdateTime: null, } } export default { @@ -327,6 +373,8 @@ export default { loading: false, PublishVersionList: [], selectTableList: [], + datetimerange_createTime: [], + datetimerange_updateTime: [], } }, mounted() { @@ -420,6 +468,8 @@ export default { // 重置列表查询 handleReset() { this.searchData = searchDataDefault() + this.datetimerange_createTime = [] + this.datetimerange_updateTime = [] this.getList() }, // 删除 @@ -459,6 +509,30 @@ export default { handleSelectionChange(val) { this.selectTableList = val }, + handleDatetimeChange(val, key) { + if (val) { + if (key === 'createTime') { + this.searchData.BeginCreateTime = val[0] + this.searchData.EndCreatTime = val[1] + } + if (key === 'updateTime') { + this.searchData.BeginUpdateTime = val[0] + this.searchData.EndUpdateTime = val[1] + } + } else { + if (key === 'createTime') { + this.searchData.BeginCreateTime = '' + this.searchData.EndCreatTime = '' + } + if (key === 'updateTime') { + this.searchData.BeginUpdateTime = '' + this.searchData.EndUpdateTime = '' + } + } + }, + exportTable() { + return GetInternationalizationList_Export(this.searchData) + }, }, }