123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- /**
- * 数据中台通用接口文档
- */
- import httputils from "@/api/httputils";
- const baseApi = "/datacenter";
- // 创建项目
- export function projectCreate(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/project/create`, postParams);
- }
- // 查询项目信息
- export function projectQuery(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/project/query`, postParams);
- }
- // 更新项目信息
- export function projectUpdate(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/project/update`, postParams);
- }
- // 查询建筑信息
- export function buildingQuery(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/building/query`, postParams);
- }
- // 查询建筑信息
- export function floorQuery(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/floor/query`, postParams);
- }
- // 字典查询
- export function dictCategoryQuery(postParams: any): any {
- return httputils.postJson(`${baseApi}/dict/category`, postParams);
- }
- // 查询项目下类型的信息点-->编辑器 空间功能类型 列表-->自己转成树
- export function dictQuery(postParams: any): any {
- // postParams:{
- // "filters": "code='roomFuncType'",
- // "type": "FunctionZone"
- // }
- return httputils.postJson(`${baseApi}/dict/query`, postParams);
- }
- // 查询空间实例
- export function PartiInstancQuery(postParams: any): any {
- // postParams:{
- // "filters": "code='roomFuncType'",
- // "type": "FunctionZone"
- // }
- return httputils.postJson(`${baseApi}/object/zone/query`, postParams);
- }
- // 查询设备信息
- export function queryEquip(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/equip/query`, postParams)
- }
- // 根据id删除设备信息
- export function deleteEquip(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/equip/delete`, postParams)
- }
- // 创建设备信息
- export function createEquip(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/equip/create`, postParams)
- }
- // 统计所有的设备类型
- export function allDevices(postParams: any) {
- return httputils.postJson(`${baseApi}/dict/category`, postParams)
- }
- // 更新设备信息
- export function updateEquip(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/equip/update`, postParams)
- }
- // 导出设备
- export function exportEquip(getParams: any): any {
- return httputils.getDownload(`${baseApi}/object/equip/export`, getParams)
- }
- // 查询系统信息
- export function querySystem(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/system/query`, postParams)
- }
- // 查询空间信息
- export function queryZone(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/zone/query`, postParams)
- }
- // 查询元空间信息
- export function queryIspace(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/ispace/query`, postParams)
- }
- // 创建空间
- export function createZone(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/zone/create`, postParams)
- }
- // 更新空间
- export function updateZone(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/zone/update`, postParams)
- }
- // 更新空间
- export function deleteZone(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/zone/delete`, postParams)
- }
- // 查询设备统计
- export function queryCount(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/equip/count`, postParams)
- }
- // 查询系统统计
- export function queryCountSystem(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/system/count`, postParams)
- }
- // 创建系统信息
- export function createSystem(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/system/create`, postParams)
- }
- // 更新系统信息
- export function updateSystem(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/system/update`, postParams)
- }
- // 查询空间信息
- export function zoneQuery(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/zone/query`, postParams)
- }
- // 查询空间统计
- export function queryCountSpace(postParams: any): any {
- return httputils.postJson(`${baseApi}/object/zone/count`, postParams)
- }
- // 查询关系总览
- export function relationshipOverview(postParams: any): any {
- return httputils.postJson(`${baseApi}/rel/graphic/overview`, postParams)
- }
- // 查询关系数量
- export function relationshipCount(postParams: any): any {
- return httputils.postJson(`${baseApi}/rel/graphic/query/count`, postParams)
- }
- // 查看关系相关的数据类型
- export function relToType(getParams: any) {
- return httputils.getJson(`${baseApi}/rel/graphic/relToType`, getParams)
- }
- // 查询关系数据
- export function relManualQuery(postParams: any) {
- return httputils.postJson(`${baseApi}/rel/manual/query`, postParams)
- }
- // 添加关系数据
- export function relAdd(postParams: any) {
- return httputils.postJson(`${baseApi}/rel/manual/add`, postParams)
- }
- // 删除关系数据
- export function relDel(postParams: any) {
- return httputils.postJson(`${baseApi}/rel/manual/del`, postParams)
- }
- // 关系计算
- export function relationCalc(postParams: any) {
- const url = `${baseApi}/relation-calc${postParams.requestUrl}?objectTypes=${postParams.objectTypes}&graphCode=${postParams.graphCode}&relType=${postParams.relType}`
- return httputils.postJson(url, {})
- }
- // 更新计算时间
- export function updateCalcTime(getParams: any) {
- const url = `${baseApi}/rel/graphic/updateCalcTime?graphCode=${getParams.graphCode}&relType=${getParams.relType}&computingTime=${getParams.computingTime}`
- return httputils.getJson(url, {})
- }
- // execl上传
- export function importGrahpic(postParams: any) {
- return httputils.postJson(`${baseApi}/rel/graphic/import`, postParams)
- }
- // 导出Execl
- export function exportGraphic(getParams: any) {
- const url = `${baseApi}/rel/graphic/export`
- return httputils.getJson(url, getParams)
- }
|