Compare commits

...

2 Commits

7 changed files with 84 additions and 23 deletions

View File

@ -30,6 +30,7 @@
"leaflet-minimap": "^3.6.1", "leaflet-minimap": "^3.6.1",
"leaflet.chinatmsproviders": "^3.0.4", "leaflet.chinatmsproviders": "^3.0.4",
"leaflet.markercluster": "^1.5.0", "leaflet.markercluster": "^1.5.0",
"mapbox-gl": "^2.15.0",
"mars3d": "^3.0.13", "mars3d": "^3.0.13",
"normalize.css": "7.0.0", "normalize.css": "7.0.0",
"nprogress": "0.2.0", "nprogress": "0.2.0",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@ -30,7 +30,7 @@
url:"/gridman_emphasis", url:"/gridman_emphasis",
top:30, top:30,
},{ },{
lable:"区域划分", lable:"护林员",
url:"", url:"",
top:90, top:90,
},{ },{
@ -38,7 +38,11 @@
url:"", url:"",
top:140, top:140,
},{ },{
lable:"护林员", lable:"一张图",
url:"",
top:160,
},{
lable:"网格管理",
url:"", url:"",
top:160, top:160,
},{ },{
@ -91,8 +95,8 @@
} }
.gridman-navigation .nav-item{ .gridman-navigation .nav-item{
width:150px; width:120px;
height:150px; height:120px;
float:left; float:left;
margin:0px 30px; margin:0px 30px;
cursor:pointer; cursor:pointer;
@ -112,12 +116,12 @@
transform: scale(1.1); transform: scale(1.1);
} }
.gridman-navigation .nav-item img{ .gridman-navigation .nav-item img{
width:150px; width:120px;
transition:all 0.2s; transition:all 0.2s;
} }
.nav-lable{ .nav-lable{
width:150px; width:120px;
position:relative; position:relative;
top:20px; top:20px;
font-size:20px; font-size:20px;

View File

@ -10,7 +10,7 @@
<div class="time-info"> <div class="time-info">
<div class="time-time-info" style="margin-right:15px;">{{ time }}</div> <div class="time-time-info" style="margin-right:15px;">{{ time }}</div>
<div class="time-time-info" style="margin-right:15px;">{{ date }}</div> <div class="time-time-info" style="margin-right:15px;">{{ date }}</div>
<div class="time-time-info" style="margin-right:15px;">星期</div> <div class="time-time-info" style="margin-right:15px;">星期{{ workday }}</div>
</div> </div>
<!-- 天气中心 --> <!-- 天气中心 -->
@ -19,8 +19,12 @@
<div class="temperature">{{ temperature }}</div> <div class="temperature">{{ temperature }}</div>
</div> </div>
<div class="newworkstate">
网络状态<span :style="{'color':newworkstate=='网络正常'?'#67C23A':'#E6A23C'}">{{newworkstate}}</span>
</div>
<!-- 退出按钮 --> <!-- 退出按钮 -->
<div class="logout-button" style="position:relative;z-index:999999999999999999999999999999999999999999;" <div class="logout-button" style="position:relative;z-index:999999999999;"
@click="logout()"></div> @click="logout()"></div>
</div> </div>
</div> </div>
@ -197,7 +201,7 @@
</div> </div>
<!-- 呼叫中心 --> <!-- 呼叫中心 -->
<div class="callCenterBox" v-if="callCenterVisible"> <div class="callCenterBox" v-if="callCenterVisible">
<callCenter></callCenter> <callCenter @callUser="callUser"></callCenter>
</div> </div>
<!-- 展开收起两边弹窗 --> <!-- 展开收起两边弹窗 -->
<div class="diatoggleBtn" id="diatoggleBtn" @click="diaToggle"></div> <div class="diatoggleBtn" id="diatoggleBtn" @click="diaToggle"></div>
@ -302,8 +306,10 @@ export default {
waterCenter: null, waterCenter: null,
date: null, date: null,
time: null, time: null,
workday:null,
weater: null, weater: null,
temperature: null, temperature: null,
newworkstate:null, //
globalmap: null, globalmap: null,
// configUrl: "config/config.json", // configUrl: "config/config.json",
configUrl: `config/${areaName}Config.json`, configUrl: `config/${areaName}Config.json`,
@ -355,6 +361,9 @@ export default {
// //
this.getWeater(); this.getWeater();
//
this.getNetWorkState();
// //
window.hiddenReadData = function (e) { window.hiddenReadData = function (e) {
e.innerHTML = e.getAttribute('data-phone').replace(/(\d{3})\d*(\d{4})/, '$1****$2'); e.innerHTML = e.getAttribute('data-phone').replace(/(\d{3})\d*(\d{4})/, '$1****$2');
@ -373,6 +382,10 @@ export default {
window.delFirePoint = this.delFirePoint window.delFirePoint = this.delFirePoint
}, },
methods: { methods: {
//
callUser(){
this.personVisible = true;
},
diaToggle() { diaToggle() {
console.log('feixianConfigJson', feixianConfigJson) console.log('feixianConfigJson', feixianConfigJson)
console.log('conf', this.configUrl) console.log('conf', this.configUrl)
@ -537,11 +550,9 @@ export default {
}, },
// 退 // 退
logout() { logout() {
localStorage.setItem("X-Token", ""); // localStorage.setItem("X-Token", "");
// window.location.reload();
this.$router.push({'path':'/index'})
window.location.reload();
}, },
// //
wuzi(item) { wuzi(item) {
@ -814,6 +825,8 @@ export default {
let date = new Date(); let date = new Date();
this.time = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ":" + (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ":" + (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()); this.time = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ":" + (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ":" + (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
this.date = date.getFullYear() + '-' + ((date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)) + '-' + ((date.getDate()) < 10 ? '0' + (date.getDate()) : (date.getDate())); this.date = date.getFullYear() + '-' + ((date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)) + '-' + ((date.getDate()) < 10 ? '0' + (date.getDate()) : (date.getDate()));
let workdays = ['日','一','二','三','四','五','六']
this.workday = workdays[date.getDay()];
}, },
// //
getWeater() { getWeater() {
@ -833,7 +846,26 @@ export default {
} }
}); });
}, },
//
getNetWorkState(){
if(window.navigator.onLine){
this.newworkstate = "网络正常"
}else{
this.newworkstate = "网络断开"
}
let _this = this;
window.addEventListener("online",function(e){
_this.newworkstate = "网络正常"
})
window.addEventListener("offline",function(e){
_this.newworkstate = "网络断开"
_this.$message({
type:"error",
message:"网络已断开!"
})
})
},
// //
addTileLayer(layer) { addTileLayer(layer) {
this.removeTileLayer() this.removeTileLayer()
@ -986,21 +1018,32 @@ export default {
.header-info { .header-info {
min-width: 560px; min-width: 660px;
height: 30px; height: 30px;
position: absolute; position: absolute;
top: 30px; top: 30px;
right: 60px; right: 0px;
} }
.weather-info { .weather-info {
width: 160px; width: 140px;
height: 25px; height: 25px;
line-height: 24px; line-height: 24px;
color: #fff; color: #fff;
float: left; float: left;
text-align: center; text-align: center;
padding: 0px 10px; padding: 0px 10px;
position:relative;
}
.weather-info::after {
content: "";
width: 2px;
height: 14px;
top: 6px;
background: #B8FFFF;
position: absolute;
right: 0px;
} }
.weather-info .weater { .weather-info .weater {
@ -1015,8 +1058,8 @@ export default {
color: #fff; color: #fff;
text-align: center; text-align: center;
float: left; float: left;
margin: 0px 20px; margin: 0px 10px;
margin-right: 20px; margin-right: 10px;
position: relative; position: relative;
} }
@ -1035,6 +1078,16 @@ export default {
float: left; float: left;
} }
.newworkstate{
float:left;
height: 25px;
line-height: 24px;
color: #fff;
text-align: center;
padding: 0px 10px;
}
.logout-button { .logout-button {
width: 95px; width: 95px;
height: 25px; height: 25px;
@ -1045,7 +1098,7 @@ export default {
float: left; float: left;
position: relative; position: relative;
top: 0px; top: 0px;
right: -50px; left:20px;
cursor: pointer; cursor: pointer;
z-index: 999999999999999999999999999; z-index: 999999999999999999999999999;
} }

View File

@ -49,7 +49,7 @@
</el-carousel> </el-carousel>
</div> </div>
<div > <div >
<img class="call-phone cursor" src="img/callphone.png" @click="callPhoneAll" /> <img class="call-phone cursor" src="img/callphone.png" @click="callUser" />
</div> </div>
</div> </div>
</template> </template>
@ -105,6 +105,9 @@ export default {
created(){ created(){
this.initWebSocket() this.initWebSocket()
this.getListData() this.getListData()
// 线
this.getOnLineInfo();
}, },
mounted(){ mounted(){
@ -123,8 +126,8 @@ export default {
_this.allPersonArr = rel _this.allPersonArr = rel
}) })
}, },
callPhoneAll(){ callUser(){
this.$emit("callUser");
}, },
initWebSocket() { initWebSocket() {
let _this = this; let _this = this;