|
@@ -90,7 +90,11 @@
|
|
|
<smart v-if="sideActive === 4"></smart>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
- <org-info :id="jgId" :visible.sync="isShowInfo"></org-info>
|
|
|
+ <oldman-info v-if="sideActive === 0" :id="jgId" :visible.sync="isShowInfo"></oldman-info>
|
|
|
+ <org-info v-if="sideActive === 1" :id="jgId" :visible.sync="isShowInfo"></org-info>
|
|
|
+ <service-info v-if="sideActive === 2" :id="jgId" :visible.sync="isShowInfo"></service-info>
|
|
|
+ <monitor-info v-if="sideActive === 3" :id="jgId" :visible.sync="isShowInfo"></monitor-info>
|
|
|
+ <smart-info v-if="sideActive === 4" :id="jgId" :visible.sync="isShowInfo"></smart-info>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -100,18 +104,23 @@ import { mapState } from 'vuex'
|
|
|
import { getstatisticaldata } from '@/api/system/dict/type'
|
|
|
import { getOldmanMarkers, getOrgMarkers, getServiceMarkers, getMonitorMarkers, getSmartMarkers, getRegion } from '@/api/bigScreen'
|
|
|
|
|
|
-
|
|
|
+// 页面右边小组件
|
|
|
import Oldman from './components/Oldman.vue'
|
|
|
import Organization from './components/Organization.vue'
|
|
|
import Service from './components/Service.vue'
|
|
|
import Monitor from './components/Monitor.vue'
|
|
|
import Smart from './components/Smart.vue'
|
|
|
|
|
|
-import OrgInfo from './components/OrgInfo.vue'
|
|
|
+// leftside对应详情
|
|
|
+import OldmanInfo from './details/OldmanInfo.vue'
|
|
|
+import OrgInfo from './details/OrgInfo.vue'
|
|
|
+import ServiceInfo from './details/ServiceInfo.vue'
|
|
|
+import MonitorInfo from './details/MonitorInfo.vue'
|
|
|
+import SmartInfo from './details/SmartInfo.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'Resources',
|
|
|
- components: { Oldman, Organization, Service, Monitor, Smart, OrgInfo },
|
|
|
+ components: { Oldman, Organization, Service, Monitor, Smart, OldmanInfo, OrgInfo, ServiceInfo, MonitorInfo, SmartInfo },
|
|
|
data() {
|
|
|
return {
|
|
|
duration: 2000, // 数字滚动时间
|
|
@@ -141,6 +150,16 @@ export default {
|
|
|
|
|
|
showDrawer: false, // 右侧模块显隐
|
|
|
pattern: 0, // 模式选择
|
|
|
+ // 获取点位图参数
|
|
|
+ PTParams: {
|
|
|
+ code: null, // 默认选账号loacationCode,区域下钻模式会改变
|
|
|
+ },
|
|
|
+
|
|
|
+ // 区划下钻模式的接口参数
|
|
|
+ RegionParams: {
|
|
|
+ code: null, // 本级code
|
|
|
+ parentCode: null // 下级code
|
|
|
+ },
|
|
|
|
|
|
// 地图相关参数
|
|
|
jgId: '',
|
|
@@ -175,7 +194,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
this.deptlevel=this.user.dept.locationFilter.split(",").length;
|
|
|
if (this.deptlevel==1)
|
|
|
{
|
|
@@ -196,7 +214,6 @@ export default {
|
|
|
this.deptcurrxzqh=this.deptxzqh;
|
|
|
this.deptcurrlevel=this.deptlevel;
|
|
|
this.queryParams.para2 = this.user.dept.locationCode;
|
|
|
- console.log(this.user.dept);
|
|
|
this.getTotalList()
|
|
|
this.clickScreen()
|
|
|
this.getMarkerList()
|
|
@@ -552,7 +569,8 @@ export default {
|
|
|
AMapLoader.load({
|
|
|
key: '0445c169f4b9ffcf20cb016aa8e9f165',
|
|
|
version: '2.0',
|
|
|
- plugins: ['AMap.ToolBar',
|
|
|
+ plugins: [
|
|
|
+ 'AMap.ToolBar',
|
|
|
'AMap.ControlBar',
|
|
|
'AMap.DistrictSearch',
|
|
|
'AMap.HeatMap' ,
|
|
@@ -797,7 +815,6 @@ export default {
|
|
|
markerClick(e) {
|
|
|
this.jgId = e.target._opts.label.extData
|
|
|
this.isShowInfo = true
|
|
|
- console.log(e.target._opts)
|
|
|
},
|
|
|
|
|
|
clickScreen() {
|
|
@@ -849,10 +866,6 @@ export default {
|
|
|
this.clearMap();
|
|
|
// this.map.add(this.setMarker(this.querydata,this.sideActive))
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- console.log(value)
|
|
|
},
|
|
|
handleClose() {
|
|
|
this.drawer = false
|
|
@@ -878,7 +891,6 @@ $drawerWidth: 450px;
|
|
|
word-wrap: break-word;
|
|
|
background-color: #fff;
|
|
|
background-clip: border-box;
|
|
|
- border-radius: .25rem;
|
|
|
width: 22rem;
|
|
|
border-width: 0;
|
|
|
border-radius: 0.4rem;
|
|
@@ -919,7 +931,7 @@ $drawerWidth: 450px;
|
|
|
/* ie9*/
|
|
|
-moz-text-align-last: justify;
|
|
|
/*ff*/
|
|
|
- -webkit-text-align-last: justify;
|
|
|
+ //-webkit-text-align-last: justify;
|
|
|
/*chrome 20+*/
|
|
|
-ms-flex-align: center;
|
|
|
align-items: center;
|
|
@@ -928,13 +940,10 @@ $drawerWidth: 450px;
|
|
|
font-weight: 400;
|
|
|
line-height: 1.5;
|
|
|
color: #495057;
|
|
|
- text-align: center;
|
|
|
white-space: nowrap;
|
|
|
background-color: #e9ecef;
|
|
|
border: 1px solid #ced4da;
|
|
|
- border-radius: .25rem;
|
|
|
- border-bottom-right-radius: 0;
|
|
|
- border-top-right-radius: 0;
|
|
|
+ border-radius: .25rem 0 0 .25rem;
|
|
|
}
|
|
|
|
|
|
.wrap {
|
|
@@ -943,8 +952,9 @@ $drawerWidth: 450px;
|
|
|
.top {
|
|
|
width: 100%;
|
|
|
color: #fff;
|
|
|
- //background-image: linear-gradient(to bottom, #bde0ed 30%, transparent);
|
|
|
- //background-color: #bde0ed;
|
|
|
+ background-image: linear-gradient(to bottom, #548cd6, #033447 200%);
|
|
|
+ box-shadow: 0 0 20px 0 #275a85;
|
|
|
+ //background-color: #4c83c8;
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
@@ -1064,11 +1074,15 @@ $drawerWidth: 450px;
|
|
|
}
|
|
|
|
|
|
.bottom-group {
|
|
|
- width: calc(100% - #{$drawerWidth});
|
|
|
+ background-color: rgba(0, 0, 0, .8);
|
|
|
+ box-shadow: 0 0 5px 0 #000;
|
|
|
+ padding: 10px;
|
|
|
+ //width: calc(100% - #{$drawerWidth});
|
|
|
text-align: center;
|
|
|
position: absolute;
|
|
|
bottom: 2%;
|
|
|
- left: 0;
|
|
|
+ left: 36%;
|
|
|
+ transform: translateX(-50%);
|
|
|
|
|
|
&.hide {
|
|
|
width: 100%;
|
|
@@ -1084,7 +1098,7 @@ $drawerWidth: 450px;
|
|
|
width: 0;
|
|
|
font-size: 14px;
|
|
|
color: #fff;
|
|
|
- box-shadow: 0px 0 20px 0 rgb(76 132 201);
|
|
|
+ box-shadow: 0 0 20px 0 rgb(76 132 201);
|
|
|
background-image: linear-gradient(to bottom, #4c83c8, #033447 20%);
|
|
|
padding: 60px 0 20px;
|
|
|
position: absolute;
|