地图人员点位接口更换、新增班次显示

prodLv
吕天方 5 months ago
parent 7b01fb295e
commit 988f5784ec

@ -2,7 +2,7 @@
# @Author: 张涛
# @Date: 2023-11-09 18:29:41
# @LastEditors: JC9527
# @LastEditTime: 2024-05-15 13:40:14
# @LastEditTime: 2024-09-22 05:39:52
# @FilePath: \JiangningUrbanManagePc\.env.development
###
# 页面标题

@ -201,7 +201,7 @@ export function getUserByImei(params){
// 根据手机号和人员名称查询
export function dwgjList(params){
return request({
url: '/jn/dwgj/list',
url: '/jn/scheduling/allList',
method: 'get',
params
})

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-08-15 09:44:13
* @LastEditors: JC9527
* @LastEditTime: 2024-09-05 17:30:07
* @LastEditTime: 2024-09-24 11:12:07
-->
<template>
<div class="left-wai-box">
@ -71,7 +71,7 @@
</div>
<div class="item lfet-list-one" id="parent-getHeight" :style="itemOne">
<title-box title="人员在线情况" :id="1"></title-box>
<map-number title="在线人员总数" :onLine="personOnLine" :sum="perpsonNum" type="人" @unfold="unfold" :numberArray="peopleArray"
<map-number title="在线人员总数" :currentClasses="currentClasses" :onLine="personOnLine" :sum="perpsonNum" type="人" @unfold="unfold" :numberArray="peopleArray"
:height="oneHeight" :id="1" v-on="$listeners"></map-number>
<div style="display:flex;justify-content:flex-end;">
<div class="pagesBtnChange">
@ -209,6 +209,7 @@ export default {
personLoading:false,
isBreadcrumb:true,
account:"",
currentClasses: "白班"
}
},
props: ['personLine', 'carLine'],
@ -441,7 +442,20 @@ export default {
this.getEvent();
this.getOnline();
this.account = localStorage.getItem('account')
this.MYsummarystat()
this.MYsummarystat();
const now = new Date();
const hours = now.getHours() < 10 ? '0' + now.getHours() : now.getHours();
const minutes = now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes();
let currentTime = hours + ':' + minutes;
if(currentTime > '07:30' && currentTime < '17:30') {
this.currentClasses = '白班'
} else if(currentTime > '17:30' && currentTime < '21:30'){
this.currentClasses = '值班/定岗'
} else{
this.currentClasses = '夜班'
}
},
}
</script>

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2024-01-09 23:08:15
* @LastEditors: JC9527
* @LastEditTime: 2024-09-14 15:28:34
* @LastEditTime: 2024-09-24 11:11:17
-->
<template>
<div class="map-main">
@ -520,7 +520,8 @@ import {
getStreetShopList,
listZhzz,
getUserByImei,
dwgjList
dwgjList,
onlinePeople
} from "@/api/bigScreenApi";
import {
previewURLs,
@ -940,11 +941,11 @@ export default {
this.personLine = [];
this.videoPoint = [];
//
getDeviceList().then((res) => {
onlinePeople().then((res) => {
this.mapLoading = false;
// console.log(res,'');
if (res.data.obj) {
res.data.obj.forEach((element) => {
if (res.data) {
res.data.forEach((element) => {
if (element.status == "0" || element.status == "1") {
this.personLine.push(element);
let obj = {position:[]};
@ -2406,7 +2407,7 @@ export default {
this.input = queryString;
//
if(this.actionMap == 1) {
dwgjList({name:queryString}).then(res=>{
dwgjList({nickName:queryString}).then(res=>{
var restaurants = res.data;
let a = [];
restaurants.forEach((per=>{
@ -2676,7 +2677,7 @@ export default {
mounted() {
// this.getPersonIcon();
this.getCarList();
this.getrobotToken();
// this.getrobotToken();
window.addEventListener('beforeunload', e => this.beforeunloadHandler(e));
window.addEventListener('unload', e => this.unloadHandler(e));
// this.markerInterval();

@ -8,7 +8,7 @@
</div>
</div>
<div>{{ onLine }}/{{ sum }}{{ type }}</div>
<div style="display: flex;align-items: center;"><div v-if="id == 1" style="margin-right: 5px;">{{ currentClasses }}: </div>{{ onLine }}/{{ sum }}{{ type }}</div>
</div>
<div class="header-title">
<div class="header-title-left" :class="id == 1 ? 'header-title-left-two' : ''">{{ id == 1 ? "姓名" : "车牌号" }}</div>
@ -78,6 +78,10 @@ export default {
id:{
type:Number,
default:0,
},
currentClasses: {
type:String,
default:'白班',
}
},
methods:{
@ -102,7 +106,7 @@ export default {
}
},
mounted(){
this.$nextTick(()=>{
//
var parentElement = document.getElementById('parent');

Loading…
Cancel
Save