@@ -89,10 +105,10 @@
diff --git a/src/views/pages/construction/index.vue b/src/views/pages/construction/index.vue
index b1dcbf1..ea39faf 100644
--- a/src/views/pages/construction/index.vue
+++ b/src/views/pages/construction/index.vue
@@ -37,7 +37,7 @@
- 累计事件数量
+ 累计事件数量(2022.05.25-至今)
{{allListDataNum}}件
@@ -81,8 +81,8 @@ import bus from '@/views/layout/bus'
import complaintEvent from './components/ComplaintEvent'
import VideoList from './components/VideoList'
import SiteList from './components/SiteList'
-import { selectByJdWd, selectByDayRaise, selectByDayNoice, selectByDayRoadData } from '@/api/construction/index'
-import { createSiteListPop, createCameraDetailsPop } from '@/supermap/createMarkerPopup'
+import { selectByJdWd, selectDayVideo, selectByDayRaise, selectByDayNoice, selectByDayRoadData } from '@/api/construction/index'
+import { createSiteListPop, createCameraDetailsPop, createImportantAreaPop } from '@/supermap/createMarkerPopup'
import VideoPlay from './components/VideoPlay'
import { selectAllByGps } from '@/api/road'
@@ -119,6 +119,10 @@ export default {
this.hiMap.mapObj,
this.hiMapFun
)
+ this.todayListNum = 0
+ selectDayVideo().then((res) => {
+ this.todayListNum += res.data.data.sum
+ })
selectByDayRaise().then((res) => {
this.todayListNum += res.data.data.sum
@@ -396,6 +400,7 @@ export default {
this.hiMapFun.removeLayerByLayerName('videoSurveillance')
this.hiMapFun.removeLayerByLayerName('constructionSite')
this.hiMapFun.removeLayerByLayerName('roadPoint')
+ this.hiMapFun.removeLayerByLayerName('videoNotice')
}
},
beforeDestroy () {}
diff --git a/src/views/pages/roadGovernance/components/RoadMain.vue b/src/views/pages/roadGovernance/components/RoadMain.vue
index ff61d9b..344b9fd 100644
--- a/src/views/pages/roadGovernance/components/RoadMain.vue
+++ b/src/views/pages/roadGovernance/components/RoadMain.vue
@@ -248,7 +248,8 @@ export default {
const yDate = currentDate.getDate() > 9 ? currentDate.getDate() : '0' + currentDate.getDate()
this.preTime = currentDate.getFullYear() + '-' + ((currentDate.getMonth() + 1) > 10 ? (currentDate.getMonth() + 1) : '0' + (currentDate.getMonth() + 1)) + '-' + yDate + ' ' + '00:00:00'
currentDate.setDate(currentDate.getDate() - currentDate.getDay() + 1)
- this.weekTime = currentDate.getFullYear() + '-' + ((currentDate.getMonth() + 1) > 10 ? (currentDate.getMonth() + 1) : '0' + (currentDate.getMonth() + 1)) + '-' + yDate + ' ' + '00:00:00'
+ // this.weekTime = currentDate.getFullYear() + '-' + ((currentDate.getMonth() + 1) > 10 ? (currentDate.getMonth() + 1) : '0' + (currentDate.getMonth() + 1)) + '-' + yDate + ' ' + '00:00:00'
+ this.weekTime = this.getWeekDate()
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted () {
@@ -305,6 +306,25 @@ export default {
},
methods: {
+ // 获取本周一日期
+ getWeekDate() {
+ let now = new Date()
+ let nowTime = now.getTime();
+ let day = now.getDay();
+ let oneDayTime = 1000 * 60 * 60 * 24;
+ let mondayTime = nowTime - (day - 1) * oneDayTime;
+ let lw = new Date(mondayTime);
+ let lastY = lw.getFullYear();
+ let lastM = lw.getMonth() + 1;
+ let lastD = lw.getDate();
+ let startData =
+ lastY +
+ "-" +
+ (lastM < 10 ? "0" + lastM : lastM) +
+ "-" +
+ (lastD < 10 ? "0" + lastD : lastD);
+ return startData + ' ' + '00:00:00'
+ },
// 道路污染数据 昨日
async getRoadData () {
const res = await getRoadData({ dt: this.preTime })
diff --git a/src/views/pages/videoSurveillance/components/CameraDetailsPop.vue b/src/views/pages/videoSurveillance/components/CameraDetailsPop.vue
index 98b9113..e4bfca0 100644
--- a/src/views/pages/videoSurveillance/components/CameraDetailsPop.vue
+++ b/src/views/pages/videoSurveillance/components/CameraDetailsPop.vue
@@ -72,6 +72,7 @@ export default {
},
methods: {
openCurrentVideo(channelCode){
+ console.log('channelCode-----', channelCode)
bus.$emit('openCurrentVideoSurveillance',channelCode)
// getStreamByChannelCode({channelCode:channelCode}).then(res => {
// let newVideoStream = this.IntelliURLReplaceIP(res.data.data)