diff --git a/hx-ai-intelligent/src/config/app.config.ts b/hx-ai-intelligent/src/config/app.config.ts index f5feb8a..34b3318 100644 --- a/hx-ai-intelligent/src/config/app.config.ts +++ b/hx-ai-intelligent/src/config/app.config.ts @@ -19,7 +19,7 @@ export const appConfig = { projectType: 'web', baseApi: '/api', projectName: '济阳站_AI智能BAS系统', - enablePermissions: true, + enablePermissions: false, // themeColor: '#eee', siderPosition: 'left', baseHeader: '/parkingManage', diff --git a/hx-ai-intelligent/src/router/organizationManage.ts b/hx-ai-intelligent/src/router/organizationManage.ts index 8f1453a..02de016 100644 --- a/hx-ai-intelligent/src/router/organizationManage.ts +++ b/hx-ai-intelligent/src/router/organizationManage.ts @@ -46,6 +46,10 @@ const organizationManage = { code: 'userFrozen', }, { + title: '解冻', + code: 'userUnFrozen', + }, + { title: '重置密码', code: 'userCodeReset', }, diff --git a/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts b/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts index d081a0e..5431020 100644 --- a/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts +++ b/hx-ai-intelligent/src/view/organizationManage/departmentManage/config.ts @@ -11,6 +11,7 @@ export const formConfig = (disabled: Boolean) => { disabled: disabled, placeholder: '请输入部门名称', maxLength: 20, + onKeydown: (e) => e.keyCode === 32 && e.preventDefault(), }, rules: [ { @@ -44,6 +45,7 @@ export const formConfig = (disabled: Boolean) => { componentProps: { disabled: disabled, placeholder: '请输入部门编码', + onKeydown: (e) => e.keyCode === 32 && e.preventDefault(), maxLength: 20, }, rules: [ @@ -56,11 +58,14 @@ export const formConfig = (disabled: Boolean) => { { label: '排序', field: 'sort', - component: 'NsInput', + component: 'NsInputNumber', componentProps: { disabled: disabled, placeholder: '请输入排序', maxLength: 2, + min: 0, + max: 99, + precision: 0, }, }, { @@ -87,6 +92,7 @@ export const formConfig2 = (disabled2: Boolean) => { componentProps: { disabled: disabled2, placeholder: '请输入角色名称', + onKeydown: (e) => e.keyCode === 32 && e.preventDefault(), maxLength: 20, }, rules: [ @@ -111,6 +117,7 @@ export const formConfig2 = (disabled2: Boolean) => { componentProps: { disabled: disabled2, placeholder: '请输入节点编码', + onKeydown: (e) => e.keyCode === 32 && e.preventDefault(), maxLength: 20, }, rules: [ diff --git a/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue b/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue index 2618e84..02d0783 100644 --- a/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue +++ b/hx-ai-intelligent/src/view/organizationManage/departmentManage/index.vue @@ -10,13 +10,13 @@ 新增部门 新增子部门 - + 删除