fix(admin): 部门树列定宽消除空白条,右栏弹性铺满并防分页溢出
This commit is contained in:
1 parent
26f25d88c0
commit
ee2b7cdb7e
1 file changed
+11
-9
@@ -251,18 +251,18 @@ onMounted(() => {
|
||||
height="100%"
|
||||
:empty-text="t('admin.dept.members.empty')"
|
||||
>
|
||||
<ElTableColumn :label="t('admin.dept.members.columns.name')" min-width="120">
|
||||
<ElTableColumn :label="t('admin.dept.members.columns.name')" width="170">
|
||||
<template #default="{ row }">
|
||||
<div class="admin-dept-member__name">{{ row.real_name || row.username }}</div>
|
||||
<div class="admin-dept-member__sub">{{ row.username }}</div>
|
||||
</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn :label="t('admin.dept.members.columns.contact')" min-width="150" show-overflow-tooltip>
|
||||
<ElTableColumn :label="t('admin.dept.members.columns.contact')" min-width="180" show-overflow-tooltip>
|
||||
<template #default="{ row }">{{ row.phone_number || row.email || '-' }}</template>
|
||||
</ElTableColumn>
|
||||
<ElTableColumn prop="employee_id" :label="t('admin.dept.members.columns.employeeId')" width="80" show-overflow-tooltip />
|
||||
<ElTableColumn prop="department" :label="t('admin.dept.members.columns.department')" min-width="100" show-overflow-tooltip />
|
||||
<ElTableColumn :label="t('admin.dept.members.columns.status')" width="70">
|
||||
<ElTableColumn prop="employee_id" :label="t('admin.dept.members.columns.employeeId')" width="110" show-overflow-tooltip />
|
||||
<ElTableColumn prop="department" :label="t('admin.dept.members.columns.department')" min-width="130" show-overflow-tooltip />
|
||||
<ElTableColumn :label="t('admin.dept.members.columns.status')" width="90">
|
||||
<template #default="{ row }">
|
||||
<ElTag :type="statusTagType(row.status)" effect="light" size="small">
|
||||
{{ statusLabel(row.status) }}
|
||||
@@ -327,8 +327,8 @@ onMounted(() => {
|
||||
align-items: stretch;
|
||||
}
|
||||
.admin-dept-tree {
|
||||
flex: 1;
|
||||
min-width: 280px;
|
||||
width: 360px;
|
||||
flex-shrink: 0;
|
||||
padding: 12px 8px 12px 24px;
|
||||
border-right: 1px solid var(--el-border-color-lighter);
|
||||
overflow-y: auto;
|
||||
@@ -390,8 +390,8 @@ onMounted(() => {
|
||||
display: inline-flex;
|
||||
}
|
||||
.admin-dept-members {
|
||||
width: min(680px, 55%);
|
||||
flex-shrink: 0;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -444,6 +444,8 @@ onMounted(() => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
row-gap: 8px;
|
||||
gap: 12px;
|
||||
padding: 12px 24px;
|
||||
border-top: 1px solid var(--el-border-color-lighter);
|
||||
|
||||
Reference in new issue
Block a user