From 19a63710088a93587f3c0c5170b8fb97f4b423cf Mon Sep 17 00:00:00 2001
From: wangxiaoshuang <825034831@qq.com>
Date: Tue, 29 Oct 2024 15:46:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/export.js | 9 ++++
src/views/system/i18n/index.vue | 74 +++++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+)
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 @@
/>
+
+ handleDatetimeChange(val, 'createTime')"
+ style="width: 250px"
+ />
+
+
+ handleDatetimeChange(val, 'updateTime')"
+ style="width: 250px"
+ />
+
查询
+
+
+ {{ $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)
+ },
},
}