From 020a0a20ee132f86f89f8764f2eb7596c4ae7efa Mon Sep 17 00:00:00 2001 From: yaoyn Date: Thu, 28 Nov 2024 15:47:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=89=8D=E7=AB=AF=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=B6=85=E6=97=B6=E9=85=8D=E7=BD=AE=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E9=83=A8=E9=97=A8=E4=BC=98=E5=8C=96=EF=BC=88=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=89=80=E5=B1=9E=E9=83=A8=E9=97=A8=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=88=97=E8=A1=A8=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=85=8D=E7=BD=AE=E9=A1=B9=EF=BC=89=20switch?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=80=BC=20=E5=9F=BA=E6=9C=AC=E8=A1=A8=E6=A0=BC=E5=8F=AF?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=AD=97=E6=AE=B5=E7=BB=84=E4=BB=B6=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0onUpdate=E6=94=AF=E6=8C=81=E5=93=8D=E5=BA=94=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 7 +- src/api/system/user/model/index.ts | 3 + src/components/Switch/src/Switch.vue | 4 +- .../src/components/editable/EditableCell.vue | 5 +- src/hooks/setting/index.ts | 2 + src/utils/env.ts | 3 +- src/utils/http/axios/index.ts | 2 +- .../department/components/DeptDrawer.vue | 14 +- src/views/system/department/index.vue | 2 +- .../user/components/OrganizationModal.vue | 10 +- .../system/user/components/UserModal.vue | 136 +++++++++++++++++- types/config.d.ts | 2 + 12 files changed, 172 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index 3dfa537..922164d 100644 --- a/.env.development +++ b/.env.development @@ -3,6 +3,8 @@ VITE_USE_MOCK = false # 资源公共路径,需要以 /开头和结尾 VITE_PUBLIC_PATH = / +# 路由模式切换为history +#VITE_ROUTE_MODE = history # 本地开发代理,可以解决跨域及多地址代理 # 如果接口地址匹配到,则会转发到http://localhost:3000,防止本地出现跨域问题 @@ -16,6 +18,7 @@ VITE_DROP_CONSOLE = false # 接口地址 # 如果没有跨域问题,直接在这里配置即可 VITE_GLOB_API_URL=http://10.133.96.105:8077 +#VITE_GLOB_REQUEST_TIMEOUT=20000 # 报表系统地址 VITE_GLOB_REPORT_URL=http://10.133.96.105:3100 @@ -35,8 +38,8 @@ VITE_GLOB_PRINT_BASE_URL = http://114.116.210.204:3300 VITE_GLOB_API_URL_PREFIX = #租户开关 -VITE_TENANT_ENABLED = true +# VITE_TENANT_ENABLED = true # 屏蔽通知消息的轮询 VITE_DISABLE_NEWS=false # 禁用关闭页面提示 -VITE_CLOSE_ALERT_DISABLED=true +# VITE_CLOSE_ALERT_DISABLED=true diff --git a/src/api/system/user/model/index.ts b/src/api/system/user/model/index.ts index cc9e15b..3053991 100644 --- a/src/api/system/user/model/index.ts +++ b/src/api/system/user/model/index.ts @@ -42,6 +42,9 @@ export interface UserModel { roles: any; //角色信息 posts: any; //岗位信息 chargeDepartments: any; //负责部门 + departments:any;//所属部门 + + isSync: string;//是否同步 } /** diff --git a/src/components/Switch/src/Switch.vue b/src/components/Switch/src/Switch.vue index 22eaa97..693a40b 100644 --- a/src/components/Switch/src/Switch.vue +++ b/src/components/Switch/src/Switch.vue @@ -17,7 +17,7 @@