From 40c92a9ea2269e9b34b305d9663419004aaa5dfa Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 1 Aug 2022 21:05:42 +0800 Subject: [PATCH] perf: dept --- .../src/api/system/dept/types.ts | 7 +++-- .../src/views/system/dept/dept.data.ts | 4 +-- .../src/views/system/dept/index.vue | 28 ++++++++++++++++--- .../src/views/system/user/index.vue | 20 +++++++------ 4 files changed, 42 insertions(+), 17 deletions(-) diff --git a/yudao-ui-admin-vue3/src/api/system/dept/types.ts b/yudao-ui-admin-vue3/src/api/system/dept/types.ts index 3151c610f..470fcd3d8 100644 --- a/yudao-ui-admin-vue3/src/api/system/dept/types.ts +++ b/yudao-ui-admin-vue3/src/api/system/dept/types.ts @@ -1,9 +1,12 @@ export type DeptVO = { id: number name: string - status: number parentId: number - createTime: string + status: number + sort: number + leaderUserId: number + phone: string + email: string } export type DeptListReqVO = { diff --git a/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts b/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts index 1a66624d3..0116a6463 100644 --- a/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts +++ b/yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts @@ -17,7 +17,7 @@ export const modelSchema = reactive([ }, { label: '负责人', - field: 'email', + field: 'leaderUserId', component: 'Input' }, { @@ -33,7 +33,7 @@ export const modelSchema = reactive([ { label: '显示排序', field: 'sort', - component: 'Input' + component: 'InputNumber' }, { label: '状态', diff --git a/yudao-ui-admin-vue3/src/views/system/dept/index.vue b/yudao-ui-admin-vue3/src/views/system/dept/index.vue index b956eb6a1..020e38d89 100644 --- a/yudao-ui-admin-vue3/src/views/system/dept/index.vue +++ b/yudao-ui-admin-vue3/src/views/system/dept/index.vue @@ -1,6 +1,6 @@ + - + @@ -491,14 +492,15 @@ getList() - - - +