【更新】所有的表格列都不需要宽度

pull/286/MERGE
xuyuxiang 2025-09-24 21:35:53 +08:00
parent 01b02d7846
commit f6e998adcf
41 changed files with 80 additions and 168 deletions

View File

@ -108,8 +108,7 @@
}, },
{ {
title: '是否已读', title: '是否已读',
dataIndex: 'read', dataIndex: 'read'
width: 120
} }
] ]
// //

View File

@ -57,8 +57,7 @@
{ {
title: '时间', title: '时间',
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'right', align: 'right'
width: '150px'
} }
] ]
const title = ref('通知公告') const title = ref('通知公告')

View File

@ -115,8 +115,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '机构名', title: '机构名',
@ -133,8 +132,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '机构名', title: '机构名',

View File

@ -115,8 +115,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '职位名', title: '职位名',
@ -133,8 +132,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '职位名', title: '职位名',

View File

@ -115,8 +115,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '角色名', title: '角色名',
@ -133,8 +132,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '角色名', title: '角色名',

View File

@ -118,13 +118,11 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar'
width: 50
}, },
{ {
title: '用户名', title: '用户名',
@ -141,8 +139,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '用户名', title: '用户名',

View File

@ -161,8 +161,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',
@ -175,8 +174,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',

View File

@ -160,8 +160,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',
@ -178,8 +177,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',

View File

@ -160,8 +160,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',
@ -178,8 +177,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',

View File

@ -161,8 +161,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',
@ -179,8 +178,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '名称', title: '名称',

View File

@ -170,13 +170,11 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar'
width: 50
}, },
{ {
title: '用户名', title: '用户名',
@ -193,8 +191,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: 50
}, },
{ {
title: '用户名', title: '用户名',

View File

@ -170,8 +170,7 @@
}, },
{ {
title: '是否已读', title: '是否已读',
dataIndex: 'read', dataIndex: 'read'
width: 120
} }
] ]
// //

View File

