diff --git a/web/.env.development b/web/.env.development
index 1c3ca5d..c200ba4 100644
--- a/web/.env.development
+++ b/web/.env.development
@@ -2,7 +2,7 @@
ENV = 'development'
# 本地环境接口地址
-VITE_API_URL = 'http://127.0.0.1:8000'
+VITE_API_URL = 'http://huge-dream.natapp1.cc/'
# 是否启用按钮权限
VITE_PM_ENABLED = true
diff --git a/web/src/views/system/dept/components/DeptUserCom/api.ts b/web/src/views/system/dept/components/DeptUserCom/api.ts
index 561fa10..28602c7 100644
--- a/web/src/views/system/dept/components/DeptUserCom/api.ts
+++ b/web/src/views/system/dept/components/DeptUserCom/api.ts
@@ -1,13 +1,13 @@
import { request, downloadFile } from '/@/utils/service';
import { PageQuery, AddReq, DelReq, EditReq, InfoReq } from '@fast-crud/fast-crud';
-type GetListType = PageQuery & { show_all: string }
+type GetListType = PageQuery & { show_all: string };
export const apiPrefix = '/api/system/user/';
export function GetDept(query: PageQuery) {
return request({
- url: "/api/system/dept/dept_lazy_tree/",
+ url: '/api/system/dept/dept_lazy_tree/',
method: 'get',
params: query,
});
@@ -55,8 +55,8 @@ export function exportData(params: any) {
return downloadFile({
url: apiPrefix + 'export_data/',
params: params,
- method: 'get'
- })
+ method: 'get',
+ });
}
export function getDeptInfoById(id: string, type: string) {
@@ -65,3 +65,11 @@ export function getDeptInfoById(id: string, type: string) {
method: 'get',
});
}
+
+export function resetPwd(id: number, data: { [key: string]: string }) {
+ return request({
+ url: `/api/system/user/${id}/reset_password/`,
+ method: 'put',
+ data,
+ });
+}
diff --git a/web/src/views/system/dept/components/DeptUserCom/crud.tsx b/web/src/views/system/dept/components/DeptUserCom/crud.tsx
index 36bc11b..0eaa096 100644
--- a/web/src/views/system/dept/components/DeptUserCom/crud.tsx
+++ b/web/src/views/system/dept/components/DeptUserCom/crud.tsx
@@ -72,6 +72,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
},
search: {
container: {
+ layout: 'multi-line',
action: {
col: {
span: 10,
@@ -103,6 +104,7 @@ export const createCrudOptions = function ({ crudExpose, context }: CreateCrudOp
},
click: (ctx: any) => {
const { row } = ctx;
+ context?.handleResetPwdOpen(row);
},
},
},
diff --git a/web/src/views/system/dept/components/DeptUserCom/index.vue b/web/src/views/system/dept/components/DeptUserCom/index.vue
index d05522d..922a8fb 100644
--- a/web/src/views/system/dept/components/DeptUserCom/index.vue
+++ b/web/src/views/system/dept/components/DeptUserCom/index.vue
@@ -43,16 +43,31 @@
导入
+
+
+
+
+
+
+
+
+
+