From 3ce433812377c22eef48b96f92f8506251c2cfc4 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 21 十月 2025 14:08:00 +0800
Subject: [PATCH] fix: bug
---
src/views/EmploymentManage/components/CheckManageDialog.vue | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/views/EmploymentManage/components/CheckManageDialog.vue b/src/views/EmploymentManage/components/CheckManageDialog.vue
index af00716..81a4ecb 100644
--- a/src/views/EmploymentManage/components/CheckManageDialog.vue
+++ b/src/views/EmploymentManage/components/CheckManageDialog.vue
@@ -27,7 +27,7 @@
import { useGlobalEventContext } from '@/hooks';
defineOptions({
- name: 'EnterpriseConsumptionDetailDialog',
+ name: 'CheckManageDialog',
});
type Form = {
@@ -47,21 +47,26 @@
const columns = defineColumns([
{
id: '1',
+ enCode: 'date',
+ name: '浠诲姟鏃ユ湡',
+ },
+ {
+ id: '2',
enCode: 'createdTime',
name: '鎻愪氦鏃堕棿',
},
{
- id: '2',
+ id: '3',
enCode: 'files',
name: '楠屾敹鐓х墖',
},
{
- id: '3',
+ id: '4',
enCode: 'checkReceiveStatus',
name: '楠屾敹鐘舵��',
},
{
- id: '4',
+ id: '5',
enCode: 'checkReceiveTime',
name: '楠屾敹鏃堕棿',
},
@@ -108,6 +113,9 @@
emits: {
onClick: (role) => handleDownload(role),
},
+ extraProps: {
+ hide: (row: API.GetCheckReceiveTaskUserSubmitsQueryResultItem) => row.files?.length === 0,
+ },
},
]);
@@ -150,18 +158,19 @@
},
{
defaultExtraParams: {
- orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }],
+ orderInput: [{ property: 'date', order: EnumPagedListOrder.Desc }],
},
queryKey: ['taskCheckReceiveServices/getCheckReceiveTaskUserSubmits'],
columnsRenderProps: {
createdTime: { type: 'date' },
checkReceiveTime: { type: 'date' },
+ date: { type: 'date', format: 'YYYY-MM-DD' },
checkReceiveStatus: { type: 'enum', valueEnum: EnumTaskUserSubmitCheckReceiveStatusText },
files: {
type: 'url',
//@ts-ignore
formatter: (row: API.GetCheckReceiveTaskUserSubmitsQueryResultItem) =>
- (row.files ?? []).map((x) => setOSSLink(x)),
+ row.files?.length > 0 && (row.files ?? []).map((x) => setOSSLink(x)),
showDownloadBtn: false,
},
},
@@ -172,7 +181,7 @@
if (row.files?.length > 0) {
downloadWithZip(
row.files.map((x) => ({
- data: setOSSLink(x),
+ data: `${setOSSLink(x)}`,
})),
'楠屾敹鐓х墖'
);
--
Gitblit v1.9.1