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 @@ 新增部门 新增子部门 删除 - -