style: 移除ID列显示

This commit is contained in:
TsMask
2025-10-14 11:08:58 +08:00
parent 5ea56e779a
commit 26cf7fa560
17 changed files with 151 additions and 119 deletions

View File

@@ -21,6 +21,7 @@ import useDictStore from '@/store/modules/dict';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import useI18n from '@/hooks/useI18n';
import type { Dayjs } from 'dayjs';
import { hasPermissions } from '@/plugins/auth-user';
const { t } = useI18n();
const { getDict } = useDictStore();
@@ -95,12 +96,12 @@ let tableState: TabeStateType = reactive({
/**表格字段列 */
let tableColumns = ref<ColumnsType>([
{
title: t('common.rowId'),
dataIndex: 'configId',
align: 'left',
width: 100,
},
// {
// title: t('common.rowId'),
// dataIndex: 'configId',
// align: 'left',
// width: 100,
// },
{
title: t('views.system.config.configName'),
dataIndex: 'configName',
@@ -665,11 +666,11 @@ onMounted(() => {
:size="tableState.size"
:pagination="tablePagination"
:scroll="{ x: tableColumns.length * 120 }"
:row-selection="{
:row-selection="hasPermissions(['system:config:remove']) ? {
type: 'checkbox',
selectedRowKeys: tableState.selectedRowKeys,
onChange: fnTableSelectedRowKeys,
}"
}: undefined"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'configType'">