diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 75e025f..c706af9 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -20,11 +20,11 @@ ref="tableRef" :data="lists" row-key="id" - :height="fwbHeight" + :height="fwbHeight" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - - + + - + @@ -44,7 +44,7 @@ align="center" label="权限标识" prop="permission" - min-width="150" + min-width="200" show-overflow-tooltip /> @@ -115,11 +115,13 @@ } from 'vue'; import { getMenuList, menuDelete } from '@/api/system/menu'; import type { ElTable } from 'element-plus'; - const tableRef = shallowRef>(); import { confirm, message, buildTree } from '@/utils/auth'; + /** + * 定义参数 + */ + const tableRef = shallowRef>(); const editDialog = defineAsyncComponent(() => import('./edit.vue')); - const isExpand = ref(false); const loading = ref(false); const editVisible = ref(false); diff --git a/src/views/system/position/columns.ts b/src/views/system/position/columns.ts index cf22173..de83088 100644 --- a/src/views/system/position/columns.ts +++ b/src/views/system/position/columns.ts @@ -13,10 +13,12 @@ export const columns = [ { label: '岗位名称', prop: 'name', + width: 100, }, { label: '岗位状态', prop: 'status', + width: 100, render(record) { return h( ElTag, @@ -32,10 +34,12 @@ export const columns = [ { label: '排序', prop: 'sort', + width: 100, }, { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/system/role/columns.ts b/src/views/system/role/columns.ts index 9ee9715..e46e53f 100644 --- a/src/views/system/role/columns.ts +++ b/src/views/system/role/columns.ts @@ -13,6 +13,7 @@ export const columns = [ { label: '角色名称', prop: 'name', + width: 150, }, { label: '角色编码', @@ -22,14 +23,17 @@ export const columns = [ { label: '排序', prop: 'sort', + width: 100, }, { label: '备注', prop: 'note', + width: 200, }, { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/system/tenant/columns.ts b/src/views/system/tenant/columns.ts index fa5d7a1..bcbcaf9 100644 --- a/src/views/system/tenant/columns.ts +++ b/src/views/system/tenant/columns.ts @@ -18,10 +18,12 @@ export const columns = [ { label: '租户编码', prop: 'code', + width: 100, }, { label: '租户图片', prop: 'image', + width: 100, render(record) { return h(ElAvatar, { size: 48, @@ -30,20 +32,21 @@ export const columns = [ fit: 'fill', }); }, - width: 100, }, { label: '统一社会信用代码', prop: 'license', - width: 200, + width: 160, }, { label: '租户限额', prop: 'number', + width: 100, }, { label: '租户人数', prop: 'userNum', + width: 100, }, { label: '到期时间', @@ -88,6 +91,7 @@ export const columns = [ { label: '状态', prop: 'status', + width: 100, render(record) { return h( ElTag, @@ -103,6 +107,7 @@ export const columns = [ { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/system/user/columns.ts b/src/views/system/user/columns.ts index 359a604..6acbfc0 100644 --- a/src/views/system/user/columns.ts +++ b/src/views/system/user/columns.ts @@ -13,16 +13,17 @@ export const columns = [ { label: '登录账号', prop: 'username', - width: 150, + width: 100, }, { label: '用户姓名', prop: 'realname', - width: 150, + width: 100, }, { label: '头像', prop: 'avatar', + width: 100, render(record) { return h(ElAvatar, { size: 48, @@ -31,11 +32,11 @@ export const columns = [ fit: 'fill', }); }, - width: 100, }, { label: '性别', prop: 'gender', + width: 100, render(record) { let typeText = ''; let color = ''; @@ -74,6 +75,7 @@ export const columns = [ { label: '用户角色', prop: 'role', + width: 100, render(record) { let roleNames = ''; if (record.row.roles.length > 0) { @@ -81,7 +83,6 @@ export const columns = [ } return h('span', roleNames || '-'); }, - width: 100, }, { label: '职级', @@ -101,6 +102,7 @@ export const columns = [ { label: '状态', prop: 'status', + width: 100, render(record) { return h( ElTag, @@ -116,6 +118,7 @@ export const columns = [ { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间',