四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

103 lines
1.8 KiB

export const getLoginUrl = () => {
return `/wxLogin`;
};
export const getLogoutUrl = () => {
return `/logout`;
};
// 获取所有部门用户列表
export const getAllDepUsers = () => {
return `/allDepUsers`;
};
// 获取所有用户列表
export const getUsers = () => {
return `/user`;
};
// 巡查上报
export const postReport = () => {
return `/report`;
};
// 获取上报列表
export const getReportList = () => {
return `/report/list`;
};
// 获取上报详情
export const getReportDetail = id => {
return `/report/${id}/detail`;
};
// 删除上报
export const delReport = id => {
return `/report/${id}`;
};
// 修改密码
export const putPassword = id => {
return `/department/user/${id}/password`;
};
// 获取道路路段
export const getRoadSection = () => {
return `/road/section`;
};
// 上传图片
export const postImage = () => {
return `/attachments/report`;
};
//行业查询
export const getIndustryUrl = () => {
return `/elec/business/industry`
}
//项目名称查询
export const getProject = () => {
return `/project`
}
//待办事项提交
export const postHandle = reportId => {
return `/report/${reportId}/handle`;
};
// 道路抽查列表
export const getRoadSpotList = () => {
return `/road/spot/list`;
};
// 道路抽查详情
export const getRoadSpotDetail = () => {
return `/road/spot/detail`;
};
// 获取道路
export const roadUrl = () => {
return `/road`;
};
// 调整已抽查的道路
export const roadSpotChange = () => {
return `/road/spot/change`;
};
// 开始抽取
export const roadSpotPrepare = () => {
return `/road/spot/prepare`;
};
// 提交抽查
export const roadSpotConfirm = () => {
return `/road/spot/confirm`;
};
// 获取抽查城镇
export const getTownUrl = () => {
return `/town`;
};