From 1ae87e9ecbdf9b100db17778422682827b7e4b51 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Tue, 8 Jul 2025 15:17:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=AA=E6=80=A7=E5=8C=96=E5=88=97?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E4=BF=9D=E5=AD=98=E5=92=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/license/customer/index.vue | 4 ++ .../src/views/license/license/data.ts | 4 ++ .../src/views/license/license/index.vue | 4 ++ .../src/views/license/project/data.ts | 37 +++++++++++-------- .../src/views/license/project/index.vue | 4 ++ 5 files changed, 38 insertions(+), 15 deletions(-) diff --git a/apps/web-antd/src/views/license/customer/index.vue b/apps/web-antd/src/views/license/customer/index.vue index 1b7ff11..5fe1ea4 100644 --- a/apps/web-antd/src/views/license/customer/index.vue +++ b/apps/web-antd/src/views/license/customer/index.vue @@ -97,6 +97,10 @@ const [Grid, gridApi] = useVbenVxeGrid({ pagerConfig: { enabled: true, }, + id: 'license-customer-list', + customConfig: { + storage: true, + }, proxyConfig: { ajax: { query: async ({ page }, formValues) => { diff --git a/apps/web-antd/src/views/license/license/data.ts b/apps/web-antd/src/views/license/license/data.ts index 406a8bc..b76e56e 100644 --- a/apps/web-antd/src/views/license/license/data.ts +++ b/apps/web-antd/src/views/license/license/data.ts @@ -398,10 +398,12 @@ export function useGridColumns( { field: 'activationCode', title: $t('license.activationCode'), + visible: false, minWidth: 120, }, { field: 'licenseContent', + visible: false, title: $t('license.licenseContent'), minWidth: 120, }, @@ -414,6 +416,7 @@ export function useGridColumns( field: 'applicationTime', title: $t('license.applicationTime'), minWidth: 120, + visible: false, formatter: 'formatDateTime', }, { @@ -433,6 +436,7 @@ export function useGridColumns( { field: 'remark', title: $t('license.remark'), + visible: false, minWidth: 120, }, { diff --git a/apps/web-antd/src/views/license/license/index.vue b/apps/web-antd/src/views/license/license/index.vue index 24d4449..2db5758 100644 --- a/apps/web-antd/src/views/license/license/index.vue +++ b/apps/web-antd/src/views/license/license/index.vue @@ -102,6 +102,10 @@ const [Grid, gridApi] = useVbenVxeGrid({ pagerConfig: { enabled: true, }, + id: 'license-license-list', + customConfig: { + storage: true, + }, proxyConfig: { ajax: { query: async ({ page }, formValues) => { diff --git a/apps/web-antd/src/views/license/project/data.ts b/apps/web-antd/src/views/license/project/data.ts index 271a703..d47f944 100644 --- a/apps/web-antd/src/views/license/project/data.ts +++ b/apps/web-antd/src/views/license/project/data.ts @@ -401,12 +401,19 @@ export function useGridColumns( field: 'code', title: $t('project.code'), minWidth: 120, + visible: false, }, { field: 'customerName', title: $t('project.belongCustomer'), minWidth: 120, }, + { + field: 'startTime', + title: $t('project.startTime'), + minWidth: 120, + formatter: 'formatDateTime', + }, { field: 'contractCode', title: $t('project.contractCode'), @@ -416,11 +423,21 @@ export function useGridColumns( field: 'businessStatus', title: $t('project.businessStatus'), minWidth: 120, + visible: false, cellRender: { name: 'CellDict', props: { type: DICT_TYPE.LIC_BUSINESS_STATUS }, }, }, + { + field: 'status', + title: $t('project.status'), + minWidth: 120, + cellRender: { + name: 'CellDict', + props: { type: DICT_TYPE.LIC_PROJECT_STATUS }, + }, + }, { field: 'businessOwnerName', title: $t('project.businessOwner'), @@ -429,6 +446,7 @@ export function useGridColumns( { field: 'customerOwnerName', title: $t('project.customerOwner'), + visible: false, minWidth: 120, }, { @@ -446,40 +464,29 @@ export function useGridColumns( title: $t('project.technicalOwnerC'), minWidth: 120, }, - { - field: 'startTime', - title: $t('project.startTime'), - minWidth: 120, - formatter: 'formatDateTime', - }, { field: 'endTime', title: $t('project.endTime'), + visible: false, minWidth: 120, formatter: 'formatDateTime', }, - { - field: 'status', - title: $t('project.status'), - minWidth: 120, - cellRender: { - name: 'CellDict', - props: { type: DICT_TYPE.LIC_PROJECT_STATUS }, - }, - }, { field: 'envInfo', title: $t('project.envInfo'), + visible: false, minWidth: 120, }, { field: 'remark', title: $t('project.remarks'), + visible: false, minWidth: 120, }, { field: 'createTime', title: $t('project.creationTime'), + visible: false, minWidth: 120, formatter: 'formatDateTime', }, diff --git a/apps/web-antd/src/views/license/project/index.vue b/apps/web-antd/src/views/license/project/index.vue index 5b6b5c8..f535521 100644 --- a/apps/web-antd/src/views/license/project/index.vue +++ b/apps/web-antd/src/views/license/project/index.vue @@ -96,6 +96,10 @@ const [Grid, gridApi] = useVbenVxeGrid({ pagerConfig: { enabled: true, }, + id: 'license-project-list', + customConfig: { + storage: true, + }, proxyConfig: { ajax: { query: async ({ page }, formValues) => {