diff --git a/yanzhu-bigscreen/src/api/powerIot.js b/yanzhu-bigscreen/src/api/powerIot.js new file mode 100644 index 00000000..e3f2bdc2 --- /dev/null +++ b/yanzhu-bigscreen/src/api/powerIot.js @@ -0,0 +1,42 @@ +import request from "@/utils/request"; + +// 查询配电箱点位列表 +const findProAllConfigPoint = (proId) => { + return request({ + url: `/manage/iotConfigPoint/findProAllConfigPoint/${proId}`, + method: "get", + }); +}; + +// 查询配电箱点位详情 +const findConfigPointInfo = (id) => { + return request({ + url: `/manage/iotConfigPoint/${id}`, + method: "get", + }); +}; + +// 查询配电箱数据统计 +const findIotDatasMonitor = (proId,date) => { + return request({ + url: `/manage/iotDatas/findIotDatasMonitor/${proId}?date=${date}`, + method: "get", + }); +}; + +// 查询配电箱预警数据 +const findIotWarnings = (proId) => { + return request({ + url: `/manage/iotWarning/findIotWarnings/${proId}`, + method: "get", + }); +}; + + + +export default { + findProAllConfigPoint, + findConfigPointInfo, + findIotDatasMonitor, + findIotWarnings +}; diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index ae02d4b5..2ec51871 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -209,6 +209,9 @@ export default { case 304: this.$router.push("/towerCrane"); break; + case 306: + this.$router.push("/powerIot"); + break; case 4: this.$router.push("/prjQuality"); break; diff --git a/yanzhu-bigscreen/src/components/module/module-one-1-3.vue b/yanzhu-bigscreen/src/components/module/module-one-1-3.vue index 579ff33e..932372c4 100644 --- a/yanzhu-bigscreen/src/components/module/module-one-1-3.vue +++ b/yanzhu-bigscreen/src/components/module/module-one-1-3.vue @@ -1,6 +1,6 @@