diff --git a/.env.development b/.env.development index cab40f25..7000f7d9 100644 --- a/.env.development +++ b/.env.development @@ -17,7 +17,7 @@ VITE_DROP_CONSOLE = false VITE_GLOB_API_URL = # 文件上传接口 可选 -VITE_GLOB_UPLOAD_URL = /upload +VITE_GLOB_UPLOAD_URL = /api/baymax-resource/oss/endpoint/put-file # 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 VITE_GLOB_API_URL_PREFIX = /api diff --git a/.env.production b/.env.production index 5f2a911b..e7943488 100644 --- a/.env.production +++ b/.env.production @@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false VITE_GLOB_API_URL = # 文件上传地址 可以由nginx做转发或者直接写实际地址 -VITE_GLOB_UPLOAD_URL = /upload +VITE_GLOB_UPLOAD_URL = /baymax-resource/oss/endpoint/put-file # 接口地址前缀,有些系统所有接口地址都有前缀,可以在这里统一加,方便切换 VITE_GLOB_API_URL_PREFIX = diff --git a/src/api/base/user/index.ts b/src/api/base/user/index.ts index e68d18e0..bbbff28f 100644 --- a/src/api/base/user/index.ts +++ b/src/api/base/user/index.ts @@ -26,9 +26,7 @@ export function loginApi(params: LoginParams, mode: ErrorMessageMode = 'modal') export function getUserInfo() { return defHttp.get({ - url: '/system/permission/get-permission-info', - }, { - errorMessageMode: 'none', + url: '/baymax-system/user/info', }) } @@ -43,7 +41,9 @@ export interface __MenuItem { sort: number category: number action: number + isOpen: 1 | 2 children?: __MenuItem[] + visible: BooleanFlag } export function getUserRouters() { @@ -60,7 +60,7 @@ export function getUserButtons() { export function doLogout() { return defHttp.post({ - url: '/auth/logout', + url: '/baymax-auth/oauth/logout', }) } @@ -72,3 +72,17 @@ export function getLoginCaptcha() { withoutAuth: true, }) } + +export function updateUserInfo(data: Partial) { + return defHttp.post({ + url: '/baymax-system/user/update-info', + data, + }) +} + +export function updatePassword(params: { oldPassword: string, newPassword: string, newPassword1: string }) { + return defHttp.post({ + url: '/baymax-system/user/update-password', + params, + }, { joinParamsToUrl: true }) +} diff --git a/src/api/base/user/types.ts b/src/api/base/user/types.ts index a5edfdcd..bd683a87 100644 --- a/src/api/base/user/types.ts +++ b/src/api/base/user/types.ts @@ -29,4 +29,5 @@ export interface User { avatar?: string role_id: string role_name: string + phone: string } diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts index 62a323f6..7acac04e 100644 --- a/src/api/system/dept/index.ts +++ b/src/api/system/dept/index.ts @@ -3,34 +3,34 @@ import { defHttp } from '@/utils/http/axios' export function lazyGetDeptList(params?: LazyGetDeptListParams) { return defHttp.get({ - url: '/system/dept/lazy-list', + url: '/baymax-system/dept/lazy-list', params, }) } export function createDept(data: Partial) { return defHttp.post({ - url: '/system/dept/save', + url: '/baymax-system/dept/submit', data, }) } export function updateDept(data: Partial) { return defHttp.post({ - url: '/system/dept/update', + url: '/baymax-system/dept/submit', data, }) } export function deleteDept(id: string) { return defHttp.post({ - url: `/system/dept/delete?id=${id}`, + url: `/baymax-system/dept/remove?id=${id}`, }) } export function getDeptTree(params?: { tenantId: string }) { return defHttp.get<{ id: string, title: string }[]>({ - url: '/system/dept/tree', + url: '/baymax-system/dept/tree', params, }) } diff --git a/src/api/system/dict/index.ts b/src/api/system/dict/index.ts new file mode 100644 index 00000000..693f44a6 --- /dev/null +++ b/src/api/system/dict/index.ts @@ -0,0 +1,48 @@ +import type { GetDictChildListParams, GetDictListParams, SystemDict, SystemDictChild, SystemDictTree } from './types' +import { defHttp } from '@/utils/http/axios' + +export function getDictList(params: GetDictListParams) { + return defHttp.get>({ + url: '/baymax-system/dict/parent-list', + params, + }) +} + +export function detailDict(id: string) { + return defHttp.get({ + url: `/baymax-system/dict/detail?id=${id}`, + }) +} + +export function createDict(data: Partial) { + return defHttp.post({ + url: '/baymax-system/dict/submit', + data, + }) +} + +export function updateDict(data: Partial) { + return defHttp.post({ + url: '/baymax-system/dict/submit', + data, + }) +} + +export function deleteDict(ids: string[]) { + return defHttp.post({ + url: `/baymax-system/dict/remove?ids=${ids}`, + }) +} + +export function dictTree(code: string) { + return defHttp.get({ + url: `/baymax-system/dict/tree?code=${code}`, + }) +} + +export function getDictChildList(params: GetDictChildListParams) { + return defHttp.get>({ + url: '/baymax-system/dict/child-list', + params, + }) +} diff --git a/src/api/system/dict/types.ts b/src/api/system/dict/types.ts new file mode 100644 index 00000000..db919f99 --- /dev/null +++ b/src/api/system/dict/types.ts @@ -0,0 +1,36 @@ +export interface GetDictListParams extends PageParam { +} + +export interface GetDictChildListParams extends PageParam { + parentId: string +} + +export interface SystemDict { + id: string + code: string + dictKey: string + dictValue: string + hasChildren: boolean + isDeleted: number + isSealed: number + parentId: string + parentName: string + remark: string + sort: number +} + +export interface SystemDictChild extends SystemDict { +} + +export interface SystemDictTree extends SystemDictTreeItem { + children: SystemDictTree[] +} + +export interface SystemDictTreeItem { + id: string + hasChildren: boolean + key: string + parentId: string + title: string + value: string +} diff --git a/src/api/system/dictbiz/index.ts b/src/api/system/dictbiz/index.ts new file mode 100644 index 00000000..59eaa921 --- /dev/null +++ b/src/api/system/dictbiz/index.ts @@ -0,0 +1,48 @@ +import type { GetDictbizChildListParams, GetDictbizListParams, SystemDictbiz, SystemDictbizChild, SystemDictbizTree } from './types' +import { defHttp } from '@/utils/http/axios' + +export function getDictbizList(params: GetDictbizListParams) { + return defHttp.get>({ + url: '/baymax-system/dict-biz/parent-list', + params, + }) +} + +export function detailDictbiz(id: string) { + return defHttp.get({ + url: `/baymax-system/dict-biz/detail?id=${id}`, + }) +} + +export function createDictbiz(data: Partial) { + return defHttp.post({ + url: '/baymax-system/dict-biz/submit', + data, + }) +} + +export function updateDictbiz(data: Partial) { + return defHttp.post({ + url: '/baymax-system/dict-biz/submit', + data, + }) +} + +export function deleteDictbiz(ids: string[]) { + return defHttp.post({ + url: `/baymax-system/dict-biz/remove?ids=${ids}`, + }) +} + +export function dictbizTree(code: string) { + return defHttp.get({ + url: `/baymax-system/dict-biz/tree?code=${code}`, + }) +} + +export function getDictbizChildList(params: GetDictbizChildListParams) { + return defHttp.get>({ + url: '/baymax-system/dict-biz/child-list', + params, + }) +} diff --git a/src/api/system/dictbiz/types.ts b/src/api/system/dictbiz/types.ts new file mode 100644 index 00000000..5e0c953b --- /dev/null +++ b/src/api/system/dictbiz/types.ts @@ -0,0 +1,37 @@ +export interface GetDictbizListParams extends PageParam { +} + +export interface GetDictbizChildListParams extends PageParam { + parentId: string +} + +export interface SystemDictbiz { + id: string + code: string + dictKey: string + dictValue: string + hasChildren: boolean + isDeleted: number + isSealed: number + parentId: string + parentName: string + remark: string + sort: number + tenantId: string +} + +export interface SystemDictbizChild extends SystemDictbiz { +} + +export interface SystemDictbizTree extends SystemDictbizTreeItem { + children: SystemDictbizTree[] +} + +export interface SystemDictbizTreeItem { + id: string + hasChildren: boolean + key: string + parentId: string + title: string + value: string +} diff --git a/src/api/system/menu/index.ts b/src/api/system/menu/index.ts index bfc13e2e..7bacf501 100644 --- a/src/api/system/menu/index.ts +++ b/src/api/system/menu/index.ts @@ -3,39 +3,39 @@ import { defHttp } from '@/utils/http/axios' export function getMenuListWithoutButtons() { return defHttp.get({ - url: '/system/menu/tree', + url: '/baymax-system/menu/tree', }) } export function getMenuList(params: GetMenuListParams) { return defHttp.get>({ - url: '/system/menu/list', + url: '/baymax-system/menu/list', params, }) } export function getMenu(id: string) { return defHttp.get({ - url: `/system/menu/get?id=${id}`, + url: `/baymax-system/menu/get?id=${id}`, }) } export function createMenu(data: Omit) { return defHttp.post({ - url: '/system/menu/save', + url: '/baymax-system/menu/submit', data, }) } export function updateMenu(data: Omit) { return defHttp.post({ - url: '/system/menu/update', + url: '/baymax-system/menu/submit', data, }) } -export function deleteMenu(id: string) { +export function deleteMenu(ids: string[]) { return defHttp.post({ - url: `/system/menu/delete?id=${id}`, + url: `/baymax-system/menu/remove?ids=${ids}`, }) } diff --git a/src/api/system/param/index.ts b/src/api/system/param/index.ts index 766a3b9b..e6e884d4 100644 --- a/src/api/system/param/index.ts +++ b/src/api/system/param/index.ts @@ -3,27 +3,27 @@ import { defHttp } from '@/utils/http/axios' export function getParamList(params: GetParamListParams) { return defHttp.get({ - url: '/param/page', + url: '/baymax-system/param/list', params, }) } export function createParam(data: Partial) { return defHttp.post({ - url: '/param/save', + url: '/baymax-system/param/submit', data, }) } export function updateParam(data: Partial) { return defHttp.post({ - url: '/param/update', + url: '/baymax-system/param/submit', data, }) } -export function deleteParam(id: string) { +export function deleteParam(ids: string[]) { return defHttp.post({ - url: `/param/remove?id=${id}`, + url: `/baymax-system/param/remove?ids=${ids}`, }) } diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts new file mode 100644 index 00000000..8bcfebd4 --- /dev/null +++ b/src/api/system/post/index.ts @@ -0,0 +1,42 @@ +import type { GetPostListParams, SystemPost } from './types' +import { defHttp } from '@/utils/http/axios' + +export function getPostList(params: GetPostListParams) { + return defHttp.get>({ + url: '/baymax-system/post/list', + params, + }) +} + +export function detailPost(id: string) { + return defHttp.get({ + url: `/baymax-system/post/detail?id=${id}`, + }) +} + +export function createPost(data: Partial) { + return defHttp.post({ + url: '/baymax-system/post/submit', + data, + }) +} + +export function updatePost(data: Partial) { + return defHttp.post({ + url: '/baymax-system/post/submit', + data, + }) +} + +export function deletePost(ids: string[]) { + return defHttp.post({ + url: `/baymax-system/post/remove?ids=${ids}`, + }) +} + +export function getPostTree(params: { tenantId: string }) { + return defHttp.get({ + url: '/baymax-system/post/select', + params, + }) +} diff --git a/src/api/system/post/types.ts b/src/api/system/post/types.ts new file mode 100644 index 00000000..22ab7cf3 --- /dev/null +++ b/src/api/system/post/types.ts @@ -0,0 +1,21 @@ +export interface GetPostListParams extends PageParam { +} + +export interface SystemPost { + id: string + category: number + categoryName: string + createDept: string + createTime: string + createUser: string + isDeleted: number + postCode: string + postName: string + remark: string + sort: number + status: number + tenantId: string + tenantName?: string + updateTime: string + updateUser: string +} diff --git a/src/api/system/region/index.ts b/src/api/system/region/index.ts new file mode 100644 index 00000000..5aa33237 --- /dev/null +++ b/src/api/system/region/index.ts @@ -0,0 +1,37 @@ +import type { Region } from './types' +import { defHttp } from '@/utils/http/axios' + +export function lazyGetRegionList(parentCode?: string) { + return defHttp.get({ + url: '/baymax-system/region/lazy-tree', + params: { + parentCode, + }, + }) +} + +export function getRegionDetail(code: string) { + return defHttp.get({ + url: `baymax-system/region/detail?code=${code}`, + }) +} + +export function updateRegion(data: Partial) { + return defHttp.post({ + url: '/baymax-system/region/submit', + data, + }) +} + +export function deleteRegion(id: string) { + return defHttp.post({ + url: `/baymax-system/region/remove?id=${id}`, + }) +} + +export function exportRegion() { + return defHttp.get({ + url: '/baymax-system/region/export-region', + responseType: 'blob', + }) +} diff --git a/src/api/system/region/types.ts b/src/api/system/region/types.ts new file mode 100644 index 00000000..bf659f7f --- /dev/null +++ b/src/api/system/region/types.ts @@ -0,0 +1,15 @@ +export interface Region { + id: string + parentCode: string + subCode: string + code: string + name: string + sort: number + remark: string + parentId: string + title: string + value: string + hasChildren: boolean + parentName: string + regionLevel: number | string +} diff --git a/src/api/system/role/index.ts b/src/api/system/role/index.ts index e028ebd3..8fd1e99a 100644 --- a/src/api/system/role/index.ts +++ b/src/api/system/role/index.ts @@ -1,56 +1,55 @@ -import type { GetRoleListParams, MenuTreeNode, Role } from './types' +import type { GetRoleListParams, GrantParams, MenuTreeNode, Role } from './types' import { defHttp } from '@/utils/http/axios' -export function lazyGetRoleList(params: GetRoleListParams) { +export function getRoleList(params: GetRoleListParams) { return defHttp.get({ - url: '/system/role/lazy-list', + url: '/baymax-system/role/list', params, }) } export function createRole(data: Partial) { return defHttp.post({ - url: '/system/role/save', + url: '/baymax-system/role/submit', data, }) } export function updateRole(data: Partial) { return defHttp.post({ - url: '/system/role/update', + url: '/baymax-system/role/submit', data, }) } export function deleteRole(id: string) { return defHttp.post({ - url: `/system/role/delete?id=${id}`, + url: `/baymax-system/role/delete?id=${id}`, }) } export function getRoleTree(params?: { tenantId: string }) { return defHttp.get<{ id: string, title: string }[]>({ - url: '/system/role/tree', + url: '/baymax-system/role/tree', params, }) } export function getMenuTree() { - return defHttp.get({ - url: '/system/menu/grant-tree', + return defHttp.get<{ menu: MenuTreeNode[] }>({ + url: '/baymax-system/menu/grant-tree', }) } -export function getMenuIdsByRole(roleId: string) { - return defHttp.get({ - url: '/system/permission/list-role-menus', - params: { roleId }, +export function getRoleTreeKeys(roleIds: string) { + return defHttp.get<{ menu: string[] }>({ + url: `/baymax-system/menu/role-tree-keys?roleIds=${roleIds}`, }) } -export function assignMenuToRole(data: { roleId: string, menuIds: string[] }) { +export function updateGrant(data: GrantParams) { return defHttp.post({ - url: '/system/permission/assign-role-menu', + url: `/baymax-system/role/grant`, data, }) } diff --git a/src/api/system/role/types.ts b/src/api/system/role/types.ts index 1b4ddc38..1b5ff68d 100644 --- a/src/api/system/role/types.ts +++ b/src/api/system/role/types.ts @@ -25,5 +25,14 @@ export interface MenuTreeNode { id: string parentId: string title: string + hasChildren: boolean children?: MenuTreeNode[] } + +export interface GrantParams { + apiScopeIds: string[] + dataScopeIds: string[] + menuIds: string[] + roleIds: string[] + topMenuIds: string[] +} diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts index 493dada2..470040e7 100644 --- a/src/api/system/tenant/index.ts +++ b/src/api/system/tenant/index.ts @@ -3,33 +3,46 @@ import { defHttp } from '@/utils/http/axios' export function getTenantList(params: GetTenantListParams) { return defHttp.get>({ - url: '/system/tenant/page', + url: '/baymax-system/tenant/list', params, }) } export function updateTenant(data: Tenant) { return defHttp.post({ - url: '/system/tenant/update', + url: '/baymax-system/tenant/submit', data, }) } export function createTenant(data: Tenant) { return defHttp.post({ - url: '/system/tenant/save', + url: '/baymax-system/tenant/submit', data, }) } +export function detailTenant(id: string) { + return defHttp.get({ + url: `/baymax-system/tenant/detail?id=${id}`, + }) +} + export function deleteTenant(id: string) { return defHttp.post({ - url: `/system/tenant/remove?id=${id}`, + url: `/baymax-system/tenant/remove?id=${id}`, + }) +} + +export function settingTenant(data: Partial) { + return defHttp.post({ + url: `/baymax-system/tenant/setting`, + data, }) } export function getAllTenants() { return defHttp.get({ - url: '/system/tenant/select', + url: '/baymax-system/tenant/select', }) } diff --git a/src/api/system/tenant/types.ts b/src/api/system/tenant/types.ts index 67f8c062..12db485f 100644 --- a/src/api/system/tenant/types.ts +++ b/src/api/system/tenant/types.ts @@ -1,11 +1,14 @@ export interface Tenant { id: string - tenantId?: string + tenantId: string tenantName: string - adminAccount: string - contactName: string - contactMobile: string - expireTime?: string + createUser: string + accountNumber: number + contactNumber: string + expireTime: string + domainUrl: string + linkman: string + address: string } export interface GetTenantListParams extends PageParam { diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index e5fb616c..68ff3284 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -3,27 +3,46 @@ import { defHttp } from '@/utils/http/axios' export function getUserList(params: GetUserListParams) { return defHttp.get>({ - url: '/system/user/page', + url: '/baymax-system/user/page', params, }) } export function createUser(data: Partial) { return defHttp.post({ - url: '/system/user/save', + url: '/baymax-system/user/save', data, }) } export function updateUser(data: Partial) { return defHttp.post({ - url: '/system/user/update', + url: '/baymax-system/user/update', data, }) } -export function deleteUser(id: string) { +export function deleteUser(ids: string[]) { return defHttp.post({ - url: `/system/user/delete?id=${id}`, + url: `/baymax-system/user/remove?ids=${ids}`, + }) +} + +export function resetPasswordByIds(ids: string[]) { + return defHttp.post({ + url: `/baymax-system/user/reset-password?userIds=${ids}`, + }) +} + +export function unlockUserByIds(ids: string[]) { + return defHttp.post({ + url: `/baymax-system/user/unlock?userIds=${ids}`, + }) +} + +export function exportUsers() { + return defHttp.get({ + url: '/baymax-system/user/export-user', + responseType: 'blob', }) } diff --git a/src/api/system/user/types.ts b/src/api/system/user/types.ts index 08f9bf92..93a1fc8e 100644 --- a/src/api/system/user/types.ts +++ b/src/api/system/user/types.ts @@ -20,4 +20,5 @@ export interface SystemUser { sex: 1 | 2 | 3 tenantId: string tenantName: string + userType: string } diff --git a/src/components/Form/src/components/FileUpload.vue b/src/components/Form/src/components/FileUpload.vue index d13469af..1423ce66 100644 --- a/src/components/Form/src/components/FileUpload.vue +++ b/src/components/Form/src/components/FileUpload.vue @@ -1,5 +1,6 @@ + + diff --git a/src/components/Tree/src/BasicTree.vue b/src/components/Tree/src/BasicTree.vue index 1cf193cb..0ccb9b4d 100644 --- a/src/components/Tree/src/BasicTree.vue +++ b/src/components/Tree/src/BasicTree.vue @@ -429,7 +429,7 @@ export default defineComponent({ {extendSlots(slots)} )} - + {extendSlots(slots, ['title'])} @@ -443,3 +443,11 @@ export default defineComponent({ }, }) + + diff --git a/src/components/Tree/src/components/TreeHeader.vue b/src/components/Tree/src/components/TreeHeader.vue index 4707b72f..7b410b26 100644 --- a/src/components/Tree/src/components/TreeHeader.vue +++ b/src/components/Tree/src/components/TreeHeader.vue @@ -177,5 +177,6 @@ watch( + diff --git a/src/components/Tree/style/index.less b/src/components/Tree/style/index.less index dcf443e8..1fd6b3bb 100644 --- a/src/components/Tree/style/index.less +++ b/src/components/Tree/style/index.less @@ -48,6 +48,6 @@ } &-header { - border-bottom: 1px solid var(--border-color); + // border-bottom: 1px solid var(--border-color); } } diff --git a/src/enums/pageEnum.ts b/src/enums/pageEnum.ts index 8e51e4cd..09d5fdd5 100644 --- a/src/enums/pageEnum.ts +++ b/src/enums/pageEnum.ts @@ -2,7 +2,7 @@ export enum PageEnum { // basic login path BASE_LOGIN = '/login', // basic home path - BASE_HOME = '/dashboard', + BASE_HOME = '/home', // error page path ERROR_PAGE = '/exception', // error log page path diff --git a/src/layouts/default/header/components/user-dropdown/index.vue b/src/layouts/default/header/components/user-dropdown/index.vue index ef7fb05d..34ed321a 100644 --- a/src/layouts/default/header/components/user-dropdown/index.vue +++ b/src/layouts/default/header/components/user-dropdown/index.vue @@ -1,10 +1,11 @@ @@ -27,7 +24,6 @@ const title = computed(() => globSetting?.title ?? '')
-
diff --git a/src/views/base/login/LoginForm.vue b/src/views/base/login/LoginForm.vue index 65e5c0fc..d3eba411 100644 --- a/src/views/base/login/LoginForm.vue +++ b/src/views/base/login/LoginForm.vue @@ -28,9 +28,9 @@ const formRef = ref() const loading = ref(false) const formData = reactive({ - tenantId: '345618', + tenantId: '000000', username: 'admin', - password: '&demo8&!', + password: '123456', captchaKey: '', captchaCode: '', }) diff --git a/src/views/base/profile/components/UpdatePassword.vue b/src/views/base/profile/components/UpdatePassword.vue new file mode 100644 index 00000000..9b4d4396 --- /dev/null +++ b/src/views/base/profile/components/UpdatePassword.vue @@ -0,0 +1,75 @@ + + + diff --git a/src/views/base/profile/components/UserInfo.vue b/src/views/base/profile/components/UserInfo.vue new file mode 100644 index 00000000..b0fda38c --- /dev/null +++ b/src/views/base/profile/components/UserInfo.vue @@ -0,0 +1,94 @@ + + + diff --git a/src/views/base/profile/components/index.ts b/src/views/base/profile/components/index.ts new file mode 100644 index 00000000..2730fff6 --- /dev/null +++ b/src/views/base/profile/components/index.ts @@ -0,0 +1,2 @@ +export { default as UserInfo } from './UserInfo.vue' +export { default as UpdatePassword } from './UpdatePassword.vue' diff --git a/src/views/base/profile/index.vue b/src/views/base/profile/index.vue new file mode 100644 index 00000000..66ffc748 --- /dev/null +++ b/src/views/base/profile/index.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/views/system/dept/data.ts b/src/views/system/dept/data.ts index cd3a8f3b..0b818a64 100644 --- a/src/views/system/dept/data.ts +++ b/src/views/system/dept/data.ts @@ -1,10 +1,11 @@ +import { getSystemDictionary } from '@/api/base/common' import { lazyGetDeptList } from '@/api/system/dept' import { getAllTenants } from '@/api/system/tenant' import type { BasicColumn, FormSchema } from '@/components/Table' export const columns: BasicColumn[] = [ { - title: '部门名称', + title: '机构名称', dataIndex: 'deptName', width: 260, align: 'left', @@ -14,11 +15,21 @@ export const columns: BasicColumn[] = [ dataIndex: 'tenantName', width: 120, }, + { + title: '机构全称', + dataIndex: 'fullName', + width: 260, + }, + { + title: '机构类型', + dataIndex: 'deptCategoryName', + width: 260, + }, ] export const searchFormSchema: FormSchema[] = [ { - label: '部门名称', + label: '机构名称', field: 'deptName', component: 'Input', colProps: { span: 6 }, @@ -34,6 +45,12 @@ export const searchFormSchema: FormSchema[] = [ }, colProps: { span: 6 }, }, + { + label: '机构全称', + field: 'fullName', + component: 'Input', + colProps: { span: 6 }, + }, ] export const formSchema: FormSchema[] = [ @@ -70,11 +87,26 @@ export const formSchema: FormSchema[] = [ }, }, { - label: '部门名称', + label: '机构名称', field: 'deptName', required: true, component: 'Input', }, + { + label: '机构全称', + field: 'fullName', + required: true, + component: 'Input', + }, + { + label: '机构类型', + field: 'deptCategory', + required: true, + component: 'ApiSelect', + componentProps: { + api: () => getSystemDictionary('org_category'), + }, + }, { label: '显示顺序', field: 'sort', @@ -82,4 +114,9 @@ export const formSchema: FormSchema[] = [ defaultValue: 0, component: 'InputNumber', }, + { + label: '备注', + field: 'remark', + component: 'InputTextArea', + }, ] diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 2fbee31d..ea6ee954 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -1,4 +1,5 @@