diff --git a/psdc-ui/src/api/bigview/bigview.js b/psdc-ui/src/api/bigview/bigview.js index 4d643e9..968f708 100644 --- a/psdc-ui/src/api/bigview/bigview.js +++ b/psdc-ui/src/api/bigview/bigview.js @@ -1,8 +1,8 @@ import request from '@/utils/request' /** 8个温度传感器接口*/ -export function getTemperature() { - return request.get('/indexLook/8wd') +export function getTemperature(data) { + return request.get('/indexLook/8wd/'+data) } /**运行设备工作信息查询接口*/ export function getDevicesInfo() { diff --git a/psdc-ui/src/api/emonitor/api.js b/psdc-ui/src/api/emonitor/api.js index 12013d7..672ab00 100644 --- a/psdc-ui/src/api/emonitor/api.js +++ b/psdc-ui/src/api/emonitor/api.js @@ -35,6 +35,30 @@ export function getFrld(data) { return request.get('/monitor/frdl/index/sel2/'+data) } //温度传感器 -export function getWdcgq() { - return request.get('/monitor/wdcgq/index/sel1') +export function getWdcgq(data) { + return request.get('/monitor/wdcgq/index/sel1/'+data) } +//沙盘 +export function getSp(data) { + return request.get('monitor/sp/index/sel1/'+data) +} +//策略管理 +export function getXl() { + return request.get('system/cl/index/selMyscene') +} +export function getTb(data) { + return request.post('system/cl/index/list',data) +} +export function postNew(data) { + return request.post('system/cl/index',data) +} +export function postXg(data) { + return request.put('system/cl/index',data) +} +export function postDel(data) { + return request.post('system/cl/index/del',data) +} +//获取用户设备列表 +export function getSb() { + return request.get('/monitor/db/index/selMydevices') +} \ No newline at end of file diff --git a/psdc-ui/src/views/bigview/index.vue b/psdc-ui/src/views/bigview/index.vue index 22297bb..a87722c 100644 --- a/psdc-ui/src/views/bigview/index.vue +++ b/psdc-ui/src/views/bigview/index.vue @@ -131,7 +131,7 @@ onMounted(()=>{ /** 8个温度传感器数据*/ const wdcgqArr = ref([]) function getWenduFun(){ - getTemperature().then((res)=>{ + getTemperature(16).then((res)=>{ wdcgqArr.value = res.data }) } diff --git a/psdc-ui/src/views/emonitor/db/index.vue b/psdc-ui/src/views/emonitor/db/index.vue index 160350b..5c533fd 100644 --- a/psdc-ui/src/views/emonitor/db/index.vue +++ b/psdc-ui/src/views/emonitor/db/index.vue @@ -181,15 +181,18 @@ export default { onMounted(() => {//需要获取到element,所以是onMounted的Hook getData(13).then((res)=>{ console.log(res) - data.totp=res.data.totp - data.totwh=res.data.totwh - data.eday=res.data.eday - data.emonth=res.data.emonth - delete res.data.todayUsePowers.deviceId - delete res.data.todayUsePowers.samDate - delete res.data.todayUsePowers.userId - let arr = Object.values(res.data.todayUsePowers) - data.glData=arr + if(res.data){ + data.totp=res.data.totp + data.totwh=res.data.totwh + data.eday=res.data.eday + data.emonth=res.data.emonth + delete res.data.todayUsePowers.deviceId + delete res.data.todayUsePowers.samDate + delete res.data.todayUsePowers.userId + let arr = Object.values(res.data.todayUsePowers) + data.glData=arr + } + @@ -304,6 +307,7 @@ export default { itemStyle:{ color:'#2F8EE0' }, + symbol: "none", //去掉拐角点 }, ], }); diff --git a/psdc-ui/src/views/emonitor/drgl/index.vue b/psdc-ui/src/views/emonitor/drgl/index.vue index 6f5ad1c..8e170f0 100644 --- a/psdc-ui/src/views/emonitor/drgl/index.vue +++ b/psdc-ui/src/views/emonitor/drgl/index.vue @@ -422,21 +422,24 @@ export default { }) getDrgl(1).then((res)=>{ console.log('1',res) - data.tempIn=res.data.tempIn - data.tempOut=res.data.tempOut - data.totp = res.data.totp - data.totwh = res.data.totwh - if(res.data.runStatus==1){ - data.runStatus = '开启' - }else if (res.data.runStatus==2){ - data.runStatus = '关闭' + if(res.data){ + data.tempIn=res.data.tempIn + data.tempOut=res.data.tempOut + data.totp = res.data.totp + data.totwh = res.data.totwh + if(res.data.runStatus==1){ + data.runStatus = '开启' + }else if (res.data.runStatus==2){ + data.runStatus = '关闭' + } + //gl + delete res.data.todayUsePowers.deviceId + delete res.data.todayUsePowers.samDate + delete res.data.todayUsePowers.userId + let arr = Object.values(res.data.todayUsePowers) + data.glData=arr } - //gl - delete res.data.todayUsePowers.deviceId - delete res.data.todayUsePowers.samDate - delete res.data.todayUsePowers.userId - let arr = Object.values(res.data.todayUsePowers) - data.glData=arr + let myChart3 = echarts.getInstanceByDom(document.getElementById("myEcharts3")); if (myChart3){ myChart3.dispose() @@ -483,6 +486,7 @@ export default { itemStyle:{ color:'#2F8EE0' }, + symbol: "none", //去掉拐角点 }, ], }); diff --git a/psdc-ui/src/views/emonitor/frdl/index.vue b/psdc-ui/src/views/emonitor/frdl/index.vue index 066566a..c4bbe16 100644 --- a/psdc-ui/src/views/emonitor/frdl/index.vue +++ b/psdc-ui/src/views/emonitor/frdl/index.vue @@ -460,6 +460,7 @@ export default { itemStyle:{ color:'#2F8EE0' }, + symbol: "none", //去掉拐角点 }, ], }); diff --git a/psdc-ui/src/views/emonitor/kqyrb/index.vue b/psdc-ui/src/views/emonitor/kqyrb/index.vue index 4fa2746..9d403d1 100644 --- a/psdc-ui/src/views/emonitor/kqyrb/index.vue +++ b/psdc-ui/src/views/emonitor/kqyrb/index.vue @@ -480,6 +480,7 @@ export default { itemStyle:{ color:'#2F8EE0' }, + symbol: "none", //去掉拐角点 }, ], }); diff --git a/psdc-ui/src/views/emonitor/sp/index.vue b/psdc-ui/src/views/emonitor/sp/index.vue index d356c8b..30fd137 100644 --- a/psdc-ui/src/views/emonitor/sp/index.vue +++ b/psdc-ui/src/views/emonitor/sp/index.vue @@ -1,10 +1,35 @@ -