diff --git a/.env.local b/.env.local index 0612f42..c2f2554 100644 --- a/.env.local +++ b/.env.local @@ -5,9 +5,9 @@ VITE_DEV=true # 请求路径 #VITE_BASE_URL='http://localhost:48080' -#VITE_BASE_URL='http://188.188.3.232:48080' +VITE_BASE_URL='http://188.188.3.232:48080' # VITE_BASE_URL='http://188.188.5.188:48080' -VITE_BASE_URL='https://hb.jzce.com' +#VITE_BASE_URL='https://hb.jzce.com' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务 VITE_UPLOAD_TYPE=server diff --git a/src/api/enterpriseinspections/index.ts b/src/api/enterpriseinspections/index.ts index f4cbd2c..e3d2451 100644 --- a/src/api/enterpriseinspections/index.ts +++ b/src/api/enterpriseinspections/index.ts @@ -41,18 +41,19 @@ export const EnterpriseInspectionsApi = { }, // 导出企业检查记录表,用于记录与企业相关的环保检查信息。 Excel - inspectionsLogList: async (params:any) => { + inspectionsLogList: async (params: any) => { return await request.get({ url: `/system/inspections-log/list`, params }) }, //根据 用户id和任务名称查询可以转发的任务 - getListByUserIdAndTaskName: async (params:any) => { - return await request.get({ url: `/system/enterprise-inspections/getListByUserIdAndTaskName`, params }) - }, - - // 新增企业检查记录表,用于记录与企业相关的环保检查信息。 - passOn: async (data:any) => { + getListByUserIdAndTaskName: async (params: any) => { + return await request.get({ + url: `/system/enterprise-inspections/getListByUserIdAndTaskName`, + params + }) + }, + // 变更人员ID + passOn: async (data: any) => { return await request.post({ url: `/system/enterprise-inspections/passOn`, data }) - }, - + } } diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 3c5ca2e..1849d3e 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -19,14 +19,11 @@ export interface UserVO { area: string } - - // 查询用户管理列表 export const getUserPage = (params: PageParam) => { return request.get({ url: '/system/user/page', params }) } - // 查询专管员用户管理列表 export const getPcUserPage = (params: PageParam) => { return request.get({ url: '/system/user/pcpage', params }) @@ -62,7 +59,6 @@ export const deleteUserAllData = (id: number) => { return request.delete({ url: '/system/user/test_delete?id=' + id }) } - // 导出用户 export const exportUser = (params) => { return request.download({ url: '/system/user/export', params }) @@ -94,17 +90,17 @@ export const updateUserStatus = (id: number, status: number) => { // 获取用户精简信息列表 export const getSimpleUserList = (): Promise => { return request.get({ url: '/system/user/simple-list' }) -} +} -// 获取用户精简信息列表 -export const getSimpleUserZGList = (): Promise => { - return request.get({ url: '/system/user/simple-zg-list' }) -} +// 获取专管员 +export const getSimpleUserZGList = (param) => { + return request.get({ url: `/system/user/simple-zg-list`, param }) +} // 通过用户类型获取用户列表 -export const getSimpleUserListByUserType = (params:number) => { - return request.get({ url: '/system/user/simple-user-by-userType?type='+ params }) -} +export const getSimpleUserListByUserType = (params: number) => { + return request.get({ url: '/system/user/simple-user-by-userType?type=' + params }) +} /** * 查询审核列表 @@ -117,7 +113,7 @@ export const getExamieList = (audit: number) => { * 审核用户 */ export function examineUser(data) { - return request.put({url: '/system/user/user_audit', data}) + return request.put({ url: '/system/user/user_audit', data }) } // 专管员列表 @@ -129,3 +125,11 @@ export const getEnterpriseManager = () => { export const deptByMenu = () => { return request.get({ url: '/system/user/deptByMenu' }) } + + +/** + * 获取企业部门列表 + */ +export const getDeptByEnterprise = () => { + return request.get({ url: '/system/user/enterprise_manager_dept_list' }) +} \ No newline at end of file diff --git a/src/components/ContentWrap/src/ContentWrap.vue b/src/components/ContentWrap/src/ContentWrap.vue index 8847219..ac58464 100644 --- a/src/components/ContentWrap/src/ContentWrap.vue +++ b/src/components/ContentWrap/src/ContentWrap.vue @@ -16,7 +16,7 @@ defineProps({