|
|
|
'use strict';
|
|
|
|
import request from 'superagent';
|
|
|
|
|
|
|
|
export const ApiTable = {
|
|
|
|
login: 'login',
|
|
|
|
logout: 'logout',
|
|
|
|
|
|
|
|
getEnterprisesMembers: 'enterprises/{enterpriseId}/members',
|
|
|
|
|
|
|
|
//组织管理-用户管理-部门
|
|
|
|
getDepMessage: 'department',
|
|
|
|
createDepMessage: 'department',
|
|
|
|
updateDepMessage: 'department',
|
|
|
|
delDepMessage: 'department/{depId}',
|
|
|
|
//组织管理-用户管理-用户
|
|
|
|
getDepUser: 'department/{depId}/user',
|
|
|
|
createUser: 'department/user',
|
|
|
|
updateUser: 'department/user/{userId}',
|
|
|
|
delUser: 'department/user/{userIds}',
|
|
|
|
|
|
|
|
resetPwd: 'department/user/{userId}/password',
|
|
|
|
|
|
|
|
|
|
|
|
//用户权限
|
|
|
|
getResource: 'resource',
|
|
|
|
getUserResource: 'user/resource',
|
|
|
|
postUserRes: 'user/resource',
|
|
|
|
|
|
|
|
//报表配置
|
|
|
|
allAreas: 'allAreas',
|
|
|
|
addReportConfig: 'report/config',
|
|
|
|
getReportConfig: 'report/config',
|
|
|
|
editReportConfig: 'report/{reportId}/config',
|
|
|
|
delReportConfig: 'report/{reportId}/config',
|
|
|
|
|
|
|
|
// 报表编辑
|
|
|
|
getReportRectify: 'report/rectify',
|
|
|
|
getReportRectifyDetail: 'report/rectify/detail',
|
|
|
|
compileReportRectifyDetail: 'report/rectify/detail',
|
|
|
|
|
|
|
|
//运政管理
|
|
|
|
getOperaTional:'vehicle',
|
|
|
|
getSpecificVehicle:'vehicle/specific',
|
|
|
|
getHouseholds:'vehicle/business',
|
|
|
|
//道路管理
|
|
|
|
getRoadway:'road',
|
|
|
|
//桥梁管理
|
|
|
|
getBridge:'bridge',
|
|
|
|
//工程数据
|
|
|
|
getProject:'project',
|
|
|
|
|
|
|
|
//道路统计
|
|
|
|
getBgroadstatistics:"build/road_state",
|
|
|
|
|
|
|
|
//治超监测点处理数据
|
|
|
|
getzhichaomanager:'manage/overspeed/processed',
|
|
|
|
|
|
|
|
//获取治超详情数据
|
|
|
|
getzhichaodetail:'/manage/overspeed'
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const RouteTable = {
|
|
|
|
apiRoot: '/api/root',
|
|
|
|
fileUpload: '/_upload/new',
|
|
|
|
cleanUpUploadTrash: '/_upload/cleanup',
|
|
|
|
};
|