-
+ :style="{ transform: 'scale(' + scaleNum + ')' }">
+
+ style="display: grid; gap: 16px; grid-template-rows: 462px 462px">
@@ -47,16 +49,16 @@
import KHeader from '../components/Header';
import TopThree from './TopThree';
import BottomTwo from './BottomTwo';
-import screenfull from 'screenfull'
-import { debounce } from '@/utils/debounce'
-import { getDcsMsg, getMesMsg } from './../utils/wsInterface'
+import screenfull from 'screenfull';
+import { debounce } from '@/utils/debounce';
+import { getDcsMsg, getMesMsg } from './../utils/wsInterface';
export default {
name: 'deepProcessingBoard',
components: {
KHeader,
TopThree,
- BottomTwo
+ BottomTwo,
},
// provide() {
// return {
@@ -66,83 +68,90 @@ export default {
data() {
return {
isFullScreen: false,
- scaleNum: 0.8
+ scaleNum: 0.8,
};
},
created() {
- this.init()
+ this.init();
},
destroy() {
- this.destroy()
+ this.destroy();
},
mounted() {
this.boxReset = debounce(() => {
- this.resetSize()
- }, 300)
- this.boxReset()
- window.addEventListener('resize', () => {
- this.boxReset()
- })
+ this.resetSize();
+ }, 300);
+ this.boxReset();
+ window.addEventListener('resize', () => {
+ this.boxReset();
+ });
// closeWebsocket()
// getDcsMsg()
// getMesMsg()
- console.log('mounted...........')
+ },
+ mounted() {
+ this.boxReset();
+ window.addEventListener('resize', this.boxReset);
},
destroyed() {
- console.log('destroyed...........')
+ window.removeEventListener('resize', this.boxReset);
+ this.destroy();
},
methods: {
+ boxReset() {
+ debounce(() => {
+ this.resetSize();
+ }, 300)();
+ },
change() {
- this.isFullScreen = screenfull.isFullscreen
- },
- init() {
- if (screenfull.isEnabled) {
- screenfull.on('change', this.change)
- }
- },
- destroy() {
- if (screenfull.isEnabled) {
- screenfull.off('change', this.change)
- }
- },
+ this.isFullScreen = screenfull.isFullscreen;
+ },
+ init() {
+ if (screenfull.isEnabled) {
+ screenfull.on('change', this.change);
+ }
+ },
+ destroy() {
+ if (screenfull.isEnabled) {
+ screenfull.off('change', this.change);
+ }
+ },
// 全屏
screenfullChange() {
- if (!screenfull.isEnabled) {
- this.$message({
- message: 'you browser can not work',
- type: 'warning'
- })
- return false
- }
- screenfull.toggle(this.$refs.deepProcessingContainerB)
- },
+ if (!screenfull.isEnabled) {
+ this.$message({
+ message: 'you browser can not work',
+ type: 'warning',
+ });
+ return false;
+ }
+ screenfull.toggle(this.$refs.deepProcessingContainerB);
+ },
resetSize() {
- let deepProcessingContainer = document.getElementById('deepProcessingContainer')
- let rw = parseFloat(window.innerWidth)
- let rh = parseFloat(window.innerHeight)
- let bw = parseFloat(deepProcessingContainer.style.width)
- let bh = parseFloat(deepProcessingContainer.style.height)
- let wx = 0
- let hx = 0
+ let deepProcessingContainer = document.getElementById(
+ 'deepProcessingContainer'
+ );
+ let rw = parseFloat(window.innerWidth);
+ let rh = parseFloat(window.innerHeight);
+ let bw = parseFloat(deepProcessingContainer.style.width);
+ let bh = parseFloat(deepProcessingContainer.style.height);
+ let wx = 0;
+ let hx = 0;
if (screenfull.isFullscreen) {
- console.log('全屏')
- wx = rw / bw
- hx = rh / bh
- console.log(this.scaleNum)
- }else{
- console.log('非全屏')
- console.log(this.$store.state.app.sidebar.opened)
+ wx = rw / bw;
+ hx = rh / bh;
+ } else {
if (this.$store.state.app.sidebar.opened) {
- wx = (rw-280) / bw
- hx = (rh-116) / bh
- }else{
- wx = (rw-85) / bw
- hx = (rh-116) / bh
+ wx = (rw - 280) / bw;
+ hx = (rh - 116) / bh;
+ } else {
+ wx = (rw - 85) / bw;
+ hx = (rh - 116) / bh;
}
}
- this.scaleNum = wx
- }
- }
+ this.scaleNum = wx;
+ },
+ },
};
diff --git a/src/views/databoard/kiln/index.vue b/src/views/databoard/kiln/index.vue
index ff95bb76..9ec67246 100644
--- a/src/views/databoard/kiln/index.vue
+++ b/src/views/databoard/kiln/index.vue
@@ -1,8 +1,11 @@
-
+
-
+ :style="{ transform: 'scale(' + scaleNum + ')' }">
+
-
+
-
@@ -36,8 +46,8 @@
import KHeader from '../components/Header';
import LeftFour from './LeftFour';
import RightTwo from './RightTwo.vue';
-import screenfull from 'screenfull'
-import { debounce } from '@/utils/debounce'
+import screenfull from 'screenfull';
+import { debounce } from '@/utils/debounce';
export default {
name: 'Kiln',
@@ -46,10 +56,10 @@ export default {
LeftFour,
RightTwo,
},
- computed:{
+ computed: {
sidebarStatus() {
return this.$store.state.app.sidebar.opened;
- }
+ },
},
// provide() {
// return {
@@ -59,84 +69,80 @@ export default {
data() {
return {
isFullScreen: false,
- scaleNum: 0.8
+ scaleNum: 0.8,
};
},
watch: {
sidebarStatus() {
- this.boxReset()
+ this.boxReset();
},
},
created() {
- this.init()
- },
- destroy() {
- this.destroy()
+ this.init();
},
mounted() {
- this.boxReset = debounce(() => {
- this.resetSize()
- }, 300)
- this.boxReset()
- window.addEventListener('resize', () => {
- this.boxReset()
- })
+ this.boxReset();
+ window.addEventListener('resize', this.boxReset);
+ },
+ destroyed() {
+ window.removeEventListener('resize', this.boxReset);
+ this.destroy();
},
methods: {
+ boxReset() {
+ debounce(() => {
+ this.resetSize();
+ }, 300)();
+ },
change() {
- this.isFullScreen = screenfull.isFullscreen
- },
+ this.isFullScreen = screenfull.isFullscreen;
+ },
- init() {
- if (screenfull.isEnabled) {
- screenfull.on('change', this.change)
- }
- },
+ init() {
+ if (screenfull.isEnabled) {
+ screenfull.on('change', this.change);
+ }
+ },
- destroy() {
- if (screenfull.isEnabled) {
- screenfull.off('change', this.change)
- }
- },
+ destroy() {
+ if (screenfull.isEnabled) {
+ screenfull.off('change', this.change);
+ }
+ },
// 全屏
screenfullChange() {
- if (!screenfull.isEnabled) {
- this.$message({
- message: 'you browser can not work',
- type: 'warning'
- })
- return false
- }
- screenfull.toggle(this.$refs.kilnContainerB)
- },
+ if (!screenfull.isEnabled) {
+ this.$message({
+ message: 'you browser can not work',
+ type: 'warning',
+ });
+ return false;
+ }
+ screenfull.toggle(this.$refs.kilnContainerB);
+ },
resetSize() {
- let kilnContainerBox = document.getElementById('kilnContainer')
- console.log(kilnContainerBox)
- let rw = parseFloat(window.innerWidth)
- let rh = parseFloat(window.innerHeight)
- let bw = parseFloat(kilnContainerBox.style.width)
- let bh = parseFloat(kilnContainerBox.style.height)
- let wx = 0
- let hx = 0
+ let kilnContainerBox = document.getElementById('kilnContainer');
+ let rw = parseFloat(window.innerWidth);
+ let rh = parseFloat(window.innerHeight);
+ let bw = parseFloat(kilnContainerBox.style.width);
+ let bh = parseFloat(kilnContainerBox.style.height);
+ let wx = 0;
+ let hx = 0;
if (screenfull.isFullscreen) {
- console.log('全屏')
- wx = rw / bw
- hx = rh / bh
- console.log(this.scaleNum)
- }else{
- console.log('非全屏')
- console.log(this.$store.state.app.sidebar.opened)
+ wx = rw / bw;
+ hx = rh / bh;
+ } else {
if (this.$store.state.app.sidebar.opened) {
- wx = (rw-280) / bw
- hx = (rh-116) / bh
- }else{
- wx = (rw-85) / bw
- hx = (rh-116) / bh
+ wx = (rw - 280) / bw;
+ hx = (rh - 116) / bh;
+ } else {
+ wx = (rw - 85) / bw;
+ hx = (rh - 116) / bh;
}
}
- this.scaleNum = wx
- }
- }
+ this.scaleNum = wx;
+ },
+ },
};
diff --git a/src/views/databoard/wholePlant/index.vue b/src/views/databoard/wholePlant/index.vue
index 6591c61b..7575e99e 100644
--- a/src/views/databoard/wholePlant/index.vue
+++ b/src/views/databoard/wholePlant/index.vue
@@ -1,8 +1,11 @@
-
+
-
+ :style="{ transform: 'scale(' + scaleNum + ')' }">
+
-
+
-
+
-
@@ -40,8 +52,8 @@ import KHeader from '../components/Header';
import LeftTwo from './LeftTwo';
import MiddleTwo from './MiddleTwo';
import RightTwo from './RightTwo';
-import screenfull from 'screenfull'
-import { debounce } from '@/utils/debounce'
+import screenfull from 'screenfull';
+import { debounce } from '@/utils/debounce';
export default {
name: 'wholePlantBoard',
@@ -49,7 +61,7 @@ export default {
KHeader,
LeftTwo,
MiddleTwo,
- RightTwo
+ RightTwo,
},
// provide() {
// return {
@@ -59,80 +71,77 @@ export default {
data() {
return {
isFullScreen: false,
- scaleNum: 0.8
+ scaleNum: 0.8,
};
},
created() {
- this.init()
+ this.init();
},
destroy() {
- this.destroy()
+ this.destroy();
},
mounted() {
- this.boxReset = debounce(() => {
- this.resetSize()
- }, 300)
- this.boxReset()
- window.addEventListener('resize', () => {
- this.boxReset()
- })
- console.log('mounted...........')
+ this.boxReset();
+ window.addEventListener('resize', this.boxReset);
},
destroyed() {
- console.log('destroyed...........')
+ window.removeEventListener('resize', this.boxReset);
},
methods: {
+ boxReset() {
+ debounce(() => {
+ this.resetSize();
+ }, 300)();
+ },
change() {
- this.isFullScreen = screenfull.isFullscreen
- },
- init() {
- if (screenfull.isEnabled) {
- screenfull.on('change', this.change)
- }
- },
- destroy() {
- if (screenfull.isEnabled) {
- screenfull.off('change', this.change)
- }
- },
+ this.isFullScreen = screenfull.isFullscreen;
+ },
+ init() {
+ if (screenfull.isEnabled) {
+ screenfull.on('change', this.change);
+ }
+ },
+ destroy() {
+ if (screenfull.isEnabled) {
+ screenfull.off('change', this.change);
+ }
+ },
// 全屏
screenfullChange() {
- if (!screenfull.isEnabled) {
- this.$message({
- message: 'you browser can not work',
- type: 'warning'
- })
- return false
- }
- screenfull.toggle(this.$refs.wholePlantContainerB)
- },
+ if (!screenfull.isEnabled) {
+ this.$message({
+ message: 'you browser can not work',
+ type: 'warning',
+ });
+ return false;
+ }
+ screenfull.toggle(this.$refs.wholePlantContainerB);
+ },
resetSize() {
- let wholePlantContainerBox = document.getElementById('wholePlantContainer')
- let rw = parseFloat(window.innerWidth)
- let rh = parseFloat(window.innerHeight)
- let bw = parseFloat(wholePlantContainerBox.style.width)
- let bh = parseFloat(wholePlantContainerBox.style.height)
- let wx = 0
- let hx = 0
+ let wholePlantContainerBox = document.getElementById(
+ 'wholePlantContainer'
+ );
+ let rw = parseFloat(window.innerWidth);
+ let rh = parseFloat(window.innerHeight);
+ let bw = parseFloat(wholePlantContainerBox.style.width);
+ let bh = parseFloat(wholePlantContainerBox.style.height);
+ let wx = 0;
+ let hx = 0;
if (screenfull.isFullscreen) {
- console.log('全屏')
- wx = rw / bw
- hx = rh / bh
- console.log(this.scaleNum)
- }else{
- console.log('非全屏')
- console.log(this.$store.state.app.sidebar.opened)
+ wx = rw / bw;
+ hx = rh / bh;
+ } else {
if (this.$store.state.app.sidebar.opened) {
- wx = (rw-280) / bw
- hx = (rh-116) / bh
- }else{
- wx = (rw-85) / bw
- hx = (rh-116) / bh
+ wx = (rw - 280) / bw;
+ hx = (rh - 116) / bh;
+ } else {
+ wx = (rw - 85) / bw;
+ hx = (rh - 116) / bh;
}
}
- this.scaleNum = wx
- }
- }
+ this.scaleNum = wx;
+ },
+ },
};
diff --git a/src/views/order/monitoring/components/monitoringRingCharts.vue b/src/views/order/monitoring/components/monitoringRingCharts.vue
index 08f193a7..248602be 100644
--- a/src/views/order/monitoring/components/monitoringRingCharts.vue
+++ b/src/views/order/monitoring/components/monitoringRingCharts.vue
@@ -1,168 +1,223 @@
-
-
-
- 各集团订单环形图
-
-
-
-
-
- {{item.orderGroupName}}
- 订单计划数量{{item.num}}
-
-
-
-
-
{{subItem.value}}
-
-
-
- {{subItem.name}}
-
-
-
-
-
-
-
-
-
+
+
+
+ 各集团订单环形图
+
+
+
+
+
+
+ {{ item.orderGroupName }}
+
+ 订单计划数量{{ item.num }}
+
+
+
+
+
+ {{ subItem.value }}
+
+
+
+
+ {{ subItem.name }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file