Browse Source

修改监控中心样式

temp
fks-yangshouda 3 months ago
parent
commit
0c822e6d29
  1. 2
      hx-ai-intelligent/src/view/monitor/energyMonitor/page.vue
  2. 19
      hx-ai-intelligent/src/view/monitor/energyMonitor/tree/index.vue
  3. 2
      hx-ai-intelligent/src/view/monitor/environmentMonitor/index.vue

2
hx-ai-intelligent/src/view/monitor/energyMonitor/page.vue

@ -104,6 +104,8 @@
} else { } else {
treeRef.value.getSelectAnalyse(activeKey.value); treeRef.value.getSelectAnalyse(activeKey.value);
} }
isGraph.value = true;
iconName.value = 'biaoge1';
}; };
function change() { function change() {

19
hx-ai-intelligent/src/view/monitor/energyMonitor/tree/index.vue

@ -131,6 +131,8 @@
import { device, group } from '/@/api/deviceManage'; import { device, group } from '/@/api/deviceManage';
import { energyMonitor } from '/@/api/monitor'; import { energyMonitor } from '/@/api/monitor';
import { dict, getEnum } from '/@/api'; import { dict, getEnum } from '/@/api';
//
import { items } from '/@/store/item';
export default defineComponent({ export default defineComponent({
// eslint-disable-next-line vue/multi-word-component-names // eslint-disable-next-line vue/multi-word-component-names
@ -139,6 +141,9 @@
const select = ref<HTMLElement | null>(null); const select = ref<HTMLElement | null>(null);
const divWidth = ref(0); // div const divWidth = ref(0); // div
//
const state = items();
// div // div
// const getDivWidth = () => { // const getDivWidth = () => {
// if (select.value) { // if (select.value) {
@ -311,6 +316,8 @@
}; };
const getSelectGraph = (key: any) => { const getSelectGraph = (key: any) => {
//
state.setLoading(true);
if (key) { if (key) {
activeKey.value = key; activeKey.value = key;
// if ( // if (
@ -407,9 +414,15 @@
pageData.graphTableColumns = []; pageData.graphTableColumns = [];
pageData.graphGraphList = []; pageData.graphGraphList = [];
} }
})
.finally(() => {
//
state.setLoading(false);
}); });
}; };
const getSelectAnalyse = (key: any) => { const getSelectAnalyse = (key: any) => {
//
state.setLoading(true);
if (key) { if (key) {
activeKey.value = key; activeKey.value = key;
// if (pageData.analysisGraphList.length > 0 && pageData.analysisTableList.length > 0) { // if (pageData.analysisGraphList.length > 0 && pageData.analysisTableList.length > 0) {
@ -480,6 +493,12 @@
pageData.analysisTableList = []; pageData.analysisTableList = [];
pageData.analysisGraphList = []; pageData.analysisGraphList = [];
} }
})
.finally(() => {
//
setTimeout(function () {
state.setLoading(false);
}, 2000);
}); });
}; };

2
hx-ai-intelligent/src/view/monitor/environmentMonitor/index.vue

@ -29,7 +29,7 @@
<aggregate-data ref="aggregateDataRef" v-if="activeKey == '1'" style="height: 85%" /> <aggregate-data ref="aggregateDataRef" v-if="activeKey == '1'" style="height: 85%" />
<history-data ref="historyDataRef" v-if="activeKey == '2'" style="height: 90%" /> <history-data ref="historyDataRef" v-if="activeKey == '2'" style="height: 90%" />
<average-data ref="averageDataRef" v-if="activeKey == '3'" style="height: 85%" /> <average-data ref="averageDataRef" v-if="activeKey == '3'" style="height: 90%" />
</div> </div>
<a-modal <a-modal

Loading…
Cancel
Save