|
@@ -1,20 +1,25 @@
|
|
<template>
|
|
<template>
|
|
- <div v-show="flag" class="viewer">
|
|
|
|
- <div class="bg">
|
|
|
|
- <div class="bg_left"></div>
|
|
|
|
- <div class="bg_right"></div>
|
|
|
|
- <div class="bg_bottom"></div>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <i class="cesiumbtn" :class="store.state.viewer_flag ? 'el-icon-aim' : 'el-icon-rank'" :title="isbig ? '缩小' : '放大'"
|
|
|
|
+ @click="bigViewerChange"></i>
|
|
|
|
+ <div v-show="store.state.viewer_flag" class="viewer">
|
|
|
|
+ <div class="bg">
|
|
|
|
+
|
|
|
|
+ <div class="bg_left"></div>
|
|
|
|
+ <div class="bg_right"></div>
|
|
|
|
+ <div class="bg_bottom"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <datePicker @dateChange="dateChange"></datePicker>
|
|
|
|
+ <ser-center></ser-center>
|
|
|
|
+ <GKZB ref="gkzb_ref" />
|
|
|
|
+ <BJXM />
|
|
|
|
+ <TDSC />
|
|
|
|
+ <HYSY ref="hysy_ref" />
|
|
|
|
+ <TDSY />
|
|
|
|
+ <GDBH ref="gdbh_ref" />
|
|
|
|
+ <STXF ref="stxf_ref" />
|
|
|
|
+ <WPJG ref="wpjg_ref" />
|
|
</div>
|
|
</div>
|
|
- <datePicker @dateChange="dateChange"></datePicker>
|
|
|
|
- <ser-center></ser-center>
|
|
|
|
- <GKZB ref="gkzb_ref"/>
|
|
|
|
- <BJXM />
|
|
|
|
- <TDSC />
|
|
|
|
- <HYSY ref="hysy_ref" />
|
|
|
|
- <TDSY />
|
|
|
|
- <GDBH ref="gdbh_ref" />
|
|
|
|
- <STXF ref="stxf_ref" />
|
|
|
|
- <WPJG ref="wpjg_ref" />
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -55,6 +60,10 @@ export default {
|
|
watch: {},
|
|
watch: {},
|
|
//方法集合
|
|
//方法集合
|
|
methods: {
|
|
methods: {
|
|
|
|
+ bigViewerChange() {
|
|
|
|
+ store.setViewerFlagb(!store.state.viewer_flag);
|
|
|
|
+ store.setToolBarShow(!store.state.viewer_flag)
|
|
|
|
+ },
|
|
switch() {
|
|
switch() {
|
|
this.flag = !this.flag;
|
|
this.flag = !this.flag;
|
|
},
|
|
},
|
|
@@ -202,9 +211,9 @@ export default {
|
|
const name = pickObj.id.properties.name.getValue();
|
|
const name = pickObj.id.properties.name.getValue();
|
|
const address = pickObj.id.properties.adcode.getValue();
|
|
const address = pickObj.id.properties.adcode.getValue();
|
|
const center = pickObj.id.properties.centroid.getValue();
|
|
const center = pickObj.id.properties.centroid.getValue();
|
|
- store.state.regional_information={
|
|
|
|
- id:address,
|
|
|
|
- name:name,
|
|
|
|
|
|
+ store.state.regional_information = {
|
|
|
|
+ id: address,
|
|
|
|
+ name: name,
|
|
}
|
|
}
|
|
// 选中状态
|
|
// 选中状态
|
|
pickObj.id.polygon._material.color = Cesium.Color.fromCssColorString(that.xzqh_color_click);
|
|
pickObj.id.polygon._material.color = Cesium.Color.fromCssColorString(that.xzqh_color_click);
|
|
@@ -388,14 +397,16 @@ export default {
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style scoped lang="scss" >
|
|
<style scoped lang="scss" >
|
|
-.viewer{
|
|
|
|
|
|
+.viewer {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
-.bg{
|
|
|
|
|
|
+
|
|
|
|
+.bg {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
- .bg_left{
|
|
|
|
|
|
+
|
|
|
|
+ .bg_left {
|
|
width: 21.6%;
|
|
width: 21.6%;
|
|
height: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -403,7 +414,8 @@ export default {
|
|
z-index: 100;
|
|
z-index: 100;
|
|
background: linear-gradient(to right, rgba(6, 37, 66, 1), rgba(26, 28, 53, 0));
|
|
background: linear-gradient(to right, rgba(6, 37, 66, 1), rgba(26, 28, 53, 0));
|
|
}
|
|
}
|
|
- .bg_right{
|
|
|
|
|
|
+
|
|
|
|
+ .bg_right {
|
|
width: 21.6%;
|
|
width: 21.6%;
|
|
height: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
position: absolute;
|
|
@@ -411,13 +423,15 @@ export default {
|
|
z-index: 100;
|
|
z-index: 100;
|
|
background: linear-gradient(to left, rgba(6, 37, 66, 1), rgba(26, 28, 53, 0));
|
|
background: linear-gradient(to left, rgba(6, 37, 66, 1), rgba(26, 28, 53, 0));
|
|
}
|
|
}
|
|
- .bg_bottom{
|
|
|
|
- width: 100%;// 56.8%;
|
|
|
|
|
|
+
|
|
|
|
+ .bg_bottom {
|
|
|
|
+ width: 100%; // 56.8%;
|
|
height: 30%;
|
|
height: 30%;
|
|
position: absolute;
|
|
position: absolute;
|
|
// left: 21.6%;
|
|
// left: 21.6%;
|
|
- bottom:0;
|
|
|
|
|
|
+ bottom: 0;
|
|
z-index: 100;
|
|
z-index: 100;
|
|
background: linear-gradient(to top, rgba(6, 37, 66, 0.5), rgba(26, 28, 53, 0));
|
|
background: linear-gradient(to top, rgba(6, 37, 66, 0.5), rgba(26, 28, 53, 0));
|
|
}
|
|
}
|
|
-}</style>
|
|
|
|
|
|
+}
|
|
|
|
+</style>
|