优化
This commit is contained in:
@@ -79,7 +79,7 @@ const filteredRows = computed(() => roles.value.filter((item) => {
|
|||||||
}))
|
}))
|
||||||
const pagedRows = computed(() => filteredRows.value.slice((page.value - 1) * pageSize.value, page.value * pageSize.value))
|
const pagedRows = computed(() => filteredRows.value.slice((page.value - 1) * pageSize.value, page.value * pageSize.value))
|
||||||
const roleColumns: DataTableColumn[] = [
|
const roleColumns: DataTableColumn[] = [
|
||||||
{ key: 'actions', label: '操作', width: 235, fixed: 'left', slotName: 'actions' },
|
{ key: 'actions', label: '操作', width: 250, fixed: 'left', slotName: 'actions' },
|
||||||
{ key: 'role', label: '角色名称', minWidth: 180, slotName: 'role' },
|
{ key: 'role', label: '角色名称', minWidth: 180, slotName: 'role' },
|
||||||
{ key: 'roleCode', prop: 'code', label: '角色编码', minWidth: 180, showOverflowTooltip: true, defaultVisible: false },
|
{ key: 'roleCode', prop: 'code', label: '角色编码', minWidth: 180, showOverflowTooltip: true, defaultVisible: false },
|
||||||
{ key: 'description', prop: 'description', label: '说明', minWidth: 240, showOverflowTooltip: true },
|
{ key: 'description', prop: 'description', label: '说明', minWidth: 240, showOverflowTooltip: true },
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ function partnerTypeLabel(type: PlatformPartnerLegacyType) {
|
|||||||
return type === 'BOTH' ? '客户 / 供应商' : typeLabels[type]
|
return type === 'BOTH' ? '客户 / 供应商' : typeLabels[type]
|
||||||
}
|
}
|
||||||
const partnerColumns: DataTableColumn[] = [
|
const partnerColumns: DataTableColumn[] = [
|
||||||
{ key: 'actions', label: '操作', width: 210, fixed: 'left', slotName: 'actions' },
|
{ key: 'actions', label: '操作', width: 250, fixed: 'left', slotName: 'actions' },
|
||||||
{ key: 'partner', label: '单位名称', minWidth: 210, slotName: 'partner' },
|
{ key: 'partner', label: '单位名称', minWidth: 210, slotName: 'partner' },
|
||||||
{ key: 'partnerCode', prop: 'partnerCode', label: '单位编码', minWidth: 130, defaultVisible: false },
|
{ key: 'partnerCode', prop: 'partnerCode', label: '单位编码', minWidth: 130, defaultVisible: false },
|
||||||
{ key: 'type', label: '类型', minWidth: 115, slotName: 'type' },
|
{ key: 'type', label: '类型', minWidth: 115, slotName: 'type' },
|
||||||
|
|||||||
Reference in New Issue
Block a user