import { httpGET, httpPOST } from './common/httpFetch'
|
/**
|
* @description 获取地图列表
|
* @param { string } orgId 分库orgId
|
* @param { string } start 分页起始
|
* @param { string } name 地图名称述模糊查询
|
* @param { string } length 每页条数
|
* @param { string } modules 授权系统
|
*/
|
export const getMapList = body => {
|
return httpGET('data/api-d/map/findMapList', {
|
body
|
})
|
}
|
/**
|
* @description 查询地图详情
|
* @param { string } id 地图id
|
*/
|
export const getMapInfo = body => {
|
return httpGET('data/api-d/map/findById', {
|
body
|
})
|
}
|
/**
|
* @description 地图添加
|
* @param { string } orgId 分库orgId
|
* @param { string } name 地图名称
|
* @param { string } modules 应用模块 应用于模块如:,checks,
|
* @param { string } url 路径
|
* @param { string } no 编号
|
*/
|
export const addMap = body => {
|
return httpPOST('data/api-d/map/add', {
|
body
|
})
|
}
|
/**
|
* @description 地图编辑
|
* @param { string } id 地图id
|
* @param { string } orgId 分库orgId
|
* @param { string } name 地图名称
|
* @param { string } modules 应用模块 应用于模块如:,checks,
|
* @param { string } url 路径
|
* @param { string } no 编号
|
*/
|
export const updateMap = body => {
|
return httpPOST('data/api-d/map/update', {
|
body
|
})
|
}
|
/**
|
* @description 地图删除
|
* @param { string } id 地图id
|
*/
|
export const delMap = body => {
|
return httpGET('data/api-d/map/delete', {
|
body
|
})
|
}
|
|
/* 地图设备开始 */
|
|
/**
|
* @description 获取未描点设备列表
|
* @param { string } orgId 分库orgId
|
* @param { string } deviceType 设备类型
|
* @param { string } deviceName 设备名称
|
* @param { string } authorizationSystem 授权系统
|
*/
|
export const getNoDrawPointList = body => {
|
return httpGET('data/api-d/mapDevice/findNoDrawPointList', {
|
body
|
})
|
}
|
/**
|
* @description 获取已描点设备列表
|
* @param { string } orgId 分库orgId
|
* @param { string } deviceType 设备类型
|
* @param { string } deviceName 设备名称
|
* @param { string } authorizationSystem 授权系统
|
*/
|
export const getDrawPointList = body => {
|
return httpGET('data/api-d/mapDevice/findDrawPointList', {
|
body
|
})
|
}
|
|
/**
|
* @description 设备地图保存(添加保存公用)
|
* @param { string } orgId 分库orgId
|
* @param { string } id 地图id
|
* @param { string } detailList 设备列表
|
* [{
|
"deviceId":"6",
|
"position":"{\"x\":400,\"y\":300}"
|
},{
|
"deviceId":"7",
|
"position":"{\"x\":500,\"y\":300}"
|
},{
|
"deviceId":"8",
|
"position":"{\"x\":600,\"y\":300}"
|
},{
|
"deviceId":"9",
|
"position":"{\"x\":400,\"y\":400}"
|
},{
|
"deviceId":"10",
|
"position":"{\"x\":600,\"y\":400}"
|
}]
|
*/
|
export const saveMapDevice = body => {
|
return httpPOST('data/api-d/mapDevice/add', {
|
body
|
})
|
}
|
|
/**
|
* @description 根据地图id查询已描点设备 (设备地图回显)
|
* @param { string } orgId 分库orgId
|
* @param { string } mapId 地图id
|
*/
|
export const getMapDeviceInfo = body => {
|
return httpGET('data/api-d/mapDevice/findDrawPointListByMapId', {
|
body
|
})
|
}
|