|
|
@@ -59,7 +59,7 @@
|
|
|
</div>
|
|
|
<div style="width: 80%;">
|
|
|
<el-scrollbar ref="scrollbarRef" height="400px" always @scroll="scroll">
|
|
|
- <timeLineDiv :list="JSON.parse(item.pathInfo).pathLine"
|
|
|
+ <timeLineDiv :list="JSON.parse(item.pathInfo).pathLine" :parentdata="item"
|
|
|
:stationInfo="JSON.parse(item.stationInfo)"></timeLineDiv>
|
|
|
</el-scrollbar>
|
|
|
</div>
|
|
|
@@ -72,7 +72,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="position:absolute;bottom:10px;right:6px;font-size:10px">
|
|
|
- <span>乘客:11人 </span> <span style="margin-left: 10px;">货物:11个</span>
|
|
|
+ <span>乘客:{{ gettotalpeople(item) }}人 </span> <span style="margin-left: 10px;">货物:11个</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
@@ -96,7 +96,7 @@ import api from "@/api/system/user"
|
|
|
import { UserForm, UserQuery, UserVO } from '@/api/system/user/types';
|
|
|
import { listCarInfo, getCarInfo, delCarInfo, addCarInfo, updateCarInfo } from '@/api/carInfo';
|
|
|
import { CarInfoVO, CarInfoQuery, CarInfoForm } from '@/api/carInfo/types';
|
|
|
-import tableElm from "@/components/Public/table.vue";
|
|
|
+import tableElm from "@/componentquery, p0: stringlic/table.vue";
|
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
import timeLineDiv from "@/components/Public/timeline";
|
|
|
import { getDicts } from '@/api/system/dict/data'
|
|
|
@@ -105,10 +105,13 @@ import mapDiv from "@/components/Map/index.vue"
|
|
|
import { listCarSchedule, getCarSchedule, delCarSchedule, addCarSchedule, updateCarSchedule } from '@/api/carSchedule';
|
|
|
import { CarScheduleVO, CarScheduleQuery, CarScheduleForm } from '@/api/carSchedule/types';
|
|
|
import moment from 'moment';
|
|
|
+import { getCountData } from '@/api/gpsData';
|
|
|
+import { countData } from '@/api/gpsData/type';
|
|
|
|
|
|
|
|
|
import videojs from "video.js"
|
|
|
import "video.js/dist/video-js.css"
|
|
|
+import { values } from "video.js/dist/types/utils/obj";
|
|
|
|
|
|
|
|
|
|
|
|
@@ -134,6 +137,14 @@ const queryFormRef = ref<ElFormInstance>();
|
|
|
const carInfoFormRef = ref<ElFormInstance>();
|
|
|
|
|
|
|
|
|
+const gettotalpeople = (item) => {
|
|
|
+ if (item.peoplecount != undefined && item.peoplecount != null) {
|
|
|
+ var totalpeople = item.peoplecount['total'];
|
|
|
+ return totalpeople.totalin - totalpeople.totalout>0?totalpeople.totalin - totalpeople.totalout:0;
|
|
|
+ }
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
const dialogMap = reactive<DialogOption>({
|
|
|
visible: false,
|
|
|
title: '地图'
|
|
|
@@ -262,6 +273,27 @@ const getScheduleList = async () => {
|
|
|
}
|
|
|
const res = await listCarSchedule(param);
|
|
|
carScheduleList.value = res.rows;
|
|
|
+ carScheduleList.value.map(i => {
|
|
|
+
|
|
|
+ if (i.ext1 != undefined && i.ext1 != null) {
|
|
|
+ var datajson = JSON.parse(i.ext1)
|
|
|
+ var times = Object.values(datajson).map(j => {
|
|
|
+ return j.intime + "|" + j.outtime
|
|
|
+ }).join("$");
|
|
|
+ times+="$"+i.scheduleDate+"|"+moment().format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ getCountData({ "params[times]": `${times}` }).then(res1 => {
|
|
|
+ var pcount = {}
|
|
|
+ var index = 0;
|
|
|
+ Object.keys(datajson).map(j => {
|
|
|
+ pcount[j]=res1.data[index++]
|
|
|
+ })
|
|
|
+ pcount['total'] = res1.data[index]
|
|
|
+ i['peoplecount'] = pcount;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
reloadData.value = true
|
|
|
}
|
|
|
|
|
|
@@ -501,7 +533,7 @@ onMounted(() => {
|
|
|
// mapElmDiv.value.getGpsDataList(param);
|
|
|
// }
|
|
|
// }, 2000);
|
|
|
-});
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|