能效诊断
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
//公共api
|
||||
import myAxios from "./axios";
|
||||
import myAxios2 from "./axios2";
|
||||
const sx = process.env.VUE_APP_CITY_TYPE == 'sx'?'/ferry_service/ferryController/conveyor':''
|
||||
|
||||
/**
|
||||
* 查询系统码表
|
||||
* @param data 其中包括 codeSortId codeType 后端定义的枚举id及类型
|
||||
*/
|
||||
export function getCode(data) {
|
||||
return myAxios({
|
||||
url: `${sx}/energy-effcicency-net-service/nxzdPCodeYcControllerNet/list`, //后端接口路由
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 查询系统码表 -- 地区
|
||||
* @param data 暂时不用传其他数据,如果获取到客户/客户经理所在地需要传
|
||||
*/
|
||||
export function getOrgList() {
|
||||
return myAxios({
|
||||
url: `${sx}/energy-effcicency-net-service/area/queryAreaTree`, //后端接口路由
|
||||
method: 'post',
|
||||
data: {
|
||||
id: '123'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
//获取用户信息
|
||||
export function getUserInfo(params) {
|
||||
return myAxios({
|
||||
url: `/admin/user/info`, //后端接口路由
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//获取ai
|
||||
export function getLoginInfoByGrsg(params) {
|
||||
return myAxios({
|
||||
url: `/thirdpart/grsg/loginGrsg`, //后端接口路由
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
//后端获取ai返回到前端
|
||||
export function getAi(params) {
|
||||
return myAxios({
|
||||
url:`${sx}/energy-effcicency-net-service/grsg/getAi`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//获取当前登录人是客户还是客户经理
|
||||
export function getUserLevel() {
|
||||
return myAxios({
|
||||
url: `${sx}/energy-effcicency-net-service/nxzdCustomerBasicInfoNet/getLoginRole`, //后端接口路由
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
//获取返回base64
|
||||
export function downReportTime(data) {
|
||||
return myAxios2({
|
||||
url: `${sx}/energy-effcicency-net-service/nxzdReportTemplaNet/downReportTime`, //后端接口路由
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 保存日志
|
||||
export function saveLog(data) {
|
||||
return myAxios({
|
||||
url: `${sx}/energy-effcicency-net-service/log/saveLog`, //后端接口路由
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user