调整摄像头状态
This commit is contained in:
517
packages/2.0.5/AppGridMap/components/list.vue
vendored
517
packages/2.0.5/AppGridMap/components/list.vue
vendored
@@ -1,96 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="map">
|
<div class="gridMap">
|
||||||
<div id="mapContainer"></div>
|
<ai-map :map.sync="map" :lib.sync="mapLib"/>
|
||||||
<div class="drawer" ref="drawer">
|
<div class="drawer" ref="drawer">
|
||||||
<div class="drawer-content">
|
<div v-if="show" class="drawer-content">
|
||||||
<header>
|
<b>网格管理</b>
|
||||||
<h3>网格管理</h3>
|
<div class="tree">
|
||||||
<!-- <div class="online">
|
|
||||||
<p>
|
|
||||||
<span>人员总数:</span>
|
|
||||||
<span>{{ member.allMemberNumber }}</span>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<span>在线人员:</span>
|
|
||||||
<span style="color: #19d286">{{ member.onlineNumber }}</span>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<div class="circle">
|
|
||||||
<el-progress
|
|
||||||
type="circle"
|
|
||||||
:width="46"
|
|
||||||
:stroke-width="4"
|
|
||||||
:percentage="percentage()"
|
|
||||||
color="#19D286"
|
|
||||||
></el-progress>
|
|
||||||
</div> -->
|
|
||||||
</header>
|
|
||||||
<!-- <ul class="nav">
|
|
||||||
<li
|
|
||||||
v-for="(e, index) in navList"
|
|
||||||
:key="index"
|
|
||||||
@click="navClick(index)"
|
|
||||||
:class="{ active: activeIndex == index }"
|
|
||||||
>
|
|
||||||
{{ e.title }}
|
|
||||||
</li>
|
|
||||||
</ul> -->
|
|
||||||
<div v-show="activeIndex == 0" class="tree">
|
|
||||||
<div class="map-search">
|
|
||||||
<el-select
|
|
||||||
size="mini"
|
|
||||||
style="width: 80px"
|
|
||||||
@change="getMemberList()"
|
|
||||||
v-model="searchObj.onlineStatus"
|
|
||||||
placeholder="全部"
|
|
||||||
clearable
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="(item, i) in dict.getDict('onlineStatus')"
|
|
||||||
:key="i"
|
|
||||||
:label="item.dictName"
|
|
||||||
:value="item.dictValue"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-input
|
|
||||||
style="width: 164px"
|
|
||||||
@change="getMemberList()"
|
|
||||||
placeholder="请输入网格员姓名"
|
|
||||||
v-model="searchObj.girdMemberName"
|
|
||||||
size="mini"
|
|
||||||
@keyup.enter.native="getMemberList()"
|
|
||||||
suffix-icon="el-icon-search"
|
|
||||||
>
|
|
||||||
</el-input>
|
|
||||||
</div>
|
|
||||||
<header class="header">
|
|
||||||
<span>人员列表</span>
|
|
||||||
</header>
|
|
||||||
<ul class="member-list" v-if="member.memberList.length > 0">
|
|
||||||
<li
|
|
||||||
v-for="(e, index) in member.memberList"
|
|
||||||
:key="index"
|
|
||||||
@click="clickMember(e)"
|
|
||||||
:class="{ active: activeId == e.id }"
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
class="iconfont iconzxjyzdls"
|
|
||||||
:style="{
|
|
||||||
color: e.onlineStatus == 1 ? '#19D286' : 'rgb(178, 178, 201)',
|
|
||||||
}"
|
|
||||||
></span>
|
|
||||||
<span>{{ e.name }}</span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div v-if="member.memberList.length == 0" class="empty">暂无数据</div>
|
|
||||||
</div>
|
|
||||||
<div v-show="activeIndex == 1" class="tree">
|
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<el-input
|
<el-input
|
||||||
placeholder="请输入网格名称"
|
placeholder="请输入网格名称"
|
||||||
v-model="filterText"
|
v-model="filterText"
|
||||||
size="mini"
|
size="mini"
|
||||||
suffix-icon="el-icon-search"
|
suffix-icon="el-icon-search"
|
||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
@@ -99,32 +19,28 @@
|
|||||||
</header>
|
</header>
|
||||||
<div class="tree-div">
|
<div class="tree-div">
|
||||||
<el-tree
|
<el-tree
|
||||||
:data="treeObj.treeList"
|
:data="treeObj.treeList"
|
||||||
:props="treeObj.defaultProps"
|
:props="treeObj.defaultProps"
|
||||||
@node-click="handleNodeClick"
|
@node-click="handleNodeClick"
|
||||||
node-key="id"
|
node-key="id"
|
||||||
ref="tree"
|
ref="tree"
|
||||||
:filter-node-method="filterNode"
|
:filter-node-method="filterNode"
|
||||||
default-expand-all
|
default-expand-all
|
||||||
highlight-current
|
highlight-current
|
||||||
>
|
>
|
||||||
</el-tree>
|
</el-tree>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="rightBtn" :class="{show}" @click="show=!show">
|
||||||
<div class="drawer-btn" @click="control()" ref="drawerBtn">
|
<i class="iconfont iconArrow_Right"/>
|
||||||
<span
|
</div>
|
||||||
class="iconfont iconArrow_Left"
|
|
||||||
ref="icon"
|
|
||||||
@click="changeIcon()"
|
|
||||||
></span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import AMapLoader from "@amap/amap-jsapi-loader";
|
import {mapState} from 'vuex'
|
||||||
import { mapState } from 'vuex'
|
|
||||||
export default {
|
export default {
|
||||||
name: "AppGridMap",
|
name: "AppGridMap",
|
||||||
label: "网格地图",
|
label: "网格地图",
|
||||||
@@ -135,12 +51,16 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
map: '',
|
map: null,
|
||||||
|
mapLib: null,
|
||||||
|
show: true,
|
||||||
|
retryMapCount: 0,
|
||||||
|
|
||||||
overlays: [],
|
overlays: [],
|
||||||
drawer: false,
|
drawer: false,
|
||||||
navList: [
|
navList: [
|
||||||
// { id: 0, title: "网格员" },
|
// { id: 0, title: "网格员" },
|
||||||
{ id: 1, title: "网格" },
|
{id: 1, title: "网格"},
|
||||||
],
|
],
|
||||||
activeIndex: 1,
|
activeIndex: 1,
|
||||||
filterText: "",
|
filterText: "",
|
||||||
@@ -170,11 +90,9 @@ export default {
|
|||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.areaId = this.user.info.areaId
|
this.dict.load("onlineStatus")
|
||||||
},
|
this.getTreeList().then(() => {
|
||||||
mounted() {
|
})
|
||||||
// this.getMemberList();
|
|
||||||
this.getTreeList()
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
filterText(val) {
|
filterText(val) {
|
||||||
@@ -187,100 +105,66 @@ export default {
|
|||||||
return data.girdName.indexOf(value) !== -1;
|
return data.girdName.indexOf(value) !== -1;
|
||||||
},
|
},
|
||||||
getTreeList() {
|
getTreeList() {
|
||||||
this.instance.post(`/app/appgirdinfo/listAll`, null, null).then((res) => {
|
return this.instance.post(`/app/appgirdinfo/listAll`, null, null).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.treeObj.treeList = res.data;
|
this.treeObj.treeList = res.data;
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
},
|
||||||
|
getLeafNodes(count) {
|
||||||
|
let {tree} = this.$refs
|
||||||
|
if (tree) {
|
||||||
|
} else {
|
||||||
|
if (count < 5) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.getLeafNodes(++count)
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleNodeClick(val) {
|
handleNodeClick(val) {
|
||||||
let path = [];
|
let path = [];
|
||||||
if (val.points) {
|
if (val?.points) {
|
||||||
val.points.map((e, index) => {
|
path = val.points.map(e => [e.lng, e.lat])
|
||||||
path[index] = [e.lng, e.lat];
|
this.renderGridMap([path])
|
||||||
});
|
|
||||||
}
|
}
|
||||||
this.initMap(path);
|
|
||||||
},
|
},
|
||||||
initMap(path, marker, initMakers) {
|
renderGridMap(paths) {
|
||||||
AMapLoader.load({
|
let {map, mapLib: AMap, retryMapCount} = this
|
||||||
key: "b553334ba34f7ac3cd09df9bc8b539dc", // 申请好的Web端开发者Key,首次调用 load 时必填
|
if (AMap) {
|
||||||
version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
map.clearMap()
|
||||||
plugins: ["AMap.ToolBar", "AMap.Scale", "AMap.InfoWindow"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
|
paths.forEach(path => {
|
||||||
AMapUI: {
|
this.polygon = new AMap.Polyline({
|
||||||
// 是否加载 AMapUI,缺省不加载
|
path,
|
||||||
version: "1.1", // AMapUI 缺省 1.1
|
strokeColor: "#FF33FF",
|
||||||
plugins: [], // 需要加载的 AMapUI ui插件
|
strokeWeight: 6,
|
||||||
},
|
strokeStyle: "solid",
|
||||||
})
|
strokeOpacity: 1,
|
||||||
.then((AMap) => {
|
fillColor: "#1791fc",
|
||||||
this.map = new AMap.Map("mapContainer", {
|
zIndex: 50,
|
||||||
resizeEnable: true,
|
lineJoin: "round",
|
||||||
zoom: 13,
|
lineCap: "round",
|
||||||
});
|
});
|
||||||
this.map.setZoomAndCenter(14, [117.147097, 36.72081], false, 600);
|
map.add(this.polygon);
|
||||||
if (path) {
|
|
||||||
this.polygon = new AMap.Polyline({
|
|
||||||
path: path,
|
|
||||||
strokeColor: "#FF33FF",
|
|
||||||
strokeWeight: 6,
|
|
||||||
strokeStyle: "solid",
|
|
||||||
strokeOpacity: 1,
|
|
||||||
fillColor: "#1791fc",
|
|
||||||
zIndex: 50,
|
|
||||||
lineJoin: "round",
|
|
||||||
lineCap: "round",
|
|
||||||
});
|
|
||||||
this.map.add(this.polygon);
|
|
||||||
this.map.setFitView();
|
|
||||||
}
|
|
||||||
if (marker) {
|
|
||||||
console.log(marker);
|
|
||||||
let infoWindow = new AMap.InfoWindow({
|
|
||||||
position: new AMap.LngLat(marker.lng, marker.lat),
|
|
||||||
offset: new AMap.Pixel(0, -30),
|
|
||||||
content: this.infoWindowHtml,
|
|
||||||
});
|
|
||||||
let markerDot = new AMap.Marker({
|
|
||||||
map: this.map,
|
|
||||||
position: new AMap.LngLat(marker.lng, marker.lat),
|
|
||||||
});
|
|
||||||
markerDot.on("click", () => {
|
|
||||||
infoWindow.open(this.map);
|
|
||||||
});
|
|
||||||
infoWindow.open(this.map);
|
|
||||||
this.getLngLat(marker);
|
|
||||||
this.map.setZoomAndCenter(13, [marker.lng, marker.lat], false, 600);
|
|
||||||
}
|
|
||||||
if (initMakers) {
|
|
||||||
let markerList = [];
|
|
||||||
initMakers.map((e) => {
|
|
||||||
markerList.push(
|
|
||||||
new AMap.Marker({
|
|
||||||
position: new AMap.LngLat(e.lng, e.lat),
|
|
||||||
label: {
|
|
||||||
content: `<p class='title_info'>${e.name}</p>`,
|
|
||||||
direction: "center",
|
|
||||||
offset: new AMap.Pixel(0, -30),
|
|
||||||
},
|
|
||||||
})
|
|
||||||
);
|
|
||||||
});
|
|
||||||
this.map.add(markerList);
|
|
||||||
}
|
|
||||||
this.map.addControl(new AMap.Scale());
|
|
||||||
this.map.addControl(new AMap.ToolBar());
|
|
||||||
this.eventOn();
|
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
map.setFitView();
|
||||||
console.log(e);
|
this.eventOn()
|
||||||
});
|
} else {
|
||||||
|
if (retryMapCount < 5) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.retryMapCount++
|
||||||
|
this.renderGridMap(paths)
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
//地图事件绑定
|
//地图事件绑定
|
||||||
eventOn() {
|
eventOn() {
|
||||||
this.map.on("mousemove", this.showInfoMove, this);
|
this.map.on("mousemove", this.showInfoMove, this);
|
||||||
},
|
},
|
||||||
showInfoMove(e) {},
|
showInfoMove(e) {
|
||||||
|
},
|
||||||
hasClass(ele, cls) {
|
hasClass(ele, cls) {
|
||||||
return ele.className.match(new RegExp("(\\s|^)" + cls + "(\\s|$)"));
|
return ele.className.match(new RegExp("(\\s|^)" + cls + "(\\s|$)"));
|
||||||
},
|
},
|
||||||
@@ -300,56 +184,29 @@ export default {
|
|||||||
this.removeClass(ele, className);
|
this.removeClass(ele, className);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeIcon() {
|
|
||||||
this.changClass(this.$refs.icon, "iconArrow_Right");
|
|
||||||
},
|
|
||||||
control() {
|
|
||||||
this.changClass(this.$refs.drawer, "hide");
|
|
||||||
this.changClass(this.$refs.drawerBtn, "btn-hide");
|
|
||||||
},
|
|
||||||
navClick(index) {
|
|
||||||
this.activeIndex = index;
|
|
||||||
this.initMap();
|
|
||||||
if (index == 1) {
|
|
||||||
this.filterText = "";
|
|
||||||
this.getTreeList();
|
|
||||||
} else {
|
|
||||||
this.searchObj = {
|
|
||||||
onlineStatus: "",
|
|
||||||
girdMemberName: "",
|
|
||||||
};
|
|
||||||
this.getMemberList();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
percentage() {
|
percentage() {
|
||||||
if (this.member.onlineNumber == 0) {
|
if (this.member.onlineNumber == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
100 *
|
100 *
|
||||||
(this.member.onlineNumber / this.member.allMemberNumber)
|
(this.member.onlineNumber / this.member.allMemberNumber)
|
||||||
).toFixed(2);
|
).toFixed(2);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getMemberList() {
|
getMemberList() {
|
||||||
this.instance
|
this.instance.post(`/app/appgirdmemberinfo/queryGirdMemberByMap`, this.searchObj).then((res) => {
|
||||||
.post(
|
if (res.code == 0) {
|
||||||
`/app/appgirdmemberinfo/queryGirdMemberByMap`,
|
let markers = [];
|
||||||
{ ...this.searchObj },
|
this.member = res.data;
|
||||||
null
|
this.member.memberList.map((e) => {
|
||||||
)
|
if (e.onlineStatus == "1") {
|
||||||
.then((res) => {
|
markers.push({lng: e.lng, lat: e.lat, name: e.name});
|
||||||
if (res.code == 0) {
|
}
|
||||||
let markers = [];
|
});
|
||||||
this.member = res.data;
|
this.initMap(null, null, markers);
|
||||||
this.member.memberList.map((e) => {
|
}
|
||||||
if (e.onlineStatus == "1") {
|
});
|
||||||
markers.push({ lng: e.lng, lat: e.lat, name: e.name });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.initMap(null, null, markers);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
clickMember(marker) {
|
clickMember(marker) {
|
||||||
if (marker.onlineStatus == 1) {
|
if (marker.onlineStatus == 1) {
|
||||||
@@ -360,15 +217,15 @@ export default {
|
|||||||
},
|
},
|
||||||
infoWindowContent(marker) {
|
infoWindowContent(marker) {
|
||||||
this.instance
|
this.instance
|
||||||
.post(`/app/location/xyToAddress`, null, {
|
.post(`/app/location/xyToAddress`, null, {
|
||||||
params: {
|
params: {
|
||||||
x: marker.lat,
|
x: marker.lat,
|
||||||
y: marker.lng,
|
y: marker.lng,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.infoWindowHtml = `<div class="info">
|
this.infoWindowHtml = `<div class="info">
|
||||||
<p>
|
<p>
|
||||||
<span class="name">${marker.name}</span>
|
<span class="name">${marker.name}</span>
|
||||||
<span class="lat">${marker.lng},${marker.lat}</span>
|
<span class="lat">${marker.lng},${marker.lat}</span>
|
||||||
@@ -380,46 +237,39 @@ export default {
|
|||||||
<span class="iconfont iconarea" id="addressSpan">当日轨迹</span>
|
<span class="iconfont iconarea" id="addressSpan">当日轨迹</span>
|
||||||
</p>
|
</p>
|
||||||
</div>`;
|
</div>`;
|
||||||
this.initMap(false, marker);
|
this.initMap(false, marker);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
|
||||||
getLngLat(marker) {
|
|
||||||
let span = document.getElementById("addressSpan");
|
|
||||||
span.addEventListener("click", this.queryTrajectory);
|
|
||||||
},
|
},
|
||||||
queryTrajectory() {
|
queryTrajectory() {
|
||||||
this.instance
|
this.instance
|
||||||
.post(`/app/appgirdmembertrajectory/queryTrajectory`, null, {
|
.post(`/app/appgirdmembertrajectory/queryTrajectory`, null, {
|
||||||
params: {
|
params: {
|
||||||
userId: this.marker.userId,
|
userId: this.marker.userId,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
let path = [];
|
let path = [];
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
res.data.map((e, index) => {
|
res.data.map((e, index) => {
|
||||||
path[index] = [e.lng, e.lat];
|
path[index] = [e.lng, e.lat];
|
||||||
});
|
});
|
||||||
}
|
|
||||||
this.initMap(path, this.marker);
|
|
||||||
}
|
}
|
||||||
});
|
this.initMap(path, this.marker);
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.map {
|
.gridMap {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
#mapContainer {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.drawer-btn {
|
.drawer-btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 280px;
|
left: 280px;
|
||||||
@@ -431,9 +281,10 @@ export default {
|
|||||||
border-top: 40px solid transparent;
|
border-top: 40px solid transparent;
|
||||||
border-bottom: 40px solid transparent;
|
border-bottom: 40px solid transparent;
|
||||||
border-left: 16px solid #333c53;
|
border-left: 16px solid #333c53;
|
||||||
border-right: 0px solid transparent;
|
border-right: 0 solid transparent;
|
||||||
transition: all 0.5s ease-in-out;
|
transition: all 0.5s ease-in-out;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
.iconfont {
|
.iconfont {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
@@ -443,13 +294,14 @@ export default {
|
|||||||
transition: all 0.5s ease-in-out;
|
transition: all 0.5s ease-in-out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-hide {
|
.btn-hide {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawer {
|
.drawer {
|
||||||
width: 280px;
|
width: 280px;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
background: #333c53;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -457,78 +309,44 @@ export default {
|
|||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
transition: all 0.5s ease-in-out;
|
transition: all 0.5s ease-in-out;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
.drawer-content {
|
.drawer-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
header {
|
background: #333c53;
|
||||||
height: 76px;
|
|
||||||
display: flex;
|
& > b {
|
||||||
align-items: center;
|
color: #fff;
|
||||||
box-sizing: border-box;
|
font-size: 18px;
|
||||||
h3 {
|
line-height: 76px;
|
||||||
color: #fff;
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
.online {
|
|
||||||
color: #fff;
|
|
||||||
font-size: 12px;
|
|
||||||
padding-left: 16px;
|
|
||||||
}
|
|
||||||
.circle {
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
padding-left: 16px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
::v-deep .el-progress__text {
|
|
||||||
color: #19d286;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.nav {
|
|
||||||
width: 100%;
|
|
||||||
height: 28px;
|
|
||||||
display: flex;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
li {
|
|
||||||
width: 50%;
|
|
||||||
height: 28px;
|
|
||||||
line-height: 28px;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 12px;
|
|
||||||
background: #1d2336;
|
|
||||||
border-radius: 0px 3px 3px 0px;
|
|
||||||
color: #8899bb;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.active {
|
|
||||||
background: #3e4a69;
|
|
||||||
color: #fff;
|
|
||||||
border-radius: 3px 0px 0px 3px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tree {
|
.tree {
|
||||||
height: calc(100% - 28px - 76px);
|
height: calc(100% - 28px - 76px);
|
||||||
overflow: auto;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.map-search {
|
.map-search {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
::v-deep .el-input__inner {
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.member-list {
|
.member-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 44px - 28px);
|
height: calc(100% - 44px - 28px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
@@ -538,37 +356,43 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
background: #1d2336;
|
background: #1d2336;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
/*滚动条整体样式*/
|
/*滚动条整体样式*/
|
||||||
width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
|
width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
|
||||||
height: 1px;
|
height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
/*滚动条里面小方块*/
|
/*滚动条里面小方块*/
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
||||||
background: #1a1e2c;
|
background: #1a1e2c;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-track {
|
&::-webkit-scrollbar-track {
|
||||||
/*滚动条里面轨道*/
|
/*滚动条里面轨道*/
|
||||||
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #ededed;
|
|
||||||
background: #282f45;
|
background: #282f45;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
color: #7a88bb;
|
color: #7a88bb;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
@@ -585,61 +409,72 @@ export default {
|
|||||||
.input {
|
.input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
::v-deep .el-input__inner {
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::v-deep .el-input__inner {
|
|
||||||
|
::v-deep .el-input__inner {
|
||||||
background-color: #282f45;
|
background-color: #282f45;
|
||||||
border: 1px solid #282f45;
|
border: 1px solid #282f45;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tree-div {
|
.tree-div {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 44px - 28px);
|
height: calc(100% - 44px - 28px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
/*滚动条整体样式*/
|
/*滚动条整体样式*/
|
||||||
width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
|
width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
|
||||||
height: 1px;
|
height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-thumb {
|
&::-webkit-scrollbar-thumb {
|
||||||
/*滚动条里面小方块*/
|
/*滚动条里面小方块*/
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
||||||
background: #1a1e2c;
|
background: #1a1e2c;
|
||||||
}
|
}
|
||||||
|
|
||||||
&::-webkit-scrollbar-track {
|
&::-webkit-scrollbar-track {
|
||||||
/*滚动条里面轨道*/
|
/*滚动条里面轨道*/
|
||||||
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background: #ededed;
|
|
||||||
background: #282f45;
|
background: #282f45;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
width: 33.33%;
|
width: 33.33%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::v-deep .el-tree {
|
|
||||||
|
::v-deep .el-tree {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.el-tree__empty-block {
|
.el-tree__empty-block {
|
||||||
background: #333c53;
|
background: #333c53;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tree-node__label {
|
.el-tree-node__label {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-tree-node__content {
|
.el-tree-node__content {
|
||||||
background: #333c53;
|
background: #333c53;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-current > .el-tree-node__content {
|
.is-current > .el-tree-node__content {
|
||||||
.el-tree-node__label {
|
.el-tree-node__label {
|
||||||
color: #5088ff;
|
color: #5088ff;
|
||||||
@@ -649,15 +484,36 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide {
|
.hide {
|
||||||
left: -280px;
|
left: -280px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 100px;
|
top: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.rightBtn {
|
||||||
|
width: 16px;
|
||||||
|
height: 80px;
|
||||||
|
background: url("https://cdn.cunwuyun.cn/monitor/drawerBtn.png");
|
||||||
|
color: #fff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.iconfont {
|
||||||
|
transition: transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
&.show > .iconfont {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@@ -668,22 +524,27 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
padding: 8px 0 0 12px;
|
padding: 8px 0 0 12px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lat {
|
.lat {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.address {
|
.address {
|
||||||
color: #999;
|
color: #999;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
@@ -691,6 +552,7 @@ export default {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.title_info {
|
.title_info {
|
||||||
width: 68px;
|
width: 68px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -702,9 +564,10 @@ export default {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.amap-marker-label {
|
.amap-marker-label {
|
||||||
border: 1px solid rgb(141, 139, 139);
|
border: 1px solid rgb(141, 139, 139);
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user