request.js 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634
  1. import fetch from './fetch'
  2. import { api, physics, business, venders, baseUrl, zone } from './config.js'
  3. import http from './httpUtil'
  4. let arithmetic = '/arithmetic'
  5. var Comming = 'revit'
  6. //获取打印标签模板test
  7. export function getTest() {
  8. return fetch({ method: 'GET', url: `${api}/service/template/note_template` })
  9. }
  10. //查看扫楼日志接口
  11. export function getBuildLog(
  12. param
  13. ) {
  14. let data = {
  15. "BeginTime": param.startTime,
  16. "Comming": Comming,
  17. "EndTime": param.endTime,
  18. "Filter": param.filter,
  19. "PageNum": param.pageNum,
  20. "PageSize": param.pageSize,
  21. "ProjId": param.ProjId,
  22. "UserId": param.UserId
  23. }
  24. return fetch({ method: 'POST', url: `${api}/service/user_log/query`, data })
  25. }
  26. //下载扫楼日志接口
  27. export function dowmloadLog(
  28. param
  29. ) {
  30. let data = {
  31. "BeginTime": param.startTime,
  32. "Comming": Comming,
  33. "EndTime": param.endTime,
  34. "Filter": param.filter,
  35. "ProjId": param.ProjId,
  36. "UserId": param.UserId
  37. }
  38. return fetch({ method: 'POST', url: `${api}/service/user_log/export`, data })
  39. }
  40. //获取扫楼用户表格
  41. export function getUser(
  42. param
  43. ) {
  44. let data = {
  45. "Comming": Comming,
  46. "Filter": param.filter,
  47. "PageNum": param.pageNum,
  48. "PageSize": param.pageSize,
  49. "ProjId": param.ProjId,
  50. "UserId": param.UserId
  51. }
  52. return fetch({ method: 'POST', url: `${api}/service/user/query`, data })
  53. }
  54. //修改扫楼用户
  55. export function loadUser(
  56. param
  57. ) {
  58. let data = {
  59. "Comming": Comming,
  60. "ProjId": param.ProjId,
  61. "UserId": param.UserId,
  62. "UserList": param.UserList
  63. }
  64. return fetch({ method: 'POST', url: `${api}/service/user/update`, data })
  65. }
  66. //删除扫楼用户
  67. export function delUser(
  68. param
  69. ) {
  70. let data = {
  71. "Comming": Comming,
  72. "ProjId": param.ProjId,
  73. "UserId": param.UserId,
  74. "UserList": param.UserList
  75. }
  76. return fetch({ method: 'POST', url: `${api}/service/user/delete`, data })
  77. }
  78. //添加扫楼用户
  79. export function addUser(
  80. param
  81. ) {
  82. let data = {
  83. "Comming": Comming,
  84. "ProjId": param.ProjId,
  85. "UserId": param.UserId,
  86. "User": param.User
  87. }
  88. return fetch({ method: 'POST', url: `${api}/service/user/create`, data })
  89. }
  90. //根据项目ID获得建筑列表
  91. export function getBuildSelect(param) {
  92. let data = {
  93. "Comming": Comming,
  94. "ProjId": param.ProjId,
  95. "UserId": param.UserId,
  96. }
  97. return fetch({ method: 'POST', url: `${api}/service/building/query`, data })
  98. }
  99. //根据建筑ID获取楼层系信息
  100. export function getFloor(param) {
  101. let data = {
  102. "Comming": Comming,
  103. "ProjId": param.ProjId,
  104. "UserId": param.UserId,
  105. "BuildId": param.BuildId
  106. }
  107. return fetch({ method: 'POST', url: `${api}/service/building/floor`, data })
  108. }
  109. //获取异常资产接口
  110. export function getErrAssets(param) {
  111. let data = {
  112. "Comming": Comming,
  113. "ProjId": param.ProjId,
  114. "UserId": param.UserId,
  115. "BuildId": param.BuildId,
  116. "PageNum": param.PageNum,
  117. "PageSize": param.PageSize,
  118. "Type": param.Type,
  119. "CodeType": param.CodeType
  120. }
  121. if (param.BuildId == 'all') {
  122. delete data.BuildId
  123. }
  124. if (!param.CodeType) {
  125. delete data.CodeType
  126. }
  127. return fetch({ method: 'POST', url: `${api}/service/fm/exception`, data })
  128. }
  129. //删除资产接口
  130. export function delErrAssets(param, paramList) {
  131. let data = {
  132. "Comming": Comming,
  133. "ProjId": param.ProjId,
  134. "UserId": param.UserId,
  135. "FmList": paramList
  136. }
  137. return fetch({ method: 'POST', url: `${api}/service/fm/delete`, data })
  138. }
  139. //根据选择的建筑楼层时间查询点位标签
  140. export function getPT(param) {
  141. let data = {
  142. "Comming": Comming,
  143. "BeginTime": param.BeginTime,
  144. "ProjId": param.ProjId,
  145. "UserId": param.UserId,
  146. "BeginTime": param.BeginTime,
  147. "EndTime": param.EndTime,
  148. "BuildId": param.BuildId,
  149. "FloorId": param.FloorId
  150. }
  151. if (data.FloorId == 'all') {
  152. delete data.FloorId
  153. } else if (data.FloorId == "noKnow") {
  154. data.FloorId = ""
  155. }
  156. return fetch({ method: 'POST', url: `${api}/service/fm/point_group`, data })
  157. }
  158. //查询点位标签信息/location-point/query
  159. export function locationPointQuery(param, success) {
  160. let url = `${baseUrl}/datacenter/location-point/query`;
  161. http.postJson(url, param, success)
  162. }
  163. //点位标签详情修改【数据中心接口】
  164. export function updateLocationPoint(param, success) {
  165. let url = `${baseUrl}/datacenter/location-point/update`;
  166. http.postJson(url, param, success)
  167. }
  168. //根据点位标签推荐业务空间
  169. export function zoneQueryByPoint(param, success) {
  170. let url = `${baseUrl}/equip-component/space/in-bdfl-zonespacebase?X=${param.X}&Y=${param.Y}`;
  171. http.postJson(url, param.data, success)
  172. }
  173. //扫楼作业-位置标签-删除图片
  174. export function deleteLocationImg(param, success) {
  175. let url = `${baseUrl}/datacenter/location-point/delete-image`;
  176. http.postJson(url, param, success)
  177. }
  178. //点位标签查看详情
  179. export function getPoint(param) {
  180. let data = {
  181. "Comming": Comming,
  182. "ProjId": param.ProjId,
  183. "UserId": param.UserId,
  184. "PointId": param.PointId,
  185. }
  186. return fetch({ method: 'POST', url: `${api}/service/point/query`, data })
  187. }
  188. //点位标签详情修改
  189. export function updatePoint(param) {
  190. let data = {
  191. "Comming": Comming,
  192. "ProjId": param.ProjId,
  193. "UserId": param.UserId,
  194. "PointList": [param.PointList],
  195. }
  196. return fetch({ method: 'POST', url: `${api}/service/point/update`, data })
  197. }
  198. //点击点位标签获取tab设备族列表
  199. export function getTabFamily(param) {
  200. let data = {
  201. "Comming": Comming,
  202. "ProjId": param.ProjId,
  203. "UserId": param.UserId,
  204. "BeginTime": param.BeginTime,
  205. "EndTime": param.EndTime,
  206. "FloorId": param.FloorId,
  207. "Checked": param.Checked,
  208. "BuildId": param.BuildId,
  209. "PointId": param.PointId
  210. }
  211. if (data.PointId == 'all') {
  212. delete data.PointId
  213. }
  214. if (data.FloorId == 'all') {
  215. delete data.FloorId
  216. } else if (data.FloorId == "noKnow") {
  217. data.FloorId = ""
  218. }
  219. return fetch({ method: 'POST', url: `${api}/service/fm/family_list`, data })
  220. }
  221. //获取表格数据的title
  222. export function getTableHeader(param) {
  223. let data = {
  224. "AppType": Comming,
  225. "Code": param.code,
  226. "ProjId": param.ProjId
  227. }
  228. return fetch({ method: 'POST', url: `${api}/service/dict/infocode_query`, data })
  229. }
  230. //获取表格主体内容
  231. export function getTableMain(param) {
  232. let data = {
  233. "BeginTime": param.BeginTime,
  234. "BuildId": param.BuildId,
  235. "Checked": param.Checked,
  236. "Comming": Comming,
  237. "EndTime": param.EndTime,
  238. "Family": param.Family,
  239. "FloorId": param.FloorId,
  240. "PageNum": param.PageNum,
  241. "PageSize": param.PageSize,
  242. "PointId": param.PointId,
  243. "ProjId": param.ProjId,
  244. "UserId": param.UserId
  245. }
  246. if (data.PointId == 'all') {
  247. delete data.PointId
  248. }
  249. if (data.Checked === '') {
  250. delete data.Checked
  251. }
  252. return fetch({ method: 'POST', url: `${api}/service/fm/query`, data })
  253. }
  254. export function getPointList(param, success) {
  255. let url = `${api}/service/point/queryByIdList`
  256. let data = param
  257. data.Comming = Comming
  258. http.postJson(url, data, success)
  259. }
  260. export function getdelMain(param) {
  261. let data = {
  262. "BeginTime": param.BeginTime,
  263. "BuildId": param.BuildId,
  264. "Checked": param.Checked,
  265. "CodeType": param.CodeType,
  266. "Comming": Comming,
  267. "EndTime": param.EndTime,
  268. "Family": param.Family,
  269. "FloorId": param.FloorId,
  270. "PageNum": param.PageNum,
  271. "PageSize": param.PageSize,
  272. "PointId": param.PointId,
  273. "ProjId": param.ProjId,
  274. "UserId": param.UserId
  275. }
  276. if (data.PointId == 'all') {
  277. delete data.PointId
  278. }
  279. if (data.Checked === '') {
  280. delete data.Checked
  281. }
  282. if (data.FloorId == 'all') {
  283. delete data.FloorId
  284. }
  285. return fetch({ method: 'POST', url: `${api}/service/fm/queryRevit`, data })
  286. }
  287. export function getTestEquire() {
  288. let data = {
  289. "Comming": "revit",
  290. "FloorId": "Fl110108000327d8f006c39f49feb40e24a7ef223232",
  291. "ProjId": "Pj1101080003",
  292. "UserId": "string"
  293. }
  294. return fetch({ method: 'POST', url: `${api}/service/fm/query`, data })
  295. }
  296. //批量更新表格数据
  297. export function upDateTableMain(param, paramList) {
  298. let data = {
  299. "Comming": Comming,
  300. "FmList": paramList,
  301. "ProjId": param.ProjId,
  302. "UserId": param.UserId
  303. }
  304. return fetch({ method: 'POST', url: `${api}/service/fm/update`, data })
  305. }
  306. //获取所有设备族/service/dict/equipment_family
  307. export function getAllFamily() {
  308. return fetch({ method: 'GET', url: `${api}/service/dict/equipment_family` })
  309. }
  310. //获取当前默认楼层/service/fm/default_floor
  311. export function defaultFloor(param) {
  312. let data = {
  313. "Comming": Comming,
  314. "ProjId": param.ProjId,
  315. "UserId": param.UserId
  316. }
  317. return fetch({ method: 'POST', url: `${api}/service/fm/default_floor`, data })
  318. }
  319. //物理世界新建岗位(设备系统)
  320. export function createPost(param) {
  321. let data = {
  322. "building_id": param.BuildId,
  323. "floor_id": param.BIMID,
  324. "equipment_category": param.category,
  325. "infos": {
  326. "BIMID": [
  327. { "value": param.BIMID }
  328. ],
  329. "BIMLocation": [
  330. { "value": param.BIMLocation }
  331. ]
  332. }
  333. }
  334. return fetch({ method: 'POST', url: `${godhand}/equipment/create?projectId=${param.perjectId}&secret=${param.secret}`, data })
  335. }
  336. //物理世界新建岗位(部件)
  337. export function createComponent(param) {
  338. let data = {
  339. "building_id": param.BuildId,
  340. "component_category": param.category,
  341. "floor_id": param.BIMID,
  342. "infos": {
  343. "BIMID": [
  344. { "value": param.BIMID }
  345. ],
  346. "BIMLocation": [
  347. { "value": param.BIMLocation }
  348. ]
  349. }
  350. }
  351. return fetch({ method: 'POST', url: `${physics}/component/create?projectId=${param.perjectId}&secret=${param.secret}`, data })
  352. }
  353. //通过岗位id查询元空间id
  354. export function getSpaceId(param) {
  355. let data = {
  356. "criterias": param.list
  357. }
  358. return fetch({ method: 'POST', url: `${physics}/relation/query?projectId=${param.perjectId}&secret=${param.secret}`, data })
  359. }
  360. //通过元空间id查询元空间名称
  361. export function getSpaceName(param) {
  362. let data = {
  363. "criterias": param.list
  364. }
  365. return fetch({ method: 'POST', url: `${physics}/object/batch_query?projectId=${param.perjectId}&secret=${param.secret}`, data })
  366. }
  367. //设备族修改显示接口
  368. export function setHeader(param) {
  369. let data = {
  370. "Comming": Comming,
  371. "InfoType": param.FamilyId,
  372. "InfopointCode": param.code,
  373. "ProjId": param.perjectId,
  374. "UserId": param.UserId,
  375. "Visible": param.Visible
  376. }
  377. return fetch({ method: 'POST', url: `${api}/service/dict/infopoint_visible`, data })
  378. }
  379. //获取头部接口
  380. export function getHeader(param) {
  381. let data = {
  382. "AppType": Comming,
  383. "Code": param.code,
  384. "ProjId": param.perjectId
  385. }
  386. // return fetch({ method: 'POST', url: `${api}/service/dict/equipment_family_info_header`, data })
  387. return fetch({ method: 'POST', url: `${api}/service/dict/infocode_query_header`, data })
  388. }
  389. /** 业务空间相关 */
  390. // 业务空间
  391. export function getSpaceHeader(param) {
  392. return fetch({ method: 'GET', url: `${physics}/infocode/query_property?projectId=${param.ProjId}&type=${param.code ? param.code : 'space'}&enrich=true` })
  393. }
  394. //获取某个业务空间下的
  395. export function getAllbusiness(param) {
  396. let data = null
  397. if (!!param.id) {
  398. data = {
  399. "criteria": {
  400. "id": param.id,
  401. "type": param.type
  402. }
  403. }
  404. } else {
  405. data = param.data
  406. }
  407. return fetch({ method: "POST", url: `${physics}/object/subset_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  408. }
  409. //通过BIMID获取物理世界id
  410. export function formBIMToPri(param) {
  411. let data = {
  412. "criteria": {
  413. "type": param.type,
  414. "BIMID": param.ids
  415. }
  416. }
  417. return fetch({ method: "POST", url: `${physics}/fast/object/in_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  418. }
  419. //获取业务空间楼层的关系
  420. export function getSpaceFloor(param) {
  421. return fetch({ method: "POST", url: `${business}/floor/tree?projectId=${param.ProjId}&secret=${param.secret}` })
  422. }
  423. //创建业务空间
  424. export function createBusiness(param) {
  425. let data = param.data
  426. return fetch({ method: "POST", url: `${physics}/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  427. // return fetch({ method: "POST", url: `/test/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  428. }
  429. //批量创建业务空间
  430. export function createBusinessList(param) {
  431. let data = param.data
  432. return fetch({ method: "POST", url: `${physics}/space/batch/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  433. }
  434. //更新业务空间
  435. export function updateBusiness(param) {
  436. let data = param.data
  437. return fetch({ method: "POST", url: `${physics}/object/batch_update?projectId=${param.ProjId}&secret=${param.secret}`, data })
  438. }
  439. //模糊搜索设备类型
  440. export function searchCode(param) {
  441. let data = param
  442. return fetch({ method: "POST", url: `${physics}/dict/query/equipment_all`, data })
  443. }
  444. //获取所有设备类型
  445. export function getEqCode() {
  446. return fetch({ method: "GET", url: `${physics}/dict/query/equipment_all` })
  447. }
  448. //批量删除业务空间
  449. export function delManySpace(param) {
  450. let data = param.data
  451. return fetch({ method: "POST", url: `${physics}/space/batch/delete?projectId=${param.ProjId}&secret=${param.secret}`, data })
  452. }
  453. //添加关系
  454. export function createRelation(param) {
  455. let data = param.data
  456. return fetch({ method: "POST", url: `${physics}/relation/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  457. }
  458. //获取图实例关系
  459. export function getGraphyId(param) {
  460. let data = {
  461. "graph_type": param.type
  462. }
  463. return fetch({ method: "POST", url: `${physics}/relation/graph_instance/get?projectId=${param.ProjId}&secret=${param.secret}`, data })
  464. }
  465. //查询业务空间
  466. export function getBussines(param) {
  467. let data = param.data
  468. return fetch({ method: "POST", url: `${physics}/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  469. // return fetch({ method: "POST", url: `/test/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  470. }
  471. //替代前一个接口
  472. export function getBussines2(param) {
  473. let data = param.data
  474. return fetch({ method: "POST", url: `${physics}/fast/object/in_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  475. }
  476. //查询业务空间下的元空间
  477. export function getRelation(param) {
  478. let data = param.criterias
  479. return fetch({ method: 'POST', url: `${physics}/relation/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  480. }
  481. //查询业务空间下的设备
  482. export function getSpaceEquip(param) {
  483. let data = param.data
  484. return fetch({ method: 'POST', url: `${business}/space/equip/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  485. }
  486. //删除关系实例
  487. export function deleteRelation(param) {
  488. let data = param.data
  489. return fetch({ method: 'POST', url: `${physics}/relation/delete?projectId=${param.ProjId}&secret=${param.secret}`, data })
  490. }
  491. //查询是否关联元空间的业务空间
  492. export function isSpaceBuss(param) {
  493. let data = param.data
  494. return fetch({ method: 'POST', url: `${business}/floor/space/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  495. }
  496. //查询所有提示
  497. export function getAllMess(param) {
  498. let data = {}
  499. return fetch({ method: 'POST', url: `${physics}/space/affected/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  500. }
  501. //删除提示
  502. export function deleteNotice(param) {
  503. let data = param.data
  504. return fetch({ method: 'POST', url: `${physics}/space/affected/delete_notice?projectId=${param.ProjId}&secret=${param.secret}`, data })
  505. }
  506. //模糊查询楼层下的设备
  507. export function getEquipSearch(param) {
  508. let data = param.data
  509. return fetch({ method: 'POST', url: `${business}/floor/equip/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  510. }
  511. export function getBussTypes(success) {
  512. http.getJson(`${physics}/infocode/business_space_type/query`, {}, success)
  513. }
  514. export function getBussTypes2() {
  515. return fetch({ method: 'GET', url: `${physics}/infocode/business_space_type/query` })
  516. }
  517. //验证元空间是否相邻
  518. export function isAbut(param) {
  519. let data = param.data
  520. return fetch({ method: 'POST', url: `${business}/space/abut?projectId=${param.ProjId}&secret=${param.secret}`, data })
  521. }
  522. /**算法接口 */
  523. export function strDiff(param) {
  524. let data = param
  525. return fetch({ method: 'POST', url: `${arithmetic}/str_diff`, data })
  526. }
  527. /********* 台账部分 厂商库接口 */
  528. //获取供应商列表
  529. export function getManuLib(param, success) {
  530. let data = param
  531. http.postJson(`${venders}/supplier/query`, data, success)
  532. }
  533. //查询所有供应商信息
  534. export function getLib(param) {
  535. let data = param
  536. return fetch({ method: 'POST', url: `${venders}/auxiliary/query/all`, data })
  537. }
  538. //查询资产的list
  539. export function getPropertyList(param, success) {
  540. let data = param.data
  541. let url = `${physics}/property/relation_query?projectId=${param.ProjId}&secret=${param.secret}`
  542. http.postJson(url, data, success)
  543. }
  544. //获取资产种族编码query/equipment_family
  545. export function getEquipmentFamily(success) {
  546. let url = `${physics}/dict/query/equipment_family`
  547. http.getJson(url, {}, success)
  548. }
  549. //删除资产
  550. export function delProperty(param, success) {
  551. let url = `${physics}/property/delete?projectId=${param.ProjId}&secret=${param.secret}`
  552. let data = param.data
  553. http.postJson(url, data, success)
  554. }
  555. //获取制定供应商下的供应合同编号
  556. export function getListForSupplier(param, success) {
  557. let url = `/venders-dp/supplier/property/query?projectId=${param.ProjId}&secret=${param.secret}`
  558. let data = param.data
  559. http.postJson(url, data, success)
  560. }
  561. //获取保单列表
  562. export function getListForGuarantee(param, success) {
  563. let url = `/venders-dp/insurance/contract/query`
  564. let data = param.data
  565. http.postJson(url, data, success)
  566. }
  567. //新建保单
  568. export function createGuarantee(param, success) {
  569. let url = `${venders}/insurance/contract/create `
  570. let data = param.data
  571. http.postJson(url, data, success)
  572. }
  573. //创建资产
  574. export function createProperty(param, success) {
  575. let url = `${physics}/property/create?projectId=${param.ProjId}&secret=${param.secret}`
  576. let data = param.data
  577. http.postJson(url, data, success)
  578. }
  579. //获取项目内[岗位]和[绑定岗位的资产]的数量
  580. export function getNumber(param, success) {
  581. let url = `${business}/equip/count?projectId=${param.ProjId}&secret=${param.secret}`
  582. let data = param.data
  583. http.postJson(url, data, success)
  584. }
  585. //获取项目内有实例的所有种族
  586. export function getFamilyList(param, success) {
  587. let url = `${business}/equip/type/list?projectId=${param.ProjId}&secret=${param.secret}`
  588. let data = param.data
  589. http.postJson(url, data, success)
  590. }
  591. //删除系统、设备
  592. export function delSystem(param, success) {
  593. let url = `${physics}/equipment/delete?projectId=${param.ProjId}&secret=${param.secret}`
  594. let data = param.data
  595. http.postJson(url, data, success)
  596. }
  597. //创建系统设备
  598. export function createSystem(param, success) {
  599. let url = `${physics}/equipment/create?projectId=${param.ProjId}&secret=${param.secret}`
  600. let data = param.data
  601. http.postJson(url, data, success)
  602. }
  603. //获取台账资产列表
  604. export function getBillPropList(param, success) {
  605. let url = `${business}/property/list?projectId=${param.ProjId}&secret=${param.secret}`
  606. let data = param.data
  607. http.postJson(url, data, success)
  608. }
  609. //台账获取设备列表
  610. export function getBillEquipList(param, success) {
  611. let url = `${business}/equip/list?projectId=${param.ProjId}&secret=${param.secret}`
  612. let data = param.data
  613. http.postJson(url, data, success)
  614. }
  615. //台账获取系统列表
  616. export function getBillSystemList(param, success) {
  617. let url = `${business}/system/list?projectId=${param.ProjId}&secret=${param.secret}`
  618. let data = param.data
  619. http.postJson(url, data, success)
  620. }
  621. //台账获取系统关联的设备
  622. export function getSysToEq(param, success) {
  623. let url = `${physics}/object/rel_query?projectId=${param.ProjId}&secret=${param.secret}`
  624. let data = param.data
  625. http.postJson(url, data, success)
  626. }
  627. //台账查询型号
  628. export function getSpecList(param, success) {
  629. let url = `${venders}/manufacturer/specification/query_spec`
  630. let data = param
  631. http.postJson(url, data, success)
  632. }
  633. //台账根据设备id创建岗位
  634. export function EqToAssets(param, success) {
  635. let url = `${physics}/property/create_by_equip?projectId=${param.ProjId}&secret=${param.secret}`
  636. let data = param.data
  637. http.postJson(url, data, success)
  638. }
  639. //获取设定参数和动态参数
  640. export function BeatchQueryParam(param, success) {
  641. let url = `${physics}/parameter/batch_query_param?projectId=${param.ProjId}&secret=${param.secret}`
  642. let data = param.data
  643. http.postJson(url, data, success)
  644. }
  645. export function BatchCreateSome(param, success) {
  646. let url = `${physics}/equipment/batch/create?projectId=${param.ProjId}&secret=${param.secret}`
  647. let data = param.data
  648. http.postJson(url, data, success)
  649. }
  650. export function delBatchList(param, success) {
  651. let url = `${physics}/equipment/batch/delete?projectId=${param.ProjId}&secret=${param.secret}`
  652. let data = param.data
  653. http.postJson(url, data, success)
  654. }
  655. //获取竖井类型
  656. export function getCenoteType(param, success) {
  657. let url = `${baseUrl}/datacenter/shaft/query-shaft-functype`
  658. http.postJson(url, param, success)
  659. }
  660. //获取竖井表格内容信息
  661. export function getCenoteTableData(param, success) {
  662. let url = `${baseUrl}/datacenter/shaft/query-with-count`
  663. http.postJson(url, param, success)
  664. }
  665. //查询竖井信息
  666. export function queryCenoteTableData(param, success) {
  667. let url = `${baseUrl}/datacenter/shaft/query`
  668. http.postJson(url, param, success)
  669. }
  670. //添加竖井信息
  671. export function createCenoteTableData(param, success) {
  672. let url = `${baseUrl}/datacenter/shaft/create`
  673. http.postJson(url, param, success)
  674. }
  675. //修改竖井信息
  676. export function updataCenoteTableData(param, success) {
  677. let url = `${baseUrl}/datacenter/shaft/update`
  678. http.postJson(url, param, success)
  679. }
  680. //删除竖井信息
  681. export function deleteCenoteTableData(param, success) {
  682. let url = `${baseUrl}/datacenter/shaft/delete`
  683. http.postJson(url, param, success)
  684. }
  685. //竖井关联元空间
  686. export function saveCenoteRelateSpace(param, success) {
  687. let url = `${baseUrl}/datacenter/shaft/relate-space`
  688. http.postJson(url, param, success)
  689. }
  690. //竖井关联的业务空间的楼层
  691. export function shaftSpaceBuildingQuery(param, success) {
  692. let url = `${baseUrl}/datacenter/shaft/shaft-zoneSpaceBaseTable-building`
  693. http.getJson(url, param, success)
  694. }
  695. //竖井关联的业务空间
  696. export function shaftSpaceQuery(param, success) {
  697. let url = `${baseUrl}/datacenter/shaft/shaft-zoneSpaceBaseTable?ShaftId=${param.ShaftId}`
  698. http.postJson(url, param.data, success)
  699. }
  700. //获取未和当前竖井关联的业务空间
  701. export function shaftUnlinkSpaceQuery(param, success) {
  702. let url = `${baseUrl}/datacenter/shaft/un-shaft-zoneSpaceBaseTable?ShaftId=${param.ShaftId}`
  703. http.postJson(url, param.data, success)
  704. }
  705. //竖井下的业务空间,竖井一对多,不覆盖
  706. export function linkShaftSpace(param, success) {
  707. let url = `${baseUrl}/datacenter/sh-contain-sp-base/link`
  708. http.postJson(url, param, success)
  709. }
  710. //删除竖井下的业务空间,只针对一个对象
  711. export function spaceInShaftUnlink(param, success) {
  712. let url = `${baseUrl}/datacenter/sh-contain-sp-base/unlink?type=${param.type}`
  713. http.postJson(url, param.data, success)
  714. }
  715. //获取租户表格内容信息
  716. export function getRentTableData(param, success) {
  717. let url = `${baseUrl}/datacenter/tenant/query-with-count`
  718. http.postJson(url, param, success)
  719. }
  720. //创建租户信息
  721. export function createRentTableData(param, success) {
  722. let url = `${baseUrl}/datacenter/tenant/create`
  723. http.postJson(url, param, success)
  724. }
  725. //修改租户信息
  726. export function updataRentTableData(param, success) {
  727. let url = `${baseUrl}/datacenter/tenant/update`
  728. http.postJson(url, param, success)
  729. }
  730. //删除租户信息
  731. export function deleteRentTableData(param, success) {
  732. let url = `${baseUrl}/datacenter/tenant/delete`
  733. http.postJson(url, param, success)
  734. }
  735. //关联分区空间
  736. export function saveRentRelateSpace(param, success) {
  737. let url = `${baseUrl}/datacenter/tenant/relate-space`
  738. http.postJson(url, param, success)
  739. }
  740. //扫楼创建资产
  741. export function createFmList(param, success) {
  742. let url = `${api}/service/fm/create`
  743. param.Comming = Comming
  744. http.postJson(url, param, success)
  745. }
  746. export function createAssetsList(param, success) {
  747. let url = `${api}/service/fm/create_list`
  748. param.Comming = Comming
  749. http.postJson(url, param, success)
  750. }
  751. export function getListForBuss(param, success) {
  752. let url = `${business}/space/ispace/equip/query?projectId=${param.ProjId}&secret=${param.secret}`
  753. let data = param.data
  754. http.postJson(url, data, success)
  755. }
  756. //获取产品list
  757. export function getProductList(param, success) {
  758. let url = `${venders}/manufacturer/product/queryByType`
  759. http.postJson(url, param, success)
  760. }
  761. //完全匹配的厂商信息
  762. export function getBasicMatch(param) {
  763. let data = param
  764. return fetch({ method: 'POST', url: `${venders}/basic/autoFillId`, data })
  765. }
  766. //设备清单-查询设备内容
  767. export function getEquipTableCon(param, success) {
  768. let url = `${baseUrl}/equip-component/equip-query/equip-components`;
  769. http.postJson(url, param, success)
  770. }
  771. //设备清单-查询当前设备下的部件分类
  772. export function getEquipPartsType(param, success) {
  773. let url = `${baseUrl}/equip-component/equip-query/components-count`;
  774. http.postJson(url, param, success)
  775. }
  776. //设备清单-查询当前设备类下的部件分类
  777. export function getPartsAllType(param, success) {
  778. let url = `${baseUrl}/equip-component/equip-query/equip-compon`;
  779. http.getJson(url, param, success)
  780. }
  781. //all - 查询数据字典 --列表表头
  782. export function getDataDictionary(param, success) {
  783. let url = `${baseUrl}/datacenter/data-dictionary/project/query?type=${param.type}`;
  784. let data = param.data
  785. http.postJson(url, data, success)
  786. }
  787. //all - 查询数据字典 --列表表头
  788. export function cacheDictionary(param, success) {
  789. let url = `${baseUrl}/datacenter/class-def/query-dict`;
  790. http.postJson(url, param, success)
  791. }
  792. //批量处理字典信息操作
  793. export function setInfoPoint(param, success) {
  794. let url = `${baseUrl}/datacenter/data-dictionary/project/dict-batch`;
  795. http.postJson(url, param, success)
  796. }
  797. //设置项目数据字典显隐 --列表表头
  798. export function setDataDictionary(param, success) {
  799. let url = `${baseUrl}/datacenter/data-dictionary/project/setting-dic-project`;
  800. http.postJson(url, param, success)
  801. }
  802. //设备清单 - 根据分类查询部件列表内容
  803. export function getEquipPartsCon(param, success) {
  804. let url = `${baseUrl}/equip-component/equip-query/components-property`;
  805. http.postJson(url, param, success)
  806. }
  807. //设备清单 - 新增部件
  808. export function createPart(param, success) {
  809. let url = `${baseUrl}/datacenter/component/create`;
  810. http.postJson(url, param, success)
  811. }
  812. //设备清单 - 删除部件
  813. export function deleteParts(param, success) {
  814. let url = `${baseUrl}/datacenter/component/delete?projectId=${param.projectId}`;
  815. let data = param.data;
  816. http.postJson(url, data, success)
  817. }
  818. //设备清单 - 更新部件
  819. export function updateParts(param, success) {
  820. let url = `${baseUrl}/datacenter/component/update?projectId=${param.projectId}`;
  821. let data = param.data;
  822. http.postJson(url, data, success)
  823. }
  824. //设备清单 - 创建设备
  825. export function createEquip(param, success) {
  826. let url = `${baseUrl}/datacenter/equip/create`;
  827. http.postJson(url, param, success)
  828. }
  829. //设备清单 - 创建设备-关联资产-关联系统
  830. export function createEquipAndProperty(param, success) {
  831. let url = `${baseUrl}/equip-component/equip-query/creat-equip-pro`;
  832. http.postJson(url, param, success)
  833. }
  834. //设备清单 - 更新设备
  835. export function updateEquip(param, success) {
  836. let url = `${baseUrl}/datacenter/equip/update`;
  837. http.postJson(url, param, success)
  838. }
  839. //设备清单 - 删除设备
  840. export function deleteEquip(param, success) {
  841. let url = `${baseUrl}/datacenter/equip/delete`;
  842. http.postJson(url, param, success)
  843. }
  844. //设备清单 - 查询系统关联专业 - 查询系统信息 - 查询系统所属专业类型
  845. export function queryLinkSys(param, success) {
  846. let url = `${baseUrl}/datacenter/general—system/query`;
  847. http.postJson(url, param, success)
  848. }
  849. //查询系统信息 - 建筑楼层 - 系统一对多
  850. export function querySysLinkBuild(param, success) {
  851. let url = `${baseUrl}/datacenter/general—system/query-new`;
  852. if (param.buildingId) {
  853. url += `?buildingId=${param.buildingId}`
  854. }
  855. if (param.floorId) {
  856. url += `&floorId=${param.floorId}`
  857. }
  858. http.postJson(url, param.data, success)
  859. }
  860. //设备清单 - 设备关联系统 设备1-n
  861. export function equipLinkSys(param, success) {
  862. let url = `${baseUrl}/datacenter/sy-in-eq/link-sy`;
  863. http.postJson(url, param, success)
  864. }
  865. //设备清单 - 设备关联系统 系统1-n
  866. export function sysLinkEquip(param, success) {
  867. let url = `${baseUrl}/datacenter/sy-in-eq/link-sy-eq`;
  868. http.postJson(url, param, success)
  869. }
  870. //设备清单 - 根据对象删除系统和设备的关系
  871. export function sysUnlinkEquip(param, success) {
  872. let url = `${baseUrl}/datacenter/sy-in-eq/unlinks-sy-eq`;
  873. http.postJson(url, param, success)
  874. }
  875. //设备清单 - 统计项目下所有设备数量
  876. export function countEquip(param, success) {
  877. let url = `${baseUrl}/datacenter/equip/count`;
  878. http.postJson(url, param, success)
  879. }
  880. //设备清单 - 查询设备信息
  881. export function queryEquip(param, success) {
  882. let url = `${baseUrl}/datacenter/equip/query`;
  883. http.postJson(url, param, success)
  884. }
  885. //查询项目下的设备或部件-根据项目、建筑、楼层、设备或部件分类、业务空间实例筛选设备 然后通过计算匹配资产
  886. export function equipCategoryProperty(param, success) {
  887. let url = `${baseUrl}/equip-component/equip-query/equip-category-property?category=${param.category}${param.spaceIdList?param.spaceIdList:''}`;
  888. let data = param.data;
  889. http.postJson(url, data, success)
  890. }
  891. //批量添加设备和资产的关系
  892. export function equipRproperty(param, success) {
  893. let url = `${baseUrl}/equip-component/equip-query/equip-r-property`;
  894. http.postJson(url, param, success)
  895. }
  896. //创建资产所需(Family族id3位编码)-根据设备类型(4位编码)或部件类型(6位编码)查询
  897. export function getEquipBelongs(param, success) {
  898. let url = `${baseUrl}/datacenter/data-dictionary/family-query`;
  899. let data = param.data;
  900. http.postJson(url, data, success)
  901. }
  902. //创建资产
  903. export function createPropertyData(param, success) {
  904. let url = `${baseUrl}/datacenter/property/create`;
  905. http.postJson(url, param, success)
  906. }
  907. //查询资产
  908. export function queryProperty(param, success) {
  909. let url = `${baseUrl}/datacenter/property/query`;
  910. http.postJson(url, param, success)
  911. }
  912. //查询资产 同时关联设备信息
  913. export function propertyLinkEq(param, success) {
  914. let url = `${baseUrl}/equip-component/property/property-query`;
  915. http.postJson(url, param, success)
  916. }
  917. //查询设备或部件
  918. export function queryPartsDie(param, success) {
  919. let url = `${baseUrl}/equip-component/equip-query/pagequery`;
  920. http.postJson(url, param, success)
  921. }
  922. //查询项目下设备或部件的类别、以及名称
  923. export function TypePartsDie(success) {
  924. let url = `${baseUrl}/equip-component/equip-query/equip-compon-category`;
  925. http.getJson(url, {}, success)
  926. }
  927. //根据条件查询项目下设备部件数量
  928. export function countPartsDie(param, success) {
  929. let url = `${baseUrl}/equip-component/equip-query/count`;
  930. http.postJson(url, param, success)
  931. }
  932. //根据设备或部件批量创建资产
  933. export function createPropertys(param, success) {
  934. let url = `${baseUrl}/equip-component/equip-query/creat-propertys`;
  935. http.postJson(url, param, success)
  936. }
  937. //根据条件查询统计数量
  938. export function countProperty(param, success) {
  939. let url = `${baseUrl}/datacenter/property/count`;
  940. http.postJson(url, param, success)
  941. }
  942. //根据id删除资产信息
  943. export function deleteProperty(param, success) {
  944. let url = `${baseUrl}/datacenter/property/delete`;
  945. http.postJson(url, param, success)
  946. }
  947. //更新资产信息
  948. export function updateProperty(param, success) {
  949. let url = `${baseUrl}/datacenter/property/update`;
  950. http.postJson(url, param, success)
  951. }
  952. //更新系统信息
  953. export function updateGeneralSys(param, success) {
  954. let url = `${baseUrl}/datacenter/general—system/update`;
  955. http.postJson(url, param, success)
  956. }
  957. //删除系统信息
  958. export function deleteGeneralSys(param, success) {
  959. let url = `${baseUrl}/datacenter/general—system/delete`;
  960. http.postJson(url, param, success)
  961. }
  962. //创建系统信息
  963. export function createGeneralSys(param, success) {
  964. let url = `${baseUrl}/datacenter/general—system/create`;
  965. http.postJson(url, param, success)
  966. }
  967. //查询不在当前系统下的设备
  968. export function getEquipNotInSys(param, success) {
  969. let url = `${baseUrl}/equip-component/equip-query/equip-sys?sysId=${param.sysId}`;
  970. http.postJson(url, param.data, success)
  971. }
  972. //创建系统所在建筑关系,系统一对多,覆盖
  973. export function sysRelateBuild(param, success) {
  974. let url = `${baseUrl}/datacenter/sy-in-bd/link-bd`;
  975. http.postJson(url, param, success)
  976. }
  977. //创建系统所在楼层关系,系统一对多,覆盖
  978. export function sysRelateFloor(param, success) {
  979. let url = `${baseUrl}/datacenter/sy-in-fl/link-fl`;
  980. http.postJson(url, param, success)
  981. }
  982. //查询当前系统下的设备
  983. export function getEquipInSys(param, success) {
  984. let url = `${baseUrl}/equip-component/equip-query/sys-equip`;
  985. http.postJson(url, param, success)
  986. }
  987. //根据条件查询统计数量
  988. export function countGeneralSys(param, success) {
  989. let url = `${baseUrl}/datacenter/general—system/count`;
  990. http.postJson(url, param, success)
  991. }
  992. //头部信息查询(查询所有设备类型-所有部件类型-所有系统类型-所有专业类型)
  993. export function queryPhysicsAllType(param, success) {
  994. let url = `${baseUrl}/datacenter/class-def/category?type=${param}`;
  995. http.postJson(url, {}, success)
  996. }
  997. //查询所有设备族信息
  998. export function queryFamilyAll(success) {
  999. let url = `${baseUrl}/datacenter/data-dictionary/family-query-All`;
  1000. http.getJson(url, {}, success)
  1001. }
  1002. //字典头部信息查询接口
  1003. export function queryDictionaryHead(param, success) {
  1004. let url = `${baseUrl}/datacenter/class-def/query`;
  1005. http.postJson(url, param, success)
  1006. }
  1007. //动态数据关联-冲突选择确认
  1008. export function dynamicClashConfirm(param, success) {
  1009. let url = `${baseUrl}/pointconfig/dynamic/clashconfirm`;
  1010. http.postJson(url, param, success)
  1011. }
  1012. //子系统点位接入-第三部步骤3保存
  1013. export function groupCreatePointRelation(param, success) {
  1014. let url = `${baseUrl}/pointconfig/relation/group-create`;
  1015. http.postJson(url, param, success)
  1016. }
  1017. //动态数据关联-查询数据源列表(P1&2)
  1018. export function dynamicDataSource(param, success) {
  1019. let url = `${baseUrl}/pointconfig/dynamic/datasource-list`;
  1020. http.postJson(url, param, success);
  1021. }
  1022. //动态数据关联-查询设备类型列表(P1&2)
  1023. export function dynamicDynEquipList(param, success) {
  1024. let url = `${baseUrl}/pointconfig/dynamic/equipmenttype-list`;
  1025. http.postJson(url, param, success);
  1026. }
  1027. //动态数据关联-执行对应结果
  1028. export function dynamicExecute(param, success) {
  1029. let url = `${baseUrl}/pointconfig/dynamic/execute`;
  1030. http.postJson(url, param, success);
  1031. }
  1032. //动态数据关联-执行对应结果反馈
  1033. export function dynamicExecuteFeedback(param, success) {
  1034. let url = `${baseUrl}/pointconfig/dynamic/executeFeedback`;
  1035. http.postJson(url, param, success);
  1036. }
  1037. //动态数据关联-位置下拉列表(P2)
  1038. export function dynamicLocationList(param, success) {
  1039. let url = `${baseUrl}/pointconfig/dynamic/location-list`;
  1040. http.postJson(url, param, success);
  1041. }
  1042. //动态数据关联-查询位置标签列表
  1043. export function dynamicLocFlagList(param, success) {
  1044. let url = `${baseUrl}/pointconfig/dynamic/locationflag-list`;
  1045. http.postJson(url, param, success)
  1046. }
  1047. //动态数据关联-提示信息
  1048. export function dynamicPromptmessage(param, success) {
  1049. let url = `${baseUrl}/pointconfig/dynamic/promptmessage`;
  1050. http.postJson(url, param, success);
  1051. }
  1052. //动态数据关联-提示冲突
  1053. export function dynamicPromptobjs(param, success) {
  1054. let url = `${baseUrl}/pointconfig/dynamic/promptobjs`;
  1055. http.postJson(url, param, success);
  1056. }
  1057. //动态数据关联-查询对应关系(P1)
  1058. export function dynamicQuery(param, success) {
  1059. let url = `${baseUrl}/pointconfig/dynamic/query`;
  1060. http.postJson(url, param, success);
  1061. }
  1062. //动态数据关联-待关联实例(P2)
  1063. export function dynamicPendingobjs(param, success) {
  1064. let url = `${baseUrl}/pointconfig/dynamic/query-pending-objs`;
  1065. http.postJson(url, param, success);
  1066. }
  1067. //动态数据关联-待关联点位(P2)
  1068. export function dynamicPendingPoint(param, success) {
  1069. let url = `${baseUrl}/pointconfig/dynamic/query-pending-point`;
  1070. http.postJson(url, param, success);
  1071. }
  1072. //动态数据关联-查点位
  1073. export function dynamicQueryPoint(param, success) {
  1074. let url = `${baseUrl}/pointconfig/dynamic/query-point`;
  1075. http.postJson(url, param, success);
  1076. }
  1077. //动态数据关联-创建关联
  1078. export function dynamicCreateRelation(param, success) {
  1079. let url = `${baseUrl}/pointconfig/dynamic/relation-create`;
  1080. http.postJson(url, param, success);
  1081. }
  1082. //动态数据关联-清除关联
  1083. export function dynamicDeleteRelation(param, success) {
  1084. let url = `${baseUrl}/pointconfig/dynamic/relation-delete`;
  1085. http.postJson(url, param, success);
  1086. }
  1087. //动态数据关联-查询对象类列表(P1&2)
  1088. export function dynamicPointTypeList(param, success) {
  1089. let url = `${baseUrl}/pointconfig/dynamic/type-list`;
  1090. http.postJson(url, param, success)
  1091. }
  1092. //动态数据关联-自动关联
  1093. export function dynamicAutoRelate(param, success) {
  1094. let url = `${baseUrl}/pointconfig/dynamic/auto-relate`;
  1095. http.postJson(url, param, success)
  1096. }
  1097. //查询楼层信息
  1098. export function floorQuery(param, success) {
  1099. let url = `${baseUrl}/datacenter/floor/query`;
  1100. http.postJson(url, param, success)
  1101. }
  1102. //查询楼层信息+sign
  1103. export function floorQueryAndSign(param, success) {
  1104. let url = `${baseUrl}/equip-component/floor/query`;
  1105. http.postJson(url, param, success)
  1106. }
  1107. //查询建筑信息
  1108. export function buildingQuery(param, success) {
  1109. let url = `${baseUrl}/datacenter/building/query`;
  1110. http.postJson(url, param, success)
  1111. }
  1112. //查询建筑信息+count
  1113. export function buildingQueryAndCount(param, success) {
  1114. let url = `${baseUrl}/equip-component/building/query`;
  1115. http.postJson(url, param, success)
  1116. }
  1117. //创建分区信息
  1118. export function createZone(param, success) {
  1119. let data = param.data
  1120. let url = `${baseUrl}/datacenter/${zone[param.zone]}/create`;
  1121. http.postJson(url, data, success)
  1122. }
  1123. //删除分区信息
  1124. export function deleteZone(param, success) {
  1125. let data = param.data
  1126. let url = `${baseUrl}/datacenter/${zone[param.zone]}/delete`;
  1127. http.postJson(url, data, success)
  1128. }
  1129. //查询分区信息
  1130. export function queryZone(param, success) {
  1131. let data = param.data
  1132. let url = `${baseUrl}/datacenter/${zone[param.zone]}/query`;
  1133. http.postJson(url, data, success)
  1134. }
  1135. //更新分区信息
  1136. export function updateZone(param, success) {
  1137. let data = param.data
  1138. let url = `${baseUrl}/datacenter/${zone[param.zone]}/update`;
  1139. http.postJson(url, data, success)
  1140. }
  1141. //根据条件查询统计数量
  1142. export function countZone(param, success) {
  1143. let data = param.data
  1144. let url = `${baseUrl}/datacenter/${zone[param.zone]}/count`;
  1145. http.postJson(url, data, success)
  1146. }
  1147. //动态数据关联-查询对应关系(删除提示页)
  1148. export function dynamicQueryPrompt(param, success) {
  1149. let url = `${baseUrl}/pointconfig/dynamic/query-prompt`;
  1150. http.postJson(url, param, success)
  1151. }
  1152. //动态数据关联-AI辅助
  1153. export function dynamicQueryAI(param, success) {
  1154. let url = `${baseUrl}/pointconfig/dynamic/ai`;
  1155. http.postJson(url, param, success)
  1156. }
  1157. //动态数据关联-执行对应结果详情
  1158. export function dynamicExecuteDetail(param, success) {
  1159. let url = `${baseUrl}/pointconfig/dynamic/executeDetail`;
  1160. http.postJson(url, param, success)
  1161. }
  1162. //建筑楼层管理-创建楼层
  1163. export function manageCreateFloor(param, success) {
  1164. let url = `${baseUrl}/datacenter/floor/create`;
  1165. http.postJson(url, param, success)
  1166. }
  1167. //建筑楼层管理-删除楼层
  1168. export function manageDeleteFloor(param, success) {
  1169. let url = `${baseUrl}/datacenter/floor/delete`;
  1170. http.postJson(url, param, success)
  1171. }
  1172. //建筑楼层管理-修改楼层
  1173. export function manageUpdateFloor(param, success) {
  1174. let url = `${baseUrl}/datacenter/floor/update`;
  1175. http.postJson(url, param, success)
  1176. }
  1177. //建筑楼层管理-创建楼层关联关系
  1178. export function createRelationInFloor(param, success) {
  1179. let url = `${baseUrl}/datacenter/fl-through-fl/link-or`;
  1180. http.postJson(url, param, success)
  1181. }
  1182. //查询底图
  1183. export function queryBaseGraphy(param, success) {
  1184. let url = `/modelapi/base-graph/query`;
  1185. http.postJson(url, param, success)
  1186. }
  1187. //楼层接口-----更新楼层信息
  1188. export function floorUpdate(param, success) {
  1189. let url = `${baseUrl}/datacenter/floor/update`;
  1190. http.postJson(url, param, success)
  1191. }
  1192. /****关系-竖井****/
  1193. //字典查询接口 竖井所有类型
  1194. export function queryShaftType(success) {
  1195. let url = `${baseUrl}/datacenter/data-dictionary/query-shaft-type`;
  1196. http.getJson(url, {}, success)
  1197. }
  1198. //根据对象删除设备所在竖井关系,只针对一个对象
  1199. export function eqinshUnlink(param, success) {
  1200. let url = `${baseUrl}/datacenter/eq-in-sh/unlink`;
  1201. http.postJson(url, param, success)
  1202. }
  1203. //根据对象删除系统所在竖井关系,只针对一个对象
  1204. export function syinshUnlink(param, success) {
  1205. let url = `${baseUrl}/datacenter/sy-in-sh/unlink`;
  1206. http.postJson(url, param, success)
  1207. }
  1208. //根据对象删除竖井的贯通关系,只针对一个对象
  1209. export function shthroughshUnlink(param, success) {
  1210. let url = `${baseUrl}/datacenter/sh-through-sh/unlink`;
  1211. http.postJson(url, param, success)
  1212. }
  1213. //查询没有和当前系统关联的设备
  1214. export function unSysEq(param, success) {
  1215. let data = param.data
  1216. let url = `${baseUrl}/datacenter/general—system/un-sys-equip?sysId=${param.sysId}`;
  1217. http.postJson(url, data, success)
  1218. }
  1219. //查询没有和当前系统关联的竖井
  1220. export function unSysShaft(param, success) {
  1221. let data = param.data
  1222. let url = `${baseUrl}/datacenter/general—system/un-sys-shaft?sysId=${param.sysId}`;
  1223. http.postJson(url, data, success)
  1224. }
  1225. //查询没有和当前系统关联的业务空间
  1226. export function unSysZoneSpace(param, success) {
  1227. let data = param.data
  1228. let url = `${baseUrl}/datacenter/general—system/un-sys-zoneSpaceBaseTable?sysId=${param.sysId}`;
  1229. http.postJson(url, data, success)
  1230. }
  1231. //查询没有和当前竖井绑定的设备
  1232. export function unshaftInEq(param, success) {
  1233. let data = param.data
  1234. let url = `${baseUrl}/equip-component/shaft/unshaft-in-eq?shaftId=${param.shaftId}`;
  1235. http.postJson(url, data, success)
  1236. }
  1237. //查询没有和当前竖井贯通的其它竖井
  1238. export function unshaftThroughShaft(param, success) {
  1239. let data = param.data
  1240. let url = `${baseUrl}/equip-component/shaft/unshaft-through-shaft?shaftId=${param.shaftId}`;
  1241. http.postJson(url, data, success)
  1242. }
  1243. //查询没有和当前竖井绑定的系统
  1244. export function unshaftInSys(param, success) {
  1245. let data = param.data
  1246. let url = `${baseUrl}/equip-component/shaft/unshaft-in-sys?shaftId=${param.shaftId}`;
  1247. http.postJson(url, data, success)
  1248. }
  1249. //设备所在的竖井,竖井一对多,此方不会覆盖以前的记录,累计添加
  1250. export function linkEqSh(param, success) {
  1251. let url = `${baseUrl}/datacenter/eq-in-sh/link-eq-sh`;
  1252. http.postJson(url, param, success)
  1253. }
  1254. //创建系统下的设备关系
  1255. export function linkSysEq(param, success) {
  1256. let url = `${baseUrl}/datacenter/general—system/link-equip`;
  1257. http.postJson(url, param, success)
  1258. }
  1259. //竖井的贯通,竖井一对多,此方法不会覆盖以前的记录
  1260. export function linkShaft(param, success) {
  1261. let url = `${baseUrl}/datacenter/sh-through-sh/link-shaft`;
  1262. http.postJson(url, param, success)
  1263. }
  1264. //系统所在的竖井,竖井一对多,累计添加,此方法不会覆盖以前记录
  1265. export function linkSySh(param, success) {
  1266. let url = `${baseUrl}/datacenter/sy-in-sh/link-sy-sh`;
  1267. http.postJson(url, param, success)
  1268. }
  1269. //创建系统所在业务空间关系
  1270. export function linkSysSp(param, success) {
  1271. let url = `${baseUrl}/datacenter/sy-in-sp-base/link-list`;
  1272. http.postJson(url, param, success)
  1273. }
  1274. //系统所在竖井,系统一对多,此方法会覆盖以前的记录
  1275. export function linkSh(param, success) {
  1276. let url = `${baseUrl}/datacenter/sy-in-sh/link-sh`;
  1277. http.postJson(url, param, success)
  1278. }
  1279. //系统所在竖井,系统一对多,此方法不会覆盖以前的记录
  1280. export function linkSysSh(param, success) {
  1281. let url = `${baseUrl}/datacenter/sy-in-sh/link-sy-shs`;
  1282. http.postJson(url, param, success)
  1283. }
  1284. //根据对象删除系统和设备的关系,只针对一个对象
  1285. export function eqInSysUnlink(param, success) {
  1286. let url = `${baseUrl}/datacenter/sy-in-eq/unlink`;
  1287. http.postJson(url, param, success)
  1288. }
  1289. //根据对象删除系统所在业务空间关系
  1290. export function spaceInSysUnlink(param, success) {
  1291. let url = `${baseUrl}/datacenter/sy-in-sp-base/unlink-list?type=${param.type}`;
  1292. http.postJson(url, param.data, success)
  1293. }
  1294. //关系-----设备所在业务空间--删除关系
  1295. export function eqInSpaceDelete(param, success) {
  1296. let url = `${baseUrl}/datacenter/eq-in-sp-base/unlink-list?type=${param.type}`;
  1297. http.postJson(url, param.data, success)
  1298. }
  1299. //关系-----设备所在业务空间--创建关系
  1300. export function eqInSpaceCreate(param, success) {
  1301. let url = `${baseUrl}/datacenter/eq-in-sp-base/link-eq-sp?type=${param.type}`;
  1302. http.postJson(url, param.data, success)
  1303. }
  1304. //关系-----设备服务业务空间--删除关系
  1305. export function eqForSpaceDelete(param, success) {
  1306. let url = `${baseUrl}/datacenter/eq-for-sp-base/unlink-list?type=${param.type}`;
  1307. http.postJson(url, param.data, success)
  1308. }
  1309. //关系-----设备服务业务空间--创建关系
  1310. export function eqForSpaceCreate(param, success) {
  1311. let url = `${baseUrl}/datacenter/eq-for-sp-base/link-eq-sp?type=${param.type}`;
  1312. http.postJson(url, param.data, success)
  1313. }
  1314. //关系-----系统所在业务空间--删除关系
  1315. export function syInSpaceDelete(param, success) {
  1316. let url = `${baseUrl}/datacenter/sy-in-sp-base/unlink-list?type=${param.type}`;
  1317. http.postJson(url, param.data, success)
  1318. }
  1319. //关系-----系统所在业务空间--创建关系
  1320. export function syInSpaceCreate(param, success) {
  1321. let url = `${baseUrl}/datacenter/sy-in-sp-base/link-sp-sys?type=${param.type}`;
  1322. http.postJson(url, param.data, success)
  1323. }
  1324. //关系-----没有和当前空间绑定的设备
  1325. export function notEqInSpaceQuery(param, success) {
  1326. let url = `${baseUrl}/equip-component/space/unspace-in-eq?type=${param.type}&spaceId=${param.spaceId}`;
  1327. http.postJson(url, param.data, success)
  1328. }
  1329. //关系-----未服务当前空间的设备
  1330. export function notEqForSpaceQuery(param, success) {
  1331. let url = `${baseUrl}/equip-component/space/unspace-for-eq?type=${param.type}&spaceId=${param.spaceId}`;
  1332. http.postJson(url, param.data, success)
  1333. }
  1334. //关系-----没有和当前空间绑定的系统
  1335. export function notSyInSpaceQuery(param, success) {
  1336. let url = `${baseUrl}/equip-component/space/unspace-in-sys?type=${param.type}&spaceId=${param.spaceId}`;
  1337. http.postJson(url, param.data, success)
  1338. }
  1339. //关系-----空间内没有和空间关联的设备 根据坐标计算(专用接口)
  1340. export function getEqNotInSpace(param, success) {
  1341. let url = `${baseUrl}/equip-component/space/unspace-fIn-eq-point?spaceId=${param.spaceId}&type=${param.type}`;
  1342. http.postJson(url, param.data, success)
  1343. }
  1344. //关系-----空间内没有服务空间的设备 根据坐标计算(专用接口)
  1345. export function getEqNotForSpace(param, success) {
  1346. let url = `${baseUrl}/equip-component/space/unspace-for-eq-point?spaceId=${param.spaceId}&type=${param.type}`;
  1347. http.postJson(url, param.data, success)
  1348. }
  1349. //关系-----未关联业务空间的元空间
  1350. export function getIspNotInSpace(param, success) {
  1351. let url = `${baseUrl}/equip-component/space/unspace-ispace?objectType=${param.objectType}`;
  1352. http.postJson(url, param.data, success)
  1353. }
  1354. //关系-----业务空间内的元空间,业务空间一对多,累计添加会覆盖以前记录
  1355. export function createRelateInZoneAndISp(param, success) {
  1356. let url = `${baseUrl}/datacenter/si-in-sp-base/link-sp?type=${param.type}`;
  1357. http.postJson(url, param.data, success)
  1358. }
  1359. //关系-----业务空间内的元空间,创建业务空间内的元空间关系, 累计添加不会覆盖-批量关联
  1360. export function groupCreRelaZoneAndISp(param, success) {
  1361. let url = `${baseUrl}/datacenter/si-in-sp-base/link-list?type=${param.type}`;
  1362. http.postJson(url, param.data, success)
  1363. }
  1364. //关系-----业务空间所属建筑楼层修改
  1365. export function updateRelateInSpAndBuild(param, success) {
  1366. let url = `${baseUrl}/datacenter/update-relationship/update-sp`;
  1367. http.postJson(url, param, success)
  1368. }
  1369. //关系-----查询竖井关联的空间类型和名称
  1370. export function shaftSpaceTypeQuery(param, success) {
  1371. let url = `${baseUrl}/datacenter/sh-contain-sp-base/space-type-query?shaftId=${param.shaftId}`;
  1372. http.postJson(url, param, success)
  1373. }
  1374. //关系-----竖井下的业务空间,竖井一对多,此方法会覆盖以前的记录
  1375. export function shaftZoneLink(param, success) {
  1376. let url = `${baseUrl}/datacenter/sh-contain-sp-base/link-shsps-replace?BuildingId=${param.BuildingId}&FloorId=${param.FloorId}&Type=${param.Type}`;
  1377. http.postJson(url, param.data, success)
  1378. }
  1379. /**系统集成成果管理 */
  1380. //系统集成统计条形图
  1381. export function getIntegrateStatisticsToBar(param, success) {
  1382. let url = `/pointconfig/report/point-statis `
  1383. http.postJson(url, param, success)
  1384. }
  1385. //系统集成统计环形图
  1386. export function getIntegrateStatisticsToLoop(param, success) {
  1387. let url = `/pointconfig/report/meterfunc-statis`
  1388. http.postJson(url, param, success)
  1389. }
  1390. //表号功能号总览
  1391. export function getTabFunNumOverview(param, success) {
  1392. let url = `/pointconfig/report/meterfunc-overview`
  1393. http.postJson(url, param, success)
  1394. }
  1395. //表号功能号对应历史数据
  1396. export function getHistoryData(query, param, success) {
  1397. let url = `/data-platform-3/hisdata/batch_query_period_data_by_metfun`
  1398. url += `?projectId=${query.projectId}&secret=${query.secret}`
  1399. fetch({ url: url, method: 'post', data: param, headers: { 'ProjectId': query.projectId, 'Comming': 'adm', 'Account': query.userInfo.username } }).then((response) => {
  1400. success(response.data);
  1401. }).catch(error => {
  1402. console.error(error);
  1403. });
  1404. }
  1405. //获取表号功能号的源数据
  1406. export function getTabFunNumSourceData(param, success) {
  1407. let url = `/pointconfig/report/query-point`
  1408. http.postJson(url, param, success)
  1409. }
  1410. //获取表号功能号对应的对象实例
  1411. export function getTabFunNumObjInstance(param, success) {
  1412. let url = `/pointconfig/report/query-instance`
  1413. http.postJson(url, param, success)
  1414. }
  1415. //添加表号功能号
  1416. export function addTabFunNum(param, success) {
  1417. let url = `/pointconfig/report/custom-meter-func`
  1418. http.postJson(url, param, success)
  1419. }
  1420. //表号功能号对应总览
  1421. export function tableFuncRelatedOverview(param, success) {
  1422. let url = `/pointconfig/report/meter-related`
  1423. http.postJson(url, param, success)
  1424. }
  1425. //实例中查询设备信息
  1426. export function getEquipByEqID(param, success) {
  1427. let url = `${baseUrl}/datacenter/equip/query`
  1428. http.postJson(url, param, success)
  1429. }
  1430. //获取楼层信息
  1431. export function getFloorMsgByFloorID(param, success) {
  1432. let url = `${baseUrl}/datacenter/floor/query`
  1433. http.postJson(url, param, success)
  1434. }