From e1b0d817feaeb132f769482986f738cedebc0405 Mon Sep 17 00:00:00 2001 From: xuziqiang <1344691446@qq.com> Date: Tue, 4 Jun 2024 10:54:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/api/origanizemanage.ts | 23 +- hx-ai-intelligent/src/config/app.config.ts | 2 + hx-ai-intelligent/src/router/equipmentManage.ts | 3 +- .../organizationManage/departmentManage/config.ts | 40 +-- .../organizationManage/departmentManage/index.vue | 78 +++-- .../view/organizationManage/usermanage/config.ts | 107 +++++-- .../view/organizationManage/usermanage/index.vue | 356 +++++++++++---------- .../src/view/organizationManage/usermanage/mock.ts | 2 + hx-ai-intelligent/vite.config.ts | 2 +- lib/component/table/table-header.vue | 2 +- lib/component/table/table.vue | 6 +- lib/saas/config/table.config.ts | 2 +- 12 files changed, 373 insertions(+), 250 deletions(-) diff --git a/hx-ai-intelligent/src/api/origanizemanage.ts b/hx-ai-intelligent/src/api/origanizemanage.ts index 00475b0..257d4c8 100644 --- a/hx-ai-intelligent/src/api/origanizemanage.ts +++ b/hx-ai-intelligent/src/api/origanizemanage.ts @@ -1,4 +1,19 @@ -export const origanizemanage = { - userList: '/carbon-smart/api/user/queryUserByPage', - addUser: '/carbon-smart/api/user/save', -}; +const BASE_URL = '/carbon-smart'; + +export enum origanizemanage { + userList = '/carbon-smart/api/user/queryUserByPage', + addUser = '/carbon-smart/api/user/save', + frozen = '/carbon-smart/api/user/frozen', + resetPwd = '/carbon-smart/api/user/resetPwd', + del = '/carbon-smart/api/user/del', + batchDel = '/carbon-smart/api/user/batchDel', + queryOrgTree = '/carbon-smart/api/user/queryOrgTree', + queryDeptTree = '/carbon-smart/api/user/queryDeptTree', + queryUserPerList = '/carbon-smart/api/user/queryUserPerList', +} + +export enum department { + dartList = `${BASE_URL}/api/user/queryDeptTree`, + deptSave = `${BASE_URL}/api/dept/save`, + deptEdit = `${BASE_URL}/api/dept/edit`, +} diff --git a/hx-ai-intelligent/src/config/app.config.ts b/hx-ai-intelligent/src/config/app.config.ts index 62c819b..30d4718 100644 --- a/hx-ai-intelligent/src/config/app.config.ts +++ b/hx-ai-intelligent/src/config/app.config.ts @@ -74,6 +74,8 @@ export const appConfig = { accountName: 'realName', accountRealName: 'realName', orgId: 'orgId', + orgName: 'orgName', + projectId: 'projectId', }); return { data: { ...trD } }; }); diff --git a/hx-ai-intelligent/src/router/equipmentManage.ts b/hx-ai-intelligent/src/router/equipmentManage.ts index 8d53251..20e2842 100644 --- a/hx-ai-intelligent/src/router/equipmentManage.ts +++ b/hx-ai-intelligent/src/router/equipmentManage.ts @@ -15,7 +15,8 @@ const equipment = { { path: 'index', name: 'LedgerIndex', - component: () => import('/@/view/equipmentManage/ledger/index.vue'), + component: () => import('/nerv-lib/saas/view/menuManage/index.vue'), + // component: () => import('/@/view/equipmentManage/ledger/index.vue'), meta: { title: '设备台账', keepAlive: true, diff --git a/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts b/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts index bc9c7a4..75d1868 100644 --- a/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts +++ b/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts @@ -9,7 +9,7 @@ export const formConfig = (disabled: Boolean) => { schemas: [ { label: '部门名称', - field: 'name', + field: 'deptName', component: 'NsInput', componentProps: { disabled: disabled, @@ -23,27 +23,27 @@ export const formConfig = (disabled: Boolean) => { }, ], }, - { - label: '上级部门', - field: 'department', - component: 'NsSelect', - componentProps: { - disabled: true, - options: [ - { - label: '部门1', - value: 1, - }, - { - label: '部门2', - value: 2, - }, - ], - }, - }, + // { + // label: '上级部门', + // field: 'department', + // component: 'NsSelect', + // componentProps: { + // disabled: true, + // options: [ + // { + // label: '部门1', + // value: 1, + // }, + // { + // label: '部门2', + // value: 2, + // }, + // ], + // }, + // }, { label: '部门编码', - field: 'code', + field: 'deptCode', component: 'NsInput', componentProps: { disabled: disabled, diff --git a/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue b/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue index e6fb1f2..e82fa4d 100644 --- a/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue +++ b/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue @@ -9,9 +9,13 @@ 新增部门 新增子部门 删除 - -