1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<template>
    <div class="containerMR">
        <!-- <button @click="Test()" style="height: 500px; width: 500px;"></button> -->
        <mainRight v-if="right1"></mainRight> <!-- 首页概况 -->
        <mainRightQY v-else-if="right2"></mainRightQY> <!-- 企业运营 -->
        <mainRightSF v-else-if="right3" ></mainRightSF><!-- 企业安全生产 -->
        <mainRightYJ v-else-if="right4"></mainRightYJ> <!-- 应急管理-->
        <mainRightHJ v-else-if="right5"></mainRightHJ> <!-- 环境监测 -->
        <mainRightWater v-else-if="right6"></mainRightWater><!-- 智慧水务 -->
        <mainindexSF2 v-else-if="right7"   ></mainindexSF2><!-- 企业安全生产2 -->
        <MainRightInver v-else-if="right8"   ></MainRightInver><!-- 企业安全生产2 -->
        <MainRightWater2 v-else-if="right9"></MainRightWater2><!-- 智慧水务2 -->
    </div>
 
</template>
 
<script>
 
    import mainRight from './Parkoverview/index.vue'
    import mainRightQY from './EnterpriseOperation/index.vue'
    import mainRightYJ from './Emergency/index.vue'
    import mainRightHJ from './Environmental/index.vue'
    import mainRightSF from './Safe/index.vue'
    import mainRightWater from './water/index.vue'
    import mainindexSF2 from './Safe/indexSF2.vue'
    import MainRightInver from './investment/index.vue'
    import MainRightWater2 from './water/indexRight2.vue'
 
 
    export default {
        components: {
            mainRight,
            mainRightQY,
            mainRightYJ,
            mainRightHJ,
            mainRightSF,
            mainindexSF2,
            mainRightWater,
            MainRightInver,
            MainRightWater2
        },
        data() {
            return {
                right1: true,
                right2: false,
                right3: false,
                right4: false,
                right5: false,
                right6: false,
                right7: false,
                right8: false,
                right9:false
            };
        },
 
        methods: {
            componmentInit() {
                this.right1 = false;
                this.right2 = false;
                this.right3 = false;
                this.right4 = false;
                this.right5 = false;
                this.right6 = false;
                this.right7 = false;
                this.right8 = false;
                this.right9=false;
            },
 
            componentDisplay(parm) {
                this.componmentInit();
                switch (parm) {
                    case "0":
                        this.right1 = true;
                        break;
                    case "1":
                        this.right2 = true;
                        break;
                    case "2":
                        this.right3 = true;
                        break;
                    case "3":
                        
                        this.right4 = true;
                        break;
                    case "4":
                        this.right5 = true;
                        break;
                    case "5":
                        this.right6=true;
                        //this.right9 = true;
                        break;
                    case "6":
                        this.right8 = true;
                        break;
 
                }
 
                if(this.right3!=true&&this.right8!=true){
                    if(window.sceneObj.handler!=null){
                        window.sceneObj.handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
                    }
                    // if(window.sceneObj.WHPQYFB!=null){
                    //     window.sceneObj.WHPQYFB.setVisibility(false);
                    // }
                    this.$store.commit('savePath', "")
                }
 
 
 
 
            },
 
 
 
        },
 
 
        watch: {
          '$store.state.Pid': {
            deep: true, //深度监听
            handler(newValue, oldValue) {
            if(newValue==""){
                if(window.sceneObj.handler!=null){
                    window.sceneObj.handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
                }
                // if(window.sceneObj.WHPQYFB!=null){
                //     window.sceneObj.WHPQYFB.setVisibility(false);
                // }
                return;
            }
            this.componmentInit();
            this.right7=true;
            },
          },
 
          '$store.state.waterClock': {
            deep: true, //深度监听
            handler(newValue, oldValue) {
                if(newValue!=""){
                  this.componmentInit();
                  this.right9=true;
                }
            },
          },
 
 
        },
 
 
 
 
 
 
    }
</script>
 
<style scoped="scoped" lang="less">
    .containerMR {
        margin-top: 140px;
        margin-left: 135px;
        margin-right: 20px;
        height: calc(100% - 210px);
        width: calc(100% - 117px);
    }
</style>