门口门禁-完善地图进入进出统计小窗口

liujun-2024-06-13-一公司人员定位新需求^2
water_xu 2024-06-26 15:14:24 +08:00
parent 8050b95233
commit 33312767b7
1 changed files with 20 additions and 20 deletions

View File

@ -137,7 +137,7 @@ export default {
created() { created() {
this.getDoorWayRecords(0) this.getDoorWayRecords(0)
this.getOnlineGateMachine() this.getOnlineGateMachine()
this.getMachineTodayInOutCount() this.getMkmjGateStatistics()
// this.getDoorManagement() // this.getDoorManagement()
}, },
@ -152,9 +152,16 @@ export default {
}, },
methods: { methods: {
initEcharts1(data) { initEcharts1(data) {
const XaxisData = ['1号门', '2号门', '3号门', '4号门'] const XaxisData = []
const seriesData1 = [10, 20, 30, 40] const seriesData1 = []
const seriesData2 = [10, 20, 30, 40] const seriesData2 = []
data.forEach(e => {
XaxisData.push(e.AREA_NAME)
seriesData1.push(e.CAR_IN + 0 + e.PEOPLE_IN)
seriesData2.push(e.CAR_OUT + 0 + e.PEOPLE_OUT)
});
Echarts1 = echarts.init(document.querySelector('#main1')) Echarts1 = echarts.init(document.querySelector('#main1'))
const option = { const option = {
tooltip: { tooltip: {
@ -196,7 +203,7 @@ export default {
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
max: '150', // max: '150',
axisLine: { axisLine: {
show: false, show: false,
lineStyle: { lineStyle: {
@ -217,9 +224,9 @@ export default {
}, },
series: [ series: [
{ {
name: '人员', name: '',
type: 'bar', type: 'bar',
barWidth: '10%', barWidth: '30%',
itemStyle: { itemStyle: {
normal: { normal: {
color: new echarts.graphic.LinearGradient( color: new echarts.graphic.LinearGradient(
@ -244,9 +251,9 @@ export default {
data: seriesData1 data: seriesData1
}, },
{ {
name: '车辆', name: '',
type: 'bar', type: 'bar',
barWidth: '10%', barWidth: '30%',
itemStyle: { itemStyle: {
normal: { normal: {
color: new echarts.graphic.LinearGradient( color: new echarts.graphic.LinearGradient(
@ -279,20 +286,13 @@ export default {
this.currentPage += 1 this.currentPage += 1
this.loadRecord(this.block3OptionsIndex) this.loadRecord(this.block3OptionsIndex)
}, },
getMachineTodayInOutCount() { getMkmjGateStatistics() {
requestFN( requestFN(
'/map/getMachineTodayInOutCount', { '/mkmjGateStatistics/page?showCount=100&currentPage=1', {
AREA: this.area,
CORPINFO_ID: this.corpInfoId,
GANGKOU: this.gangkou,
id: '7'
} }
).then((data) => { ).then((data) => {
if (this.gangkou === '00004') { this.initEcharts1(data.varList)
} else {
this.block2OptionsList = data.varList
}
}) })
}, },