diff --git a/src/assets/img/taidong.png b/src/assets/img/taidong.png index 2af4204..0f0d3b6 100644 Binary files a/src/assets/img/taidong.png and b/src/assets/img/taidong.png differ diff --git a/src/assets/img/taidong1.png b/src/assets/img/taidong1.png new file mode 100644 index 0000000..2af4204 Binary files /dev/null and b/src/assets/img/taidong1.png differ diff --git a/src/views/pages/area/components/ImportantAreaPopNew.vue b/src/views/pages/area/components/ImportantAreaPopNew.vue index 208d419..d7b5b17 100644 --- a/src/views/pages/area/components/ImportantAreaPopNew.vue +++ b/src/views/pages/area/components/ImportantAreaPopNew.vue @@ -28,7 +28,7 @@

负责人: - 张三 + 张淑华

联系方式: diff --git a/src/views/pages/civilizedCity/components/EventListDetailsPopNew.vue b/src/views/pages/civilizedCity/components/EventListDetailsPopNew.vue index 2c56e21..c97d51c 100644 --- a/src/views/pages/civilizedCity/components/EventListDetailsPopNew.vue +++ b/src/views/pages/civilizedCity/components/EventListDetailsPopNew.vue @@ -63,10 +63,11 @@

-

负责人:张三

+

负责人:刘国华

联系方式:13356870098

-

告警时间:{{ feature.data.captureTime || "" }}

-

告警值:42231

+ +

告警时间:{{nowDate}}

+

告警值:7890

事件状态:待下发

告警当天人流量数值
@@ -74,24 +75,25 @@
-

更新时间:{{ feature.data.captureTime || "" }}

+ +

更新时间:{{nowDate}}

当前人数
-
0000
+
990
本地人数
- 0000 + 790
外地人数
-
0000
+
200
@@ -135,7 +137,7 @@ export default { mounted() { this.newImageUrl = this.IntelliURLReplaceIP(this.feature.data.imageUrl); console.log(this.newImageUrl); - + this.getNowTime(); console.log(this.feature, "1234567"); this.$nextTick( () => { this.initPeopleCountingChart(); @@ -151,8 +153,8 @@ export default { openVideo: false, newImageUrl: "", resourceType:"resource", - channelCode:"3701222749350945" - + channelCode:"3701222749350945", + nowDate:""//获取当前时间 }; }, methods: { @@ -305,7 +307,40 @@ export default { document.getElementById('people-counting-chart') ) peopleCounting.setOption(option) + }, + //获取当前时间并格式化 + getNowTime(){ + var myDate = new Date(); //创建Date对象 + var Y = myDate.getFullYear(); //获取当前完整年份 + var M = myDate.getMonth() + 1; //获取当前月份 + var D = myDate.getDate(); //获取当前日1-31 + var H = myDate.getHours(); //获取当前小时 + var i = myDate.getMinutes(); //获取当前分钟 + var s = myDate.getSeconds(); //获取当前秒数 + // 月份不足10补0 + if(M < 10){ + M = '0' + M; } + // 日不足10补0 + if(D < 10){ + D = '0' + D; + } + // 小时不足10补0 + if(H < 10){ + H = '0' + H; + } + // 分钟不足10补0 + if(i < 10){ + i = '0' + i; + } + // 秒数不足10补0 + if(s < 10){ + s = '0' +s; + } + // 拼接日期分隔符根据自己的需要来修改 + var nowDate = Y+'-'+M+'-'+D+' '+H+':'+i+':'+s; + this.nowDate = nowDate; + }, }, };