diff --git a/src/views/iscs/iscsSystemNew/stationConfig/environment.vue b/src/views/iscs/iscsSystemNew/stationConfig/environment.vue index 13626715e..a402dc7bc 100644 --- a/src/views/iscs/iscsSystemNew/stationConfig/environment.vue +++ b/src/views/iscs/iscsSystemNew/stationConfig/environment.vue @@ -3,17 +3,17 @@
{{ title }}
-
小系统1模式
-
小系统2模式
-
小系统3模式
+
小系统1模式
+
小系统2模式
+
小系统3模式
-
照明系统
-
照明系统监测
+
照明系统
+
照明系统监测
-
-
人防门
-
防淹门
+
+
人防门
+
防淹门
@@ -50,6 +50,7 @@ export default { data() { return { title: '', + userInterface:'', bacground: 'rgba(0,0,0,0)', loading: false, width: window.innerWidth, @@ -60,7 +61,6 @@ export default { }, watch:{ 'mode':function() { - debugger; this.getInitData(); } }, @@ -70,28 +70,29 @@ export default { methods:{ handleButton(type, judge) { if (!judge) { - this.mode = `environmentFive${type}`; this.system = 'environmentFive'; this.title = `${this.stationName} 小系统${Number(type)}原理图`; - this.getDetail(); + this.userInterface = `environmentFive${type}`; + this.getDetail(this.userInterface); } }, handleIllumination(type, judge) { if (!judge) { - this.mode = `environmentNine${type}`; this.system = 'environmentNine'; this.title = `${this.stationName} 照明系统`; - this.getDetail(); + this.userInterface = `environmentNine${type}`; + this.getDetail(this.userInterface); } }, handleEnvironment(type, judge, name) { if (!judge) { - this.mode = type; this.title = `${this.stationName} ${name}`; - this.getDetail(); + this.userInterface = type; + this.getDetail(this.userInterface ); } }, getInitData() { + let userInterface = ''; this.system = 'environment'; if (this.mode == 'environmentThree') { this.title = this.stationName + ' 隧道通风系统'; @@ -102,7 +103,7 @@ export default { this.scaleRate = window.innerWidth / 2000; this.height = 900; } else if (this.mode == 'environmentFive') { - this.mode = 'environmentFive01'; + userInterface = 'environmentFive01'; this.system = 'environmentFive'; this.title = this.stationName + ' 小系统1原理图'; this.scaleRate = window.innerWidth / 2000; @@ -121,7 +122,7 @@ export default { this.height = 900; } else if (this.mode == 'environmentNine') { this.system = 'environmentNine'; - this.mode = 'environmentNine01'; + userInterface = 'environmentNine01'; this.title = this.stationName + ' 照明系统'; this.scaleRate = window.innerWidth / 1920; this.height = 800; @@ -137,20 +138,22 @@ export default { this.title = this.stationName + ' 人防门'; this.scaleRate = window.innerWidth / 1920; this.height = 900; + userInterface = this.mode; } else if (this.mode == 'environmentTwelve') { this.title = this.stationName + ' 防淹门系统'; this.scaleRate = window.innerWidth / 1920; this.height = 900; } - this.getDetail(); + this.userInterface = userInterface; + this.getDetail(userInterface); }, - getDetail() { + getDetail(userInterface) { const params = { // lineCode: this.$route.query.lineCode, mapId: this.$route.query.mapId, system: this.system, totalSystem :'environment02', - userInterface : this.mode + userInterface : userInterface || this.mode }; this.loading = true; this.$refs.iscsPlate.show({}, this.width, this.height, this.scaleRate);