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 @@
pic

当前功率

-

0kW

+

{{data.num}}kW

@@ -56,16 +56,103 @@