From 67cd85bedea704bbf960c999811fcfd6cc905c91 Mon Sep 17 00:00:00 2001 From: jiminglei <836545853@qq.com> Date: Fri, 12 May 2023 17:14:18 +0800 Subject: [PATCH] 11 --- psdc-ui/src/api/emonitor/api.js | 40 +++ psdc-ui/src/main.js | 1 + psdc-ui/src/views/emonitor/db/index.vue | 165 ++++++++----- psdc-ui/src/views/emonitor/drgl/index.vue | 44 +++- psdc-ui/src/views/emonitor/frdl/index.vue | 40 ++- psdc-ui/src/views/emonitor/kqyrb/index.vue | 39 ++- psdc-ui/src/views/emonitor/wdcgq/index.vue | 12 +- psdc-ui/src/views/emonitor/xrgl/index.vue | 275 ++++++++++++++++----- 8 files changed, 467 insertions(+), 149 deletions(-) create mode 100644 psdc-ui/src/api/emonitor/api.js diff --git a/psdc-ui/src/api/emonitor/api.js b/psdc-ui/src/api/emonitor/api.js new file mode 100644 index 0000000..99a166c --- /dev/null +++ b/psdc-ui/src/api/emonitor/api.js @@ -0,0 +1,40 @@ +import request from '@/utils/request' +//总电表 +export function getData(data) { + return request.get('/monitor/db/index/sel1/'+data) +} +export function getZdb(data) { + return request.get('/monitor/db/index/sel2/'+data) +} +//电热锅炉 +export function getDrgl(data) { + return request.get('/monitor/drgl/index/sel1/'+data) +} +export function getDcgl(data) { + return request.get('/monitor/drgl/index/sel2/'+data) +} +//蓄热锅炉 +export function getXrgl(data) { + return request.get('/monitor/xrgl/index/sel1/'+data) +} +export function getXcgl(data) { + return request.get('/monitor/xrgl/index/sel2/'+data) +} +//空气热源泵 +export function getKqryb(data) { + return request.get('/monitor/kqyrb/index/sel1/'+data) +} +export function getKqyrb(data) { + return request.get('/monitor/kqyrb/index/sel2/'+data) +} +//发热电缆 +export function getFrdl(data) { + return request.get('/monitor/frdl/index/sel1/'+data) +} +export function getFrld(data) { + return request.get('/monitor/frdl/index/sel2/'+data) +} +//温度传感器 +export function getWdcgq(data) { + return request.get('/monitor/wdcgq/index/sel1/'+data) +} diff --git a/psdc-ui/src/main.js b/psdc-ui/src/main.js index 698c2e0..750ad40 100644 --- a/psdc-ui/src/main.js +++ b/psdc-ui/src/main.js @@ -45,6 +45,7 @@ import DictTag from '@/components/DictTag' const app = createApp(App) // 全局方法挂载 +app.config.warnHandler = () => null; app.config.globalProperties.useDict = useDict app.config.globalProperties.download = download app.config.globalProperties.parseTime = parseTime diff --git a/psdc-ui/src/views/emonitor/db/index.vue b/psdc-ui/src/views/emonitor/db/index.vue index 09e2b14..6f725b6 100644 --- a/psdc-ui/src/views/emonitor/db/index.vue +++ b/psdc-ui/src/views/emonitor/db/index.vue @@ -5,7 +5,7 @@
当前功率
-