diff --git a/src/views/iscs/iscsDesign/index.vue b/src/views/iscs/iscsDesign/index.vue index 334c2a102..220c0788f 100644 --- a/src/views/iscs/iscsDesign/index.vue +++ b/src/views/iscs/iscsDesign/index.vue @@ -75,9 +75,9 @@ export default { this.$store.dispatch('config/resize', { width: width, height: height }); }, setMapResize(LeftWidth) { - const widths = this.$store.state.app.width - 521 - LeftWidth; - const heights = this.$store.state.app.height - 90; - this.$store.dispatch('config/resize', { width: widths, height: heights }); + const width = this.$store.state.app.width - 521 - LeftWidth; + const height = this.$store.state.app.height - 90; + this.$store.dispatch('config/resize', { width: width, height: height }); } } }; diff --git a/src/views/iscs/iscsDraw/index.vue b/src/views/iscs/iscsDraw/index.vue index ef9c5980e..6fea410a7 100644 --- a/src/views/iscs/iscsDraw/index.vue +++ b/src/views/iscs/iscsDraw/index.vue @@ -52,14 +52,8 @@ export default { watch: { $route(val) { this.iscsChange(this.$route.params.id); - }, - '$store.state.app.windowSizeCount': function() { - this.$store.dispatch('config/resize', { width: this.$store.state.app.width - 521 - this.widthLeft, height: this.$store.state.app.height - 60 }); } }, - created() { - this.$store.dispatch('config/resize', { width: this.$store.state.app.width - 521 - this.widthLeft, height: this.$store.state.app.height - 60 }); - }, mounted() { this.$refs.iscsPlate.show(); this.$refs.iscsPlate.drawIscsInit(); diff --git a/src/views/iscsSystem/index.vue b/src/views/iscsSystem/index.vue index 43ba2b6c8..d45214c85 100644 --- a/src/views/iscsSystem/index.vue +++ b/src/views/iscsSystem/index.vue @@ -68,9 +68,6 @@ export default { '$store.state.config.canvasSizeCount': function (val) { this.reSize(); }, - '$store.state.app.windowSizeCount': function() { - this.setWindowSize(); - }, '$store.state.socket.equipmentStatus': function (val) { if (val.length) { this.statusMessage(val); @@ -169,13 +166,6 @@ export default { this.$iscs && this.$iscs.resize({ width: this.width, height: this.height }); }); }, - setWindowSize() { - this.$nextTick(() => { - const width = this.size ? this.size.width : this.$store.state.app.width; - const height = this.size ? this.size.height : this.$store.state.app.height; - this.$store.dispatch('config/resize', { width: width, height: height }); - }); - }, back() { this.group = this.$route.query.group; this.$store.dispatch('training/over').then(() => {