去除多余列,导出文件国际化

This commit is contained in:
lai
2024-02-01 14:03:48 +08:00
parent 1d5ec0a036
commit 6d3e592886
2 changed files with 50 additions and 14 deletions

View File

@@ -48,8 +48,6 @@ let tableColumnsDnd = ref<ColumnsType>([]);
/**记录开始结束时间 */
let queryRangePicker = ref<[string, string]>(['', '']);
/**查询参数 */
let queryParams = reactive({
/**告警设备类型 */
@@ -120,7 +118,7 @@ type TabeStateType = {
let tableState: TabeStateType = reactive({
loading: false,
size: 'middle',
seached: true,
seached: false,
data: [],
selectedRowKeys: [],
});
@@ -639,6 +637,11 @@ function fnExportAll() {
filteredObj[key] = objA[key];
}
});
dict.activeAckState.map((item: any) => {
if (item.value === `${filteredObj.ackState}`)
filteredObj.ackState = item.label;
});
return filteredObj;
});
message.success({
@@ -692,7 +695,6 @@ function fnGetList(pageNum?: number) {
filterState.sql = sql;
}
listAct(toRaw(queryParams), filterState.sql).then((res: any) => {
console.log(res);
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
// 取消勾选
if (state.selectedRowKeys.length > 0) {