From 69776112f9890553eff6cc3efeccc3b7db346660 Mon Sep 17 00:00:00 2001 From: xuziqiang <1344691446@qq.com> Date: Wed, 19 Jun 2024 15:20:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20bug=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hx-ai-intelligent/src/config/app.config.ts | 2 +- .../src/router/organizationManage.ts | 4 + .../departmentManage/config.ts | 9 +- .../departmentManage/index.vue | 128 +++++++----- .../organizationManage/usermanage/config.ts | 192 +++++++++--------- .../organizationManage/usermanage/index.vue | 75 ++++--- 6 files changed, 224 insertions(+), 186 deletions(-) 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 @@ -45,6 +45,10 @@ const organizationManage = { title: '冻结', 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 @@ 新增部门 新增子部门 - + 删除