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

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

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

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

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-08-15 09:44:13 * @Date: 2023-08-15 09:44:13
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2024-09-05 17:30:07 * @LastEditTime: 2024-09-24 11:12:07
--> -->
<template> <template>
<div class="left-wai-box"> <div class="left-wai-box">
@ -71,7 +71,7 @@
</div> </div>
<div class="item lfet-list-one" id="parent-getHeight" :style="itemOne"> <div class="item lfet-list-one" id="parent-getHeight" :style="itemOne">
<title-box title="人员在线情况" :id="1"></title-box> <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> :height="oneHeight" :id="1" v-on="$listeners"></map-number>
<div style="display:flex;justify-content:flex-end;"> <div style="display:flex;justify-content:flex-end;">
<div class="pagesBtnChange"> <div class="pagesBtnChange">
@ -209,6 +209,7 @@ export default {
personLoading:false, personLoading:false,
isBreadcrumb:true, isBreadcrumb:true,
account:"", account:"",
currentClasses: "白班"
} }
}, },
props: ['personLine', 'carLine'], props: ['personLine', 'carLine'],
@ -441,7 +442,20 @@ export default {
this.getEvent(); this.getEvent();
this.getOnline(); this.getOnline();
this.account = localStorage.getItem('account') 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> </script>

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

@ -8,7 +8,7 @@
</div> </div>
</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>
<div class="header-title"> <div class="header-title">
<div class="header-title-left" :class="id == 1 ? 'header-title-left-two' : ''">{{ id == 1 ? "姓名" : "车牌号" }}</div> <div class="header-title-left" :class="id == 1 ? 'header-title-left-two' : ''">{{ id == 1 ? "姓名" : "车牌号" }}</div>
@ -78,6 +78,10 @@ export default {
id:{ id:{
type:Number, type:Number,
default:0, default:0,
},
currentClasses: {
type:String,
default:'白班',
} }
}, },
methods:{ methods:{

Loading…
Cancel
Save