|
@@ -108,7 +108,7 @@
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="circle"></div>
|
|
<div class="circle"></div>
|
|
<div class="price">
|
|
<div class="price">
|
|
- <strong class="price-size">15.2</strong>
|
|
|
|
|
|
+ <strong class="price-size">{{enterPerson}}</strong>
|
|
<span>人次</span>
|
|
<span>人次</span>
|
|
</div>
|
|
</div>
|
|
<div class="text">今日进入人数</div>
|
|
<div class="text">今日进入人数</div>
|
|
@@ -116,7 +116,7 @@
|
|
<div class="box">
|
|
<div class="box">
|
|
<div class="circle"></div>
|
|
<div class="circle"></div>
|
|
<div class="price">
|
|
<div class="price">
|
|
- <strong class="price-size">15.2</strong>
|
|
|
|
|
|
+ <strong class="price-size">{{outPerson}}</strong>
|
|
<span>次</span>
|
|
<span>次</span>
|
|
</div>
|
|
</div>
|
|
<div class="text">今日违规次数</div>
|
|
<div class="text">今日违规次数</div>
|
|
@@ -144,16 +144,6 @@
|
|
<span style="padding-left: 10px">{{item.deviceName}}</span>
|
|
<span style="padding-left: 10px">{{item.deviceName}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-<!-- <div class="case-content">-->
|
|
|
|
-<!-- <div class="content-grid">-->
|
|
|
|
-<!-- <span>姓名:</span>-->
|
|
|
|
-<!-- <span>{{item.personName}}</span>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- <div class="content-grid">-->
|
|
|
|
-<!-- <span>进入区域:</span>-->
|
|
|
|
-<!-- <span>{{item.channelName}}</span>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
-<!-- </div>-->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</swiper-slide>
|
|
</swiper-slide>
|
|
@@ -288,7 +278,7 @@
|
|
import { swiper, swiperSlide } from 'vue-awesome-swiper'
|
|
import { swiper, swiperSlide } from 'vue-awesome-swiper'
|
|
import 'swiper/css/swiper.css'
|
|
import 'swiper/css/swiper.css'
|
|
import ChartBar from "@/views/BioSafety/chart/ChartBar";
|
|
import ChartBar from "@/views/BioSafety/chart/ChartBar";
|
|
-import {getCar, getRecord, getSizhu, getCarList, getPersonList, getFaceToken, getSizhuList, getHoure} from "@/utils/api";
|
|
|
|
|
|
+import {getCar, getRecord, getSizhu, getCarList, getPersonList, getFaceToken, getSizhuList, getHoure, getDoor} from "@/utils/api";
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
import {timeDate} from "@/utils";
|
|
import {timeDate} from "@/utils";
|
|
|
|
|
|
@@ -360,6 +350,8 @@ export default {
|
|
personChartLoading: true,
|
|
personChartLoading: true,
|
|
sizhuLoading: true,
|
|
sizhuLoading: true,
|
|
hgLoading: true,
|
|
hgLoading: true,
|
|
|
|
+ enterPerson: '',
|
|
|
|
+ outPerson: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -369,7 +361,7 @@ export default {
|
|
getCar({}),
|
|
getCar({}),
|
|
getRecord({})
|
|
getRecord({})
|
|
]).then(axios.spread(function (res1, res2){
|
|
]).then(axios.spread(function (res1, res2){
|
|
- if(res1.code === 10000) {
|
|
|
|
|
|
+ if(res1.code === 0) {
|
|
|
|
|
|
that.carList.time = [];
|
|
that.carList.time = [];
|
|
that.carList.data = [];
|
|
that.carList.data = [];
|
|
@@ -379,7 +371,7 @@ export default {
|
|
})
|
|
})
|
|
that.carsLoading = false
|
|
that.carsLoading = false
|
|
}
|
|
}
|
|
- if(res2.code === 10000) {
|
|
|
|
|
|
+ if(res2.code === 0) {
|
|
that.data1.time = [];
|
|
that.data1.time = [];
|
|
that.data1.data = [];
|
|
that.data1.data = [];
|
|
res2.data.forEach(item => {
|
|
res2.data.forEach(item => {
|
|
@@ -390,7 +382,7 @@ export default {
|
|
}
|
|
}
|
|
}))
|
|
}))
|
|
getSizhu({}).then(res => {
|
|
getSizhu({}).then(res => {
|
|
- if(res.code=== 10000) {
|
|
|
|
|
|
+ if(res.code=== 0) {
|
|
this.value1 = res.data.value2;
|
|
this.value1 = res.data.value2;
|
|
this.value2 = res.data.value1;
|
|
this.value2 = res.data.value1;
|
|
this.value3 = res.data.value3;
|
|
this.value3 = res.data.value3;
|
|
@@ -523,7 +515,14 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
})
|
|
})
|
|
- // 死猪列表
|
|
|
|
|
|
+ // 门禁违规
|
|
|
|
+ getDoor({}).then(res => {
|
|
|
|
+ if(res.code === 0) {
|
|
|
|
+ this.enterPerson = res.data.value1;
|
|
|
|
+ this.outPerson = res.data.value2;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
},
|
|
},
|
|
// 打开img
|
|
// 打开img
|
|
open(item, num) {
|
|
open(item, num) {
|