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

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: '是否已读',
dataIndex: 'read',
width: 120
dataIndex: 'read'
}
]
//

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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