@ -29,8 +29,7 @@
const columns = [ const columns = [
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar'
width: 60
}, },
{ {
title: '账号', title: '账号',
@ -54,13 +53,11 @@
{ {
title: '登录IP', title: '登录IP',
dataIndex: 'latestLoginIp', dataIndex: 'latestLoginIp',
width: 120,
ellipsis: true ellipsis: true
}, },
{ {
title: '令牌数', title: '令牌数',
dataIndex: 'tokenNumber', dataIndex: 'tokenNumber'
width: 70
}, },
{ {
title: '操作', title: '操作',

View File

@ -29,8 +29,7 @@
const columns = [ const columns = [
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar'
width: 60
}, },
{ {
title: '账号', title: '账号',
@ -54,13 +53,11 @@
{ {
title: '登录IP', title: '登录IP',
dataIndex: 'latestLoginIp', dataIndex: 'latestLoginIp',
width: 120,
ellipsis: true ellipsis: true
}, },
{ {
title: '令牌数', title: '令牌数',
dataIndex: 'tokenNumber', dataIndex: 'tokenNumber'
width: 70
}, },
{ {
title: '操作', title: '操作',

View File

@ -73,8 +73,7 @@
const columns = [ const columns = [
{ {
title: '登录设备', title: '登录设备',
dataIndex: 'tokenDevice', dataIndex: 'tokenDevice'
width: 90
}, },
{ {
title: '有效期', title: '有效期',
@ -83,8 +82,7 @@
{ {
title: '令牌', title: '令牌',
dataIndex: 'tokenValue', dataIndex: 'tokenValue',
ellipsis: true, ellipsis: true
width: 80
} }
] ]
if (hasPerm('authForceQuit')) { if (hasPerm('authForceQuit')) {
@ -92,7 +90,6 @@
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center',
width: '100px',
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
}) })
} }

View File

@ -73,8 +73,7 @@
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar',
align: 'center', align: 'center'
width: '80px'
}, },
{ {
title: '姓名', title: '姓名',
@ -88,8 +87,7 @@
}, },
{ {
title: '性别', title: '性别',
dataIndex: 'gender', dataIndex: 'gender'
width: '100px'
}, },
{ {
title: '分类', title: '分类',

View File

@ -96,13 +96,11 @@
const columns = [ const columns = [
{ {
title: '字典名称', title: '字典名称',
dataIndex: 'dictLabel', dataIndex: 'dictLabel'
width: 350
}, },
{ {
title: '字典值', title: '字典值',
dataIndex: 'dictValue', dataIndex: 'dictValue'
width: 350
}, },
{ {
title: '排序', title: '排序',

View File

@ -154,8 +154,7 @@
}, },
{ {
title: '封面图', title: '封面图',
dataIndex: 'image', dataIndex: 'image'
width: '100px'
}, },
{ {
title: '类型', title: '类型',
@ -176,8 +175,7 @@
}, },
{ {
title: '创建时间', title: '创建时间',
dataIndex: 'createTime', dataIndex: 'createTime'
width: '150px'
} }
] ]
// //

View File

@ -126,8 +126,7 @@
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode'
width: 100
} }
] ]
if (hasPerm(['bizOrgEdit', 'bizOrgDelete'])) { if (hasPerm(['bizOrgEdit', 'bizOrgDelete'])) {

View File

@ -192,8 +192,7 @@
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar',
align: 'center', align: 'center'
width: '80px'
}, },
{ {
title: '账号', title: '账号',
@ -206,8 +205,7 @@
}, },
{ {
title: '性别', title: '性别',
dataIndex: 'gender', dataIndex: 'gender'
width: '50px'
}, },
{ {
title: '手机', title: '手机',
@ -226,8 +224,7 @@
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'userStatus', dataIndex: 'userStatus'
width: '80px'
} }
] ]
if (hasPerm(['bizUserEdit', 'bizUserGrantRole', 'bizUserPwdReset', 'bizUserExportUserInfo', 'bizUserDelete'])) { if (hasPerm(['bizUserEdit', 'bizUserGrantRole', 'bizUserPwdReset', 'bizUserExportUserInfo', 'bizUserDelete'])) {

View File

@ -80,8 +80,7 @@
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar',
align: 'center', align: 'center'
width: '80px'
}, },
{ {
title: '账号', title: '账号',
@ -94,8 +93,7 @@
}, },
{ {
title: '性别', title: '性别',
dataIndex: 'gender', dataIndex: 'gender'
width: 100
}, },
{ {
title: '手机', title: '手机',
@ -104,14 +102,12 @@
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'userStatus', dataIndex: 'userStatus'
width: 100
}, },
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: '220px'
} }
] ]
const toolConfig = { refresh: true, height: true, columnSetting: true } const toolConfig = { refresh: true, height: true, columnSetting: true }

View File

@ -66,7 +66,6 @@
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode',
width: 100,
sorter: true sorter: true
}, },
{ {

View File

@ -113,13 +113,11 @@
const columns = [ const columns = [
{ {
title: '字典名称', title: '字典名称',
dataIndex: 'dictLabel', dataIndex: 'dictLabel'
width: 350
}, },
{ {
title: '字典值', title: '字典值',
dataIndex: 'dictValue', dataIndex: 'dictValue'
width: 350
}, },
{ {
title: '排序', title: '排序',
@ -128,8 +126,7 @@
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
align: 'center', align: 'center'
width: '150px'
} }
] ]
const categoryType = computed(() => { const categoryType = computed(() => {

View File

@ -151,26 +151,22 @@
{ {
title: '缩略图', title: '缩略图',
dataIndex: 'thumbnail', dataIndex: 'thumbnail',
ellipsis: true, ellipsis: true
width: 80
}, },
{ {
title: '文件大小', title: '文件大小',
dataIndex: 'sizeInfo', dataIndex: 'sizeInfo',
ellipsis: true, ellipsis: true
width: 120
}, },
{ {
title: '文件后缀', title: '文件后缀',
dataIndex: 'suffix', dataIndex: 'suffix',
ellipsis: true, ellipsis: true
width: 120
}, },
{ {
title: '储存引擎', title: '储存引擎',
dataIndex: 'engine', dataIndex: 'engine',
ellipsis: true, ellipsis: true
width: 120
}, },
{ {
title: '操作', title: '操作',

View File

@ -135,19 +135,16 @@
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'jobStatus', dataIndex: 'jobStatus'
width: '100px'
}, },
{ {
title: '启停', title: '启停',
dataIndex: 'jobStatusUpdate', dataIndex: 'jobStatusUpdate'
width: '120px'
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode',
sorter: true, sorter: true
width: '80px'
}, },
{ {
title: '操作', title: '操作',

View File

@ -47,8 +47,7 @@
}, },
{ {
title: '是否已读', title: '是否已读',
dataIndex: 'read', dataIndex: 'read'
width: 120
} }
] ]
// //

View File

@ -87,8 +87,7 @@
title: '发送时间', title: '发送时间',
dataIndex: 'createTime', dataIndex: 'createTime',
ellipsis: true, ellipsis: true,
sorter: true, sorter: true
width: '150px'
}, },
{ {
title: '操作', title: '操作',

View File

@ -165,8 +165,7 @@
const detailsColumns = [ const detailsColumns = [
{ {
title: '位置', title: '位置',
dataIndex: 'label', dataIndex: 'label'
width: '200px'
}, },
{ {
title: '点击事件', title: '点击事件',

View File

@ -60,18 +60,15 @@
const columns = ref([ const columns = ref([
{ {
title: '位置', title: '位置',
dataIndex: 'label', dataIndex: 'label'
width: '20%'
}, },
{ {
title: '点击事件', title: '点击事件',
dataIndex: 'whetherToClick', dataIndex: 'whetherToClick'
width: '25%'
}, },
{ {
title: '跳转方式', title: '跳转方式',
dataIndex: 'skipMode', dataIndex: 'skipMode'
width: '20%'
}, },
{ {
title: 'URL', title: 'URL',

View File

@ -144,44 +144,37 @@
{ {
title: '字典', title: '字典',
align: 'center', align: 'center',
dataIndex: 'dictTypeCode', dataIndex: 'dictTypeCode'
width: 140
}, },
{ {
title: '列表显示', title: '列表显示',
align: 'center', align: 'center',
dataIndex: 'whetherTable', dataIndex: 'whetherTable'
width: 80
}, },
{ {
title: '列省略', title: '列省略',
align: 'center', align: 'center',
dataIndex: 'whetherRetract', dataIndex: 'whetherRetract'
width: 80
}, },
{ {
title: '增改', title: '增改',
align: 'center', align: 'center',
dataIndex: 'whetherAddUpdate', dataIndex: 'whetherAddUpdate'
width: 80
}, },
{ {
title: '必填', title: '必填',
align: 'center', align: 'center',
dataIndex: 'whetherRequired', dataIndex: 'whetherRequired'
width: 80
}, },
{ {
title: '唯一', title: '唯一',
align: 'center', align: 'center',
dataIndex: 'whetherUnique', dataIndex: 'whetherUnique'
width: 80
}, },
{ {
title: '查询', title: '查询',
align: 'center', align: 'center',
dataIndex: 'queryWhether', dataIndex: 'queryWhether'
width: 80
}, },
{ {
title: '查询方式', title: '查询方式',

View File

@ -135,8 +135,7 @@
}, },
{ {
title: '图标', title: '图标',
dataIndex: 'icon', dataIndex: 'icon'
width: 80
}, },
{ {
title: '正规则', title: '正规则',

View File

@ -126,8 +126,7 @@ const columns = [
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode'
width: 100
}, },
{ {
title: '操作', title: '操作',

View File

@ -127,8 +127,7 @@ const columns = [
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode'
width: 100
}, },
{ {
title: '操作', title: '操作',

View File

@ -157,13 +157,11 @@
{ {
title: '显示名称', title: '显示名称',
dataIndex: 'title', dataIndex: 'title',
ellipsis: true, ellipsis: true
width: 300
}, },
{ {
title: '类型', title: '类型',
dataIndex: 'menuType', dataIndex: 'menuType'
width: 100
}, },
{ {
title: '路由地址', title: '路由地址',
@ -175,14 +173,12 @@
}, },
{ {
title: '是否可见', title: '是否可见',
dataIndex: 'visible', dataIndex: 'visible'
width: 120
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode',
sorter: true, sorter: true
width: 100
}, },
{ {
title: '操作', title: '操作',

View File

@ -169,7 +169,6 @@
title: '接口前缀', title: '接口前缀',
dataIndex: 'prefix', dataIndex: 'prefix',
fixed: 'left', fixed: 'left',
width: 140,
customCell: (row, index) => { customCell: (row, index) => {
const indexArr = firstShowMap.value[row.prefix] const indexArr = firstShowMap.value[row.prefix]
if (index === indexArr[0]) { if (index === indexArr[0]) {
@ -182,7 +181,6 @@
key: 'suffix', key: 'suffix',
title: '接口', title: '接口',
dataIndex: 'suffix', dataIndex: 'suffix',
width: 290,
customFilterDropdown: true, customFilterDropdown: true,
onFilter: (value, record) => record.api.includes(value), onFilter: (value, record) => record.api.includes(value),
onFilterDropdownOpenChange: (visible) => { onFilterDropdownOpenChange: (visible) => {

View File

@ -167,8 +167,7 @@
}, },
{ {
title: '排序', title: '排序',
dataIndex: 'sortCode', dataIndex: 'sortCode'
width: 100
}, },
{ {
title: '操作', title: '操作',

View File

@ -170,7 +170,6 @@
title: '接口前缀', title: '接口前缀',
dataIndex: 'prefix', dataIndex: 'prefix',
fixed: 'left', fixed: 'left',
width: 140,
customCell: (row, index) => { customCell: (row, index) => {
const indexArr = firstShowMap.value[row.prefix] const indexArr = firstShowMap.value[row.prefix]
if (index === indexArr[0]) { if (index === indexArr[0]) {
@ -183,7 +182,6 @@
key: 'suffix', key: 'suffix',
title: '接口', title: '接口',
dataIndex: 'suffix', dataIndex: 'suffix',
width: 290,
customFilterDropdown: true, customFilterDropdown: true,
onFilter: (value, record) => record.api.includes(value), onFilter: (value, record) => record.api.includes(value),
onFilterDropdownOpenChange: (visible) => { onFilterDropdownOpenChange: (visible) => {

View File

@ -89,8 +89,7 @@
const impErrorColumns = [ const impErrorColumns = [
{ {
title: '索引', title: '索引',
dataIndex: 'index', dataIndex: 'index'
width: '80px'
}, },
{ {
title: '原因', title: '原因',

View File

@ -211,8 +211,7 @@ const columns = [
{ {
title: '头像', title: '头像',
dataIndex: 'avatar', dataIndex: 'avatar',
align: 'center', align: 'center'
width: '80px'
}, },
{ {
title: '账号', title: '账号',
@ -225,8 +224,7 @@ const columns = [
}, },
{ {
title: '性别', title: '性别',
dataIndex: 'genderName', dataIndex: 'genderName'
width: '50px'
}, },
{ {
title: '手机', title: '手机',
@ -245,8 +243,7 @@ const columns = [
}, },
{ {
title: '状态', title: '状态',
dataIndex: 'userStatus', dataIndex: 'userStatus'
width: '80px'
}, },
{ {
title: '操作', title: '操作',

View File

@ -55,8 +55,7 @@
}, },
{ {
title: '是否已读', title: '是否已读',
dataIndex: 'read', dataIndex: 'read'
width: '100px'
}, },
{ {
title: '操作', title: '操作',

View File

@ -48,8 +48,7 @@
}, },
{ {
title: '是否已读', title: '是否已读',
dataIndex: 'read', dataIndex: 'read'
width: 120
} }
] ]
// //