index.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005
  1. import request from '@/utils/request'
  2. /************物联硬件************/
  3. //物联分类列表
  4. export function iotDeviceList(data) {
  5. return request({
  6. url: '/iot/device/list',
  7. method: 'post',
  8. data: data
  9. })
  10. }
  11. //设备类型下啦列表
  12. export function iotTypeGetAllTypes(query) {
  13. return request({
  14. url: '/iot/type/getAllTypes',
  15. method: 'get',
  16. params: query
  17. })
  18. }
  19. //设备类型配置查询
  20. export function iotTypeGetParamByTypeId(query) {
  21. return request({
  22. url: '/iot/type/getParamByTypeId',
  23. method: 'get',
  24. params: query
  25. })
  26. }
  27. //通过设备类型查询设备属性
  28. export function iotAttributeGetByTypeId(query) {
  29. return request({
  30. url: '/iot/attribute/getByTypeId',
  31. method: 'get',
  32. params: query
  33. })
  34. }
  35. //新增设备
  36. export function iotDeviceAdd(data) {
  37. return request({
  38. url: '/iot/device/add',
  39. method: 'post',
  40. data: data
  41. })
  42. }
  43. //设备详情
  44. export function iotDeviceDetail(query) {
  45. return request({
  46. url: '/iot/device/detail',
  47. method: 'get',
  48. params: query
  49. })
  50. }
  51. //编辑设备
  52. export function iotDeviceUpdate(data) {
  53. return request({
  54. url: '/iot/device/update',
  55. method: 'post',
  56. data: data
  57. })
  58. }
  59. //删除设备
  60. export function iotDeviceDelete(data) {
  61. return request({
  62. url: '/iot/device/delete',
  63. method: 'post',
  64. data: data
  65. })
  66. }
  67. //物联设备在线数量
  68. export function iotDeviceDeviceCount(query) {
  69. return request({
  70. url: '/iot/device/deviceCount',
  71. method: 'get',
  72. params: query
  73. })
  74. }
  75. //根据设备ID-查询设备功能列表
  76. export function iotTypeFunctionList(data) {
  77. return request({
  78. url: '/iot/type/function/list',
  79. method: 'post',
  80. data: data
  81. })
  82. }
  83. //根据设备ID-新增设备功能
  84. export function iotTypeFunctionAdd(data) {
  85. return request({
  86. url: '/iot/type/function/add',
  87. method: 'post',
  88. data: data
  89. })
  90. }
  91. //根据设备ID-编辑设备功能
  92. export function iotTypeFunctionUpdate(data) {
  93. return request({
  94. url: '/iot/type/function/update',
  95. method: 'post',
  96. data: data
  97. })
  98. }
  99. //根据设备ID-删除设备功能
  100. export function iotTypeFunctionDelete(data) {
  101. return request({
  102. url: '/iot/type/function/delete',
  103. method: 'post',
  104. data: data
  105. })
  106. }
  107. //根据设备ID-获取功能下拉列表
  108. export function iotTypeFunctionDropList(data) {
  109. return request({
  110. url: '/iot/type/function/dropList',
  111. method: 'post',
  112. data: data
  113. })
  114. }
  115. //根据类型ID-获取未设备列表
  116. export function iotDeviceExtraDeviceList(data) {
  117. return request({
  118. url: '/iot/device/extraDeviceList',
  119. method: 'post',
  120. data: data
  121. })
  122. }
  123. //批量添加-设备
  124. export function iotDeviceAddBatch(data) {
  125. return request({
  126. url: '/iot/device/addBatch',
  127. method: 'post',
  128. data: data
  129. })
  130. }
  131. //物联设备-查询传感器LOG日志
  132. export function iotDeviceDataList(data) {
  133. return request({
  134. url: '/iot/deviceData/list',
  135. method: 'post',
  136. data: data
  137. })
  138. }
  139. //物联设备-查询设备日志类型
  140. export function iotDeviceLogType(query) {
  141. return request({
  142. url: '/iot/device/log/type',
  143. method: 'get',
  144. params: query
  145. })
  146. }
  147. //物联设备-根据设备ID查询设备日志
  148. export function iotDeviceLogList(data) {
  149. return request({
  150. url: '/iot/device/log/list',
  151. method: 'post',
  152. data: data
  153. })
  154. }
  155. /************物联分类************/
  156. //物联分类列表
  157. export function iotTypeList(data) {
  158. return request({
  159. url: '/iot/type/list',
  160. method: 'post',
  161. data: data
  162. })
  163. }
  164. //获取物联分类标识
  165. export function iotTypeGetTypeKey(query) {
  166. return request({
  167. url: '/iot/type/getTypeKey',
  168. method: 'get',
  169. params: query
  170. })
  171. }
  172. //新增物联分类
  173. export function iotTypeAdd(data) {
  174. return request({
  175. url: '/iot/type/add',
  176. method: 'post',
  177. data: data
  178. })
  179. }
  180. //编辑物联分类
  181. export function iotTypeUpdate(data) {
  182. return request({
  183. url: '/iot/type/update',
  184. method: 'post',
  185. data: data
  186. })
  187. }
  188. //物联分类删除
  189. export function iotTypeDelete(data) {
  190. return request({
  191. url: '/iot/type/delete',
  192. method: 'post',
  193. data: data
  194. })
  195. }
  196. //物联分类详情
  197. export function iotTypeDetail(query) {
  198. return request({
  199. url: '/iot/type/detail',
  200. method: 'get',
  201. params: query
  202. })
  203. }
  204. //物联分类-配置-属性列表
  205. export function iotAttributeList(data) {
  206. return request({
  207. url: '/iot/attribute/list',
  208. method: 'post',
  209. data: data
  210. })
  211. }
  212. //物联分类-配置-属性新增
  213. export function iotAttributeAdd(data) {
  214. return request({
  215. url: '/iot/attribute/add',
  216. method: 'post',
  217. data: data
  218. })
  219. }
  220. //物联分类-配置-属性编辑
  221. export function iotAttributeUpdate(data) {
  222. return request({
  223. url: '/iot/attribute/update',
  224. method: 'post',
  225. data: data
  226. })
  227. }
  228. //物联分类-配置-属性删除
  229. export function iotAttributeDelete(data) {
  230. return request({
  231. url: '/iot/attribute/delete',
  232. method: 'post',
  233. data: data
  234. })
  235. }
  236. //物联分类-配置-属性详情
  237. export function iotAttributeDetail(query) {
  238. return request({
  239. url: '/iot/attribute/detail',
  240. method: 'get',
  241. params: query
  242. })
  243. }
  244. //物联分类-配置-属性上移
  245. export function iotAttributeMoveUp(data) {
  246. return request({
  247. url: '/iot/attribute/moveUp',
  248. method: 'post',
  249. data: data
  250. })
  251. }
  252. //物联分类-配置-属性下移
  253. export function iotAttributeMoveDown(data) {
  254. return request({
  255. url: '/iot/attribute/moveDown',
  256. method: 'post',
  257. data: data
  258. })
  259. }
  260. //物联分类-配置-属性类别(分类下的子标识)列表
  261. export function iotAttributeAttrType(query) {
  262. return request({
  263. url: '/iot/attribute/attrType',
  264. method: 'get',
  265. params: query
  266. })
  267. }
  268. //物联分类-配置-模块列表
  269. export function iotTypeTypeModelAndAttr(query) {
  270. return request({
  271. url: '/iot/type/typeModelAndAttr',
  272. method: 'get',
  273. params: query
  274. })
  275. }
  276. //物联分类-配置-模块
  277. export function iotTypeSaveTypeModel(data) {
  278. return request({
  279. url: '/iot/type/saveTypeModel',
  280. method: 'post',
  281. data: data
  282. })
  283. }
  284. /***********分类配置*************/
  285. //分类配置列表
  286. export function iotParamList(data) {
  287. return request({
  288. url: '/iot/param/list',
  289. method: 'post',
  290. data: data
  291. })
  292. }
  293. //分类配置添加
  294. export function iotParamAdd(data) {
  295. return request({
  296. url: '/iot/param/add',
  297. method: 'post',
  298. data: data
  299. })
  300. }
  301. //分类配置编辑
  302. export function iotParamUpdate(data) {
  303. return request({
  304. url: '/iot/param/update',
  305. method: 'post',
  306. data: data
  307. })
  308. }
  309. //分类配置删除
  310. export function iotParamDelete(data) {
  311. return request({
  312. url: '/iot/param/delete',
  313. method: 'post',
  314. data: data
  315. })
  316. }
  317. //分类配置详情
  318. export function iotParamDetail(query) {
  319. return request({
  320. url: '/iot/param/detail',
  321. method: 'get',
  322. params: query
  323. })
  324. }
  325. //分类配置展示
  326. export function iotParamAll(data) {
  327. return request({
  328. url: '/iot/param/all',
  329. method: 'post',
  330. data: data
  331. })
  332. }
  333. //分类配置上移
  334. export function iotParamMoveUp(data) {
  335. return request({
  336. url: '/iot/param/moveUp',
  337. method: 'post',
  338. data: data
  339. })
  340. }
  341. //分类配置下移
  342. export function iotParamMoveDown(data) {
  343. return request({
  344. url: '/iot/param/moveDown',
  345. method: 'post',
  346. data: data
  347. })
  348. }
  349. //分类配置字典列表
  350. export function iotParamValueList(data) {
  351. return request({
  352. url: '/iot/paramValue/list',
  353. method: 'post',
  354. data: data
  355. })
  356. }
  357. //分类配置字典新增
  358. export function iotParamValueAdd(data) {
  359. return request({
  360. url: '/iot/paramValue/add',
  361. method: 'post',
  362. data: data
  363. })
  364. }
  365. //分类配置字典编辑
  366. export function iotParamValueUpdate(data) {
  367. return request({
  368. url: '/iot/paramValue/update',
  369. method: 'post',
  370. data: data
  371. })
  372. }
  373. //分类配置字典删除
  374. export function iotParamValueDelete(data) {
  375. return request({
  376. url: '/iot/paramValue/delete',
  377. method: 'post',
  378. data: data
  379. })
  380. }
  381. //分类配置字典详情
  382. export function iotParamValueDetail(query) {
  383. return request({
  384. url: '/iot/paramValue/detail',
  385. method: 'get',
  386. params: query
  387. })
  388. }
  389. /***********告警方式*************/
  390. //方式列表
  391. export function iotAlarmType(query) {
  392. return request({
  393. url: '/iot/alarm/type',
  394. method: 'get',
  395. params: query
  396. })
  397. }
  398. //告警方式列表
  399. export function iotAlarmTypeList(data) {
  400. return request({
  401. url: '/iot/alarm/type/list',
  402. method: 'post',
  403. data: data
  404. })
  405. }
  406. //告警方式新增
  407. export function iotAlarmTypeAdd(data) {
  408. return request({
  409. url: '/iot/alarm/type/add',
  410. method: 'post',
  411. data: data
  412. })
  413. }
  414. //告警方式编辑
  415. export function iotAlarmTypeUpdate(data) {
  416. return request({
  417. url: '/iot/alarm/type/update',
  418. method: 'post',
  419. data: data
  420. })
  421. }
  422. //告警方式删除
  423. export function iotAlarmTypeDelete(data) {
  424. return request({
  425. url: '/iot/alarm/type/delete',
  426. method: 'post',
  427. data: data
  428. })
  429. }
  430. //告警方式启用&禁用
  431. export function iotAlarmTypeChangeState(data) {
  432. return request({
  433. url: '/iot/alarm/type/changeState',
  434. method: 'post',
  435. data: data
  436. })
  437. }
  438. /***********消息模板*************/
  439. //消息模板-下拉列表
  440. export function iotAlarmTemplateDrop(data) {
  441. return request({
  442. url: '/iot/alarm/template/drop',
  443. method: 'post',
  444. data: data
  445. })
  446. }
  447. //消息模板列表
  448. export function iotAlarmTemplateList(data) {
  449. return request({
  450. url: '/iot/alarm/template/list',
  451. method: 'post',
  452. data: data
  453. })
  454. }
  455. //消息模板新增
  456. export function iotAlarmTemplateAdd(data) {
  457. return request({
  458. url: '/iot/alarm/template/add',
  459. method: 'post',
  460. data: data
  461. })
  462. }
  463. //消息模板编辑
  464. export function iotAlarmTemplateUpdate(data) {
  465. return request({
  466. url: '/iot/alarm/template/update',
  467. method: 'post',
  468. data: data
  469. })
  470. }
  471. //消息模板删除
  472. export function iotAlarmTemplateDelete(data) {
  473. return request({
  474. url: '/iot/alarm/template/delete',
  475. method: 'post',
  476. data: data
  477. })
  478. }
  479. //消息模板-发送调试信息
  480. export function iotAlarmSendCheck(data) {
  481. return request({
  482. url: '/iot/alarm/send/check',
  483. method: 'post',
  484. data: data
  485. })
  486. }
  487. //消息模板启用&禁用
  488. export function iotAlarmTemplateChangeState(data) {
  489. return request({
  490. url: '/iot/alarm/template/changeState',
  491. method: 'post',
  492. data: data
  493. })
  494. }
  495. //获取消息模板类型列表
  496. export function iotAlarmTemplateBodyType(query) {
  497. return request({
  498. url: '/iot/alarm/template/bodyType',
  499. method: 'get',
  500. params: query
  501. })
  502. }
  503. //短信发送业务类型(预案短信/化学品短信/气瓶短信)
  504. export function iotAlarmTemplateBusinessType(query) {
  505. return request({
  506. url: '/iot/alarm/template/businessType',
  507. method: 'get',
  508. params: query
  509. })
  510. }
  511. /***********网络组件*************/
  512. /*
  513. 网络组件-下拉列表or组件详情查询
  514. isList:下拉列表查询时传true
  515. id:详情查询时传入ID
  516. */
  517. export function iotNetworkInfo(query) {
  518. return request({
  519. url: '/iot/network/info',
  520. method: 'get',
  521. params: query
  522. })
  523. }
  524. //网络组件-列表
  525. export function iotNetworkList(data) {
  526. return request({
  527. url: '/iot/network/list',
  528. method: 'post',
  529. data: data
  530. })
  531. }
  532. //网络组件-新增
  533. export function iotNetworkAdd(data) {
  534. return request({
  535. url: '/iot/network/add',
  536. method: 'post',
  537. data: data
  538. })
  539. }
  540. //网络组件-修改
  541. export function iotNetworkUpdate(data) {
  542. return request({
  543. url: '/iot/network/update',
  544. method: 'post',
  545. data: data
  546. })
  547. }
  548. //网络组件-删除
  549. export function iotNetworkDelete(data) {
  550. return request({
  551. url: '/iot/network/delete',
  552. method: 'post',
  553. data: data
  554. })
  555. }
  556. //网络组件-详情
  557. export function iotNetworkDetail(data) {
  558. return request({
  559. url: '/iot/network/detail',
  560. method: 'post',
  561. data: data
  562. })
  563. }
  564. /***************** 协议管理 *****************/
  565. //协议管理-列表
  566. export function iotProtocolList(data) {
  567. return request({
  568. url: '/iot/protocol/list',
  569. method: 'post',
  570. data: data
  571. })
  572. }
  573. //协议管理-新增
  574. export function iotProtocolAdd(data) {
  575. return request({
  576. url: '/iot/protocol/add',
  577. method: 'post',
  578. data: data
  579. })
  580. }
  581. //协议管理-编辑
  582. export function iotProtocolUpdate(data) {
  583. return request({
  584. url: '/iot/protocol/update',
  585. method: 'post',
  586. data: data
  587. })
  588. }
  589. //协议管理-删除
  590. export function iotProtocolDelete(data) {
  591. return request({
  592. url: '/iot/protocol/delete',
  593. method: 'post',
  594. data: data
  595. })
  596. }
  597. /***************** 硬件分类 *****************/
  598. //硬件分类-新增
  599. export function iotHardwareTypeAdd(data) {
  600. return request({
  601. url: '/iot/hardwareType/add',
  602. method: 'post',
  603. data: data
  604. })
  605. }
  606. //硬件分类-编辑
  607. export function iotHardwareTypeUpdate(data) {
  608. return request({
  609. url: '/iot/hardwareType/update',
  610. method: 'post',
  611. data: data
  612. })
  613. }
  614. //硬件分类-列表
  615. export function iotHardwareTypeList(data) {
  616. return request({
  617. url: '/iot/hardwareType/list',
  618. method: 'post',
  619. data: data
  620. })
  621. }
  622. //硬件分类-删除
  623. export function iotHardwareTypeDelete(data) {
  624. return request({
  625. url: '/iot/hardwareType/delete',
  626. method: 'post',
  627. data: data
  628. })
  629. }
  630. //硬件分类-详情
  631. export function iotHardwareTypeDetail(query) {
  632. return request({
  633. url: '/iot/hardwareType/detail',
  634. method: 'get',
  635. params: query
  636. })
  637. }
  638. //硬件分类-获取分类标识列表
  639. export function iotHardwareTypeGetTypeKey(query) {
  640. return request({
  641. url: '/iot/hardwareType/getTypeKey',
  642. method: 'get',
  643. params: query
  644. })
  645. }
  646. //硬件分类-功能下拉列表
  647. export function iotHardwareFunctionDropList(data) {
  648. return request({
  649. url: '/iot/hardware/function/dropList',
  650. method: 'post',
  651. data: data
  652. })
  653. }
  654. //硬件分类-功能列表
  655. export function iotHardwareFunctionList(data) {
  656. return request({
  657. url: '/iot/hardware/function/list',
  658. method: 'post',
  659. data: data
  660. })
  661. }
  662. //硬件分类-功能新增
  663. export function iotHardwareFunctionAdd(data) {
  664. return request({
  665. url: '/iot/hardware/function/add',
  666. method: 'post',
  667. data: data
  668. })
  669. }
  670. //硬件分类-功能编辑
  671. export function iotHardwareFunctionUpdate(data) {
  672. return request({
  673. url: '/iot/hardware/function/update',
  674. method: 'post',
  675. data: data
  676. })
  677. }
  678. //硬件分类-功能删除
  679. export function iotHardwareFunctionDelete(data) {
  680. return request({
  681. url: '/iot/hardware/function/delete',
  682. method: 'post',
  683. data: data
  684. })
  685. }
  686. /*********** 硬件设备 ************/
  687. //硬件设备-新增
  688. export function iotHardwareAdd(data) {
  689. return request({
  690. url: '/iot/hardware/add',
  691. method: 'post',
  692. data: data
  693. })
  694. }
  695. //硬件设备-编辑
  696. export function iotHardwareUpdate(data) {
  697. return request({
  698. url: '/iot/hardware/update',
  699. method: 'post',
  700. data: data
  701. })
  702. }
  703. //硬件设备-列表
  704. export function iotHardwareList(data) {
  705. return request({
  706. url: '/iot/hardware/list',
  707. method: 'post',
  708. data: data
  709. })
  710. }
  711. //硬件设备-详情
  712. export function iotHardwareDetail(query) {
  713. return request({
  714. url: '/iot/hardware/detail',
  715. method: 'get',
  716. params: query
  717. })
  718. }
  719. //硬件设备-删除
  720. export function iotHardwareDelete(data) {
  721. return request({
  722. url: '/iot/hardware/delete',
  723. method: 'post',
  724. data: data
  725. })
  726. }
  727. //硬件设备-新增-获取硬件分类
  728. export function iotHardwareTypeFindHardwareType(data) {
  729. return request({
  730. url: '/iot/hardwareType/findHardwareType',
  731. method: 'post',
  732. data: data
  733. })
  734. }
  735. //硬件设备-硬件日志
  736. export function iotHardwareLogList(data) {
  737. return request({
  738. url: '/iot/hardware/log/list',
  739. method: 'post',
  740. data: data
  741. })
  742. }
  743. /***********接收人*************/
  744. //获取接收人-列表
  745. export function iotAlarmReceiveList(data) {
  746. return request({
  747. url: '/iot/alarm/receive/list',
  748. method: 'post',
  749. data: data
  750. })
  751. }
  752. //获取接收人-新增
  753. export function iotAlarmReceiveAdd(data) {
  754. return request({
  755. url: '/iot/alarm/receive/add',
  756. method: 'post',
  757. data: data
  758. })
  759. }
  760. //获取接收人-删除
  761. export function iotAlarmReceiveDelete(data) {
  762. return request({
  763. url: '/iot/alarm/receive/delete',
  764. method: 'post',
  765. data: data
  766. })
  767. }
  768. //获取接收人-编辑
  769. export function iotAlarmReceiveUpdate(data) {
  770. return request({
  771. url: '/iot/alarm/receive/update',
  772. method: 'post',
  773. data: data
  774. })
  775. }
  776. //获取接收人-下拉列表
  777. export function iotAlarmReceiveDropList(data) {
  778. return request({
  779. url: '/iot/alarm/receive/dropList',
  780. method: 'post',
  781. data: data
  782. })
  783. }
  784. //消息日志-列表
  785. export function iotAlarmLogList(data) {
  786. return request({
  787. url: '/iot/alarm/log/list',
  788. method: 'post',
  789. data: data
  790. })
  791. }
  792. /************************* 监控配置 *************************/
  793. //设备监控-列表
  794. export function iotMonitorConfigList(data) {
  795. return request({
  796. url: '/iot/monitor/config/list',
  797. method: 'post',
  798. data: data
  799. })
  800. }
  801. //设备监控-新增
  802. export function iotMonitorConfigAdd(data) {
  803. return request({
  804. url: '/iot/monitor/config/add',
  805. method: 'post',
  806. data: data
  807. })
  808. }
  809. //设备监控-编辑
  810. export function iotMonitorConfigUpdate(data) {
  811. return request({
  812. url: '/iot/monitor/config/update',
  813. method: 'post',
  814. data: data
  815. })
  816. }
  817. //设备监控-删除
  818. export function iotMonitorConfigDelete(data) {
  819. return request({
  820. url: '/iot/monitor/config/delete',
  821. method: 'post',
  822. data: data
  823. })
  824. }
  825. //设备监控-详情
  826. export function iotMonitorConfigDetail(query) {
  827. return request({
  828. url: '/iot/monitor/config/detail',
  829. method: 'get',
  830. params: query
  831. })
  832. }
  833. //设备监控日志-列表
  834. export function iotMonitorLogList(data) {
  835. return request({
  836. url: '/iot/monitor/log/list',
  837. method: 'post',
  838. data: data
  839. })
  840. }
  841. /******************** 应用管理 ********************/
  842. //应用列表-列表
  843. export function iotAppInfoList(data) {
  844. return request({
  845. url: '/iot/app/info/list',
  846. method: 'post',
  847. data: data
  848. })
  849. }
  850. //应用列表-新增
  851. export function iotAppInfoAdd(data) {
  852. return request({
  853. url: '/iot/app/info/add',
  854. method: 'post',
  855. data: data
  856. })
  857. }
  858. //应用列表-编辑
  859. export function iotAppInfoUpdate(data) {
  860. return request({
  861. url: '/iot/app/info/update',
  862. method: 'post',
  863. data: data
  864. })
  865. }
  866. //应用列表-删除
  867. export function iotAppInfoDelete(data) {
  868. return request({
  869. url: '/iot/app/info/delete',
  870. method: 'post',
  871. data: data
  872. })
  873. }
  874. //应用列表-获取应用版本号
  875. export function iotAppInfoGetLastVersion(query) {
  876. return request({
  877. url: '/iot/app/info/getLastVersion',
  878. method: 'get',
  879. params: query
  880. })
  881. }
  882. //应用列表-code列表
  883. export function iotAppInfoGetCodeList(query) {
  884. return request({
  885. url: '/iot/app/info/getCodeList',
  886. method: 'get',
  887. params: query
  888. })
  889. }
  890. //应用列表-获取可升级设备列表
  891. export function iotAppInfoUpgradeDevices(data) {
  892. return request({
  893. url: '/iot/app/info/upgradeDevices',
  894. method: 'post',
  895. data: data
  896. })
  897. }
  898. //应用列表-批量升级
  899. export function iotAppInfoBatchUpgrade(data) {
  900. return request({
  901. url: '/iot/app/info/batchUpgrade',
  902. method: 'post',
  903. data: data
  904. })
  905. }
  906. //应用升级-列表
  907. export function iotAppUpgradeList(data) {
  908. return request({
  909. url: '/iot/app/upgrade/list',
  910. method: 'post',
  911. data: data
  912. })
  913. }
  914. //应用升级-撤销升级
  915. export function iotAppUpgradeDelete(data) {
  916. return request({
  917. url: '/iot/app/upgrade/delete',
  918. method: 'post',
  919. data: data
  920. })
  921. }
  922. /********************* 物联管理首页 *********************/
  923. //统计-设备在线离线
  924. export function iotStatisticsDeviceOnline(query) {
  925. return request({
  926. url: '/iot/statistics/deviceOnline',
  927. method: 'get',
  928. params: query
  929. })
  930. }
  931. //统计-设备分类
  932. export function iotStatisticsDeviceType(query) {
  933. return request({
  934. url: '/iot/statistics/deviceType',
  935. method: 'get',
  936. params: query
  937. })
  938. }
  939. //统计-设备统计
  940. export function iotStatisticsDevices(query) {
  941. return request({
  942. url: '/iot/statistics/devices',
  943. method: 'get',
  944. params: query
  945. })
  946. }
  947. //统计-告警消息统计
  948. export function iotStatisticsMessages(query) {
  949. return request({
  950. url: '/iot/statistics/messages',
  951. method: 'get',
  952. params: query
  953. })
  954. }
  955. //统计-消息列表
  956. export function iotAlarmLogMessages(data) {
  957. return request({
  958. url: '/iot/alarm/log/select',
  959. method: 'post',
  960. data: data
  961. })
  962. }