355 lines
13 KiB
TypeScript
355 lines
13 KiB
TypeScript
import { ResPage, User } from "@/api/types/common";
|
||
// import { BASEURL } from "@/api/config/servicePort";
|
||
import http from "@/api";
|
||
import { ReqAiMonitorDev, ResAiMonitorDev, ReqAiadd, ResAiadd } from "@/api/types/government/AIwaring";
|
||
import type { ResAiProjectPage, ResAiEngineerPage } from "@/api/types/government/AIwaring";
|
||
|
||
const BASEURL = import.meta.env.VITE_API_URL;
|
||
|
||
/**
|
||
* @name 企业
|
||
*/
|
||
|
||
// 查询工程列表
|
||
export const getengineeringList = (params: ResAiEngineerPage | {}) => {
|
||
return http.post(BASEURL + `/ent/engineering/list`, params);
|
||
};
|
||
|
||
// 用户管理 !!!!!!!!!!!!!!!!!
|
||
// 角色管理!!!!!!!!
|
||
export const getRoleList = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/systemRole/page`, params);
|
||
};
|
||
// 新增角色 添加系统角色信息
|
||
export const addRole = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemRole/add`, params);
|
||
};
|
||
// 编辑系统角色信息
|
||
export const editRole = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemRole/edit`, params);
|
||
};
|
||
// 删除系统角色信息
|
||
export const deleteRole = (params: { roleId: number }) => {
|
||
return http.post(BASEURL + `/ent/systemRole/delete`, params);
|
||
};
|
||
// 编辑角色权限
|
||
export const editRolePermissions = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemRole/editMenu`, params);
|
||
};
|
||
// 上下两个错误 具体看后续
|
||
// 通过id查询系统角色信息
|
||
export const getSystemRole = (params: { id: number }) => {
|
||
return http.post(BASEURL + `/ent/systemRole/queryById`, params);
|
||
};
|
||
// 获取树形模块、菜单全部信息
|
||
export const getTreemRoleList = () => {
|
||
return http.get(BASEURL + `/xmgl/baseMenu/queryAll`);
|
||
};
|
||
// 列表查询系统角色信息 这里用来用户管理的下拉框显示
|
||
export const getRoleNamelist = (params: { state: number | string }) => {
|
||
return http.post(BASEURL + `/ent/systemRole/list`, params);
|
||
};
|
||
|
||
// 部门管理!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||
// 层级查询政府内部部门信息
|
||
export const getTreeDeptList = () => {
|
||
return http.get(BASEURL + `/ent/systemDept/tree`);
|
||
};
|
||
// 列表查询政府内部部门信息
|
||
export const getTreeList = (params?: { deptId: number | string; status: number }) => {
|
||
return http.post(BASEURL + `/ent/systemDept/list`, params);
|
||
};
|
||
// 新增角色 添加政府内部部门信息
|
||
export const addTreeDeptMent = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemDept/add`, params);
|
||
};
|
||
// 编辑政府内部部门信息
|
||
export const editTreeDeptMent = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemDept/edit`, params);
|
||
};
|
||
// 删除系统用户表信息
|
||
export const delTreeDeptMent = (params: { deptId: number }) => {
|
||
return http.post(BASEURL + `/ent/systemDept/delete`, params);
|
||
};
|
||
// 通过id查询系统菜单信息
|
||
export const getTreeByIdList = (params: { roleId: number | string }) => {
|
||
return http.post(BASEURL + `/xmgl/baseMenu/queryByRole`, params);
|
||
};
|
||
|
||
// 用户管理!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||
export const getUserPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/systemUser/page`, params);
|
||
};
|
||
// 新增角色 添加系统用户表信息
|
||
export const addUser = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemUser/add`, params);
|
||
};
|
||
// 编辑
|
||
export const editUser = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/systemUser/edit`, params);
|
||
};
|
||
// 删除系统用户表信息
|
||
export const deleteUser = (params: { userId: number }) => {
|
||
return http.post(BASEURL + `/ent/systemUser/delete`, params);
|
||
};
|
||
|
||
// AI预警!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||
|
||
// AI监控管理!!!!!!!!!
|
||
export const getAIMonitoringPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/aiMonitorDev/page`, params);
|
||
};
|
||
// 编辑
|
||
export const editAImap = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorDev/edit`, params);
|
||
};
|
||
// 删除
|
||
export const deleteAImap = (params: { aiMonitorId: number }) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorDev/delete`, params);
|
||
};
|
||
// 新增角色
|
||
export const addAImap = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorDev/add`, params);
|
||
};
|
||
|
||
// 报警记录!!!!!!!!!!!!!!!!
|
||
// 分页列表查询AI报警记录信息
|
||
export const getAIAlarmPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/aiMonitorAlarm/page`, params);
|
||
};
|
||
// 报警记录的去整改
|
||
export const addAIrecords = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorAlarm/addQuestion`, params);
|
||
};
|
||
|
||
// 通过id查询AI预警整改记录信息
|
||
export const getIdAIrecords = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorAlarm/queryById`, params);
|
||
};
|
||
|
||
// 分页列表查询AI预警工程信息
|
||
export const getAIengineeringPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/aiMonitorAlarm/engineeringPage`, params);
|
||
};
|
||
// 分页列表查询AI报警记录信息
|
||
export const getAIQuestionPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/aiMonitorAlarm/page`, params);
|
||
};
|
||
// 列表查询AI预警设备管理信息
|
||
export const getAiMonitorDev = (params: ReqAiMonitorDev) => {
|
||
return http.post<ResPage<ResAiMonitorDev>>(BASEURL + `/ent/aiMonitorDev/list`, params);
|
||
};
|
||
|
||
// 整改记录!!!!!!!!!!!!!!
|
||
// 分页列表查询
|
||
// 删除
|
||
export const deleteAIrecords = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorAlarm/delete`, params);
|
||
};
|
||
// 问题整改
|
||
export const editAIrecords = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/aiMonitorAlarm/edit`, params);
|
||
};
|
||
|
||
// 扬尘监控!!!!!!!!!!!!!!!!!
|
||
// 扬尘管理!!!!!!!!!!
|
||
export const getDustManagementPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/environmentDev/page`, params);
|
||
};
|
||
// 添加
|
||
export const addDustManagement = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/environmentDev/add`, params);
|
||
};
|
||
// 编辑
|
||
export const editDustManagement = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/environmentDev/edit`, params);
|
||
};
|
||
// 删除
|
||
export const deleteDustManagement = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/environmentDev/delete`, params);
|
||
};
|
||
|
||
// 扬尘实时数据!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||
export const getRealTimePage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/dustNoiseData/page`, params);
|
||
};
|
||
|
||
// 报警台账!!!!!!!!!!!!!!!!!!!!!!!
|
||
export const getLedgerPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/environmentAlarm/page`, params);
|
||
};
|
||
// 处理
|
||
export const editLedger = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/environmentAlarm/edit`, params);
|
||
};
|
||
|
||
// 视频监控!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||
export const getvideoManagementPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/monitorDev/page`, params);
|
||
};
|
||
// 添加
|
||
export const addvideoManagementment = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/monitorDev/add`, params);
|
||
};
|
||
// 编辑
|
||
export const editvideoManagement = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/monitorDev/edit`, params);
|
||
};
|
||
// 删除
|
||
export const deletevideoManagement = (params: { monitorId: string }) => {
|
||
return http.post(BASEURL + `/ent/monitorDev/delete`, params);
|
||
};
|
||
|
||
// 实时视频 !!!!!!!!!!!!!!!!
|
||
// 获取工程监控点树形列表
|
||
export const getvideoEngTreeList = (params: {}) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/monitorDev/tree`, params);
|
||
};
|
||
|
||
// 抓拍记录!!!!!!!!
|
||
// 分页列表查询视频管理表信息
|
||
export const getVideoQuestionPage = (params: User.ReqUserParams) => {
|
||
return http.post<ResPage<User.ResUserList>>(BASEURL + `/ent/monitorQuestion/page`, params);
|
||
};
|
||
// 问题整改
|
||
export const editmonitorQuestion = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/monitorQuestion/edit`, params);
|
||
};
|
||
// 删除视频抓拍记录信息
|
||
export const delmonitorQuestion = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/monitorQuestion/delete`, params);
|
||
};
|
||
// 通过id查询视频抓拍记录信息
|
||
export const getQuestionDetail = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/monitorQuestion/queryById`, params);
|
||
};
|
||
|
||
// 劳务实名制-----
|
||
// 参建单位新增
|
||
export const addBuildUnit = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/company/add`, params);
|
||
};
|
||
// 参建单位分页列表
|
||
export const getBuildUnitList = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/company/page`, params);
|
||
};
|
||
// 参建单位列表
|
||
export const getBuildUnitAll = (params: any) => {
|
||
return http.post(BASEURL + `/ent/company/list`, params);
|
||
};
|
||
// 班组管理分页列表
|
||
export const getClassGroupList = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/teamInfo/page`, params);
|
||
};
|
||
// 班组管理列表
|
||
export const getClassGroupAll = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/teamInfo/list`, params);
|
||
};
|
||
// 班组管理新增
|
||
export const addClassGroup = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/teamInfo/add`, params);
|
||
};
|
||
// 班组管理详情
|
||
export const classGroupInfo = (params: any) => {
|
||
return http.post(BASEURL + `/ent/teamInfo/queryById`, params);
|
||
};
|
||
// 班组管理编辑
|
||
export const updateClassGroup = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/teamInfo/edit`, params);
|
||
};
|
||
// 班组管理删除
|
||
export const deleteClassGroup = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/teamInfo/delete`, params);
|
||
};
|
||
// 工种管理分页列表
|
||
export const getworkTypeList = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/workerType/page`, params);
|
||
};
|
||
// 工种管理列表
|
||
export const getworkTypeAll = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/workerType/list`, params);
|
||
};
|
||
// 工种管理新增
|
||
export const addWorkType = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/workerType/add`, params);
|
||
};
|
||
// 工种管理编辑
|
||
export const updateWorkType = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/workerType/edit`, params);
|
||
};
|
||
// 工种管理删除
|
||
export const deleteWorkType = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/workerType/delete`, params);
|
||
};
|
||
// 人员管理新增
|
||
export const addMember = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/workerInfo/add`, params);
|
||
};
|
||
// 人员管理分页列表
|
||
export const getMemberList = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/workerInfo/page`, params);
|
||
};
|
||
|
||
// 人员管理详情
|
||
export const memberInfo = (params: any) => {
|
||
return http.post(BASEURL + `/ent/workerInfo/queryById`, params);
|
||
};
|
||
|
||
// 人员管理编辑
|
||
export const updateMember = (params: any) => {
|
||
return http.post(BASEURL + `/ent/workerInfo/edit`, params);
|
||
};
|
||
|
||
// 考勤设备管理分页列表
|
||
export const equipmentList = (params: any) => {
|
||
return http.post(BASEURL + `/ent/attendanceDev/page`, params);
|
||
};
|
||
// 考勤设备管理新增
|
||
export const addEquipment = (params: any) => {
|
||
return http.post(BASEURL + `/ent/attendanceDev/add`, params);
|
||
};
|
||
// 考勤设备管理编辑
|
||
export const updateEquipment = (params: any) => {
|
||
return http.post(BASEURL + `/ent/attendanceDev/edit`, params);
|
||
};
|
||
// 考勤设备管理删除
|
||
export const deleteEquipment = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/attendanceDev/delete`, params);
|
||
};
|
||
|
||
// 考勤统计分页列表
|
||
export const statisticsList = (params: any) => {
|
||
return http.post(BASEURL + `/ent/workerInfo/attendStat`, params);
|
||
};
|
||
// 考勤统计明细数据
|
||
export const statisticsDetail = (params: any) => {
|
||
return http.post(BASEURL + `/ent/workerAttendance/getById`, params);
|
||
};
|
||
// 质量监督执法------
|
||
// 检查台账顶部统计信息
|
||
export const statisticsInfo = () => {
|
||
return http.get(BASEURL + `/ent/inspectRecord/stat`);
|
||
};
|
||
// 检查台账表格
|
||
export const statisticsTable = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/inspectRecord/page`, params);
|
||
};
|
||
// 查看整改相关详细信息
|
||
export const relativeInfo = (params: { id: string }) => {
|
||
return http.post(BASEURL + `/ent/inspectRecord/queryById`, params);
|
||
};
|
||
// 查看整改情况时间轴列表
|
||
export const timeLineData = (params: { inspectQuestionId: string }) => {
|
||
return http.post(BASEURL + `/ent/inspectQuestionExamine/list`, params);
|
||
};
|
||
|
||
// 提交整改
|
||
export const submitReform = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/inspectQuestionExamine/save`, params);
|
||
};
|
||
|
||
// 整改完成,全部提交审核
|
||
export const submitAll = (params: FormData) => {
|
||
return http.post(BASEURL + `/ent/inspectRecord/apply`, params);
|
||
};
|