From c18ec3298c1ab2f8ef44c00297e0d3af93be1279 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Thu, 27 Feb 2025 23:23:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(1.4.0-beta1):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=BB=84=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/group/index.vue | 41 +++++-------------- .../group/modules/group-detail-drawer.vue | 18 +++----- 2 files changed, 15 insertions(+), 44 deletions(-) diff --git a/src/views/group/index.vue b/src/views/group/index.vue index cedf200..8f28ec0 100644 --- a/src/views/group/index.vue +++ b/src/views/group/index.vue @@ -6,7 +6,7 @@ import { fetchDeleteGroup, fetchGetGroupConfigList, fetchUpdateGroupStatus } fro import { $t } from '@/locales'; import { useAppStore } from '@/store/modules/app'; import { useTable, useTableOperate } from '@/hooks/common/table'; -import { groupConfigIdModeRecord, yesOrNoRecord } from '@/constants/business'; +import { yesOrNoRecord } from '@/constants/business'; import { tagColor } from '@/utils/common'; import StatusSwitch from '@/components/common/status-switch.vue'; import { useAuth } from '@/hooks/business/auth'; @@ -40,8 +40,8 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP { key: 'groupName', title: $t('page.groupConfig.groupName'), - align: 'left', - minWidth: 260, + align: 'center', + minWidth: 100, render: row => { function showDetailDrawer() { detailData.value = row || null; @@ -59,7 +59,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP key: 'groupStatus', title: $t('page.groupConfig.groupStatus'), align: 'center', - width: 80, + width: 120, render: row => { const fetchFn = async (groupStatus: Api.Common.EnableStatusNumber, callback: (flag: boolean) => void) => { const status = row.groupStatus === 1 ? 0 : 1; @@ -75,32 +75,11 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP ); } }, - { - key: 'idGeneratorMode', - title: $t('page.groupConfig.idGeneratorMode'), - align: 'center', - width: 120, - render: row => { - if (row.idGeneratorMode === null) { - return null; - } - - const label = $t(groupConfigIdModeRecord[row.idGeneratorMode!]); - - return {label}; - } - }, - { - key: 'groupPartition', - title: $t('page.groupConfig.groupPartition'), - align: 'center', - minWidth: 60 - }, { key: 'initScene', title: $t('page.groupConfig.initScene'), align: 'center', - minWidth: 80, + minWidth: 120, render: row => { if (row.groupStatus === null) { return null; @@ -114,20 +93,20 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP { key: 'updateDt', title: $t('page.groupConfig.updateDt'), - align: 'left', - width: 130 + align: 'center', + width: 120 }, { key: 'description', title: $t('page.groupConfig.description'), - align: 'left', - width: 130 + align: 'center', + width: 250 }, { key: 'operate', title: $t('common.operate'), align: 'center', - width: 130, + width: 120, render: row => { if (hasAuth('R_USER')) { return <>; diff --git a/src/views/group/modules/group-detail-drawer.vue b/src/views/group/modules/group-detail-drawer.vue index 8eac37b..267ccfc 100644 --- a/src/views/group/modules/group-detail-drawer.vue +++ b/src/views/group/modules/group-detail-drawer.vue @@ -1,5 +1,5 @@