From 09b13eea1327416adffba3dc521bdc1c76a7b2a2 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Wed, 18 Oct 2023 13:15:33 +0800
Subject: [PATCH] Merge branch 'feature_1.0'
---
src/views/list/road.vue | 31 +++++++++++++++++++++++++------
1 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/src/views/list/road.vue b/src/views/list/road.vue
index 474d86c..da8e55e 100644
--- a/src/views/list/road.vue
+++ b/src/views/list/road.vue
@@ -16,9 +16,8 @@
>
</a-select>
<a-range-picker
- v-model="timevalue"
:show-time="{ format: 'HH:mm' }"
- @ok="change1()"
+ @ok="change1"
format="YYYY-MM-DD HH:mm"
style="width: 175px; margin-left: 10px"
/>
@@ -169,8 +168,7 @@
import { jsonp } from 'vue-jsonp'
import any = jasmine.any;
import { da } from "date-fns/locale";
-
-
+import {Moment} from 'moment';
@Component({
components: {
@@ -178,12 +176,32 @@
})
export default class road extends Vue {
private timevalue:any=[]
- private change1(){
- console.log(this.timevalue);
+
+ private change1(dates: Moment[]) {
+ this.timevalue=[]
+ this.timevalue=[dates[0].format("YYYY-MM-DD hh:mm"),dates[1].format("YYYY-MM-DD hh:mm")]
+
}
private mounted() {
this.roadmap();
}
+ private dateFormat(fmt: string, date: any) {
+ let o = {
+ "M+": date.getMonth() + 1, //������
+ "d+": date.getDate(), //���
+ "h+": date.getHours(), //������
+ "m+": date.getMinutes(), //���
+ "s+": date.getSeconds(), //���
+ "q+": Math.floor((date.getMonth() + 3) / 3), //������
+ "S": date.getMilliseconds() //������
+ }
+ if (/(y+)/.test(fmt))
+ fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
+ for (var k in o)
+ if (new RegExp("(" + k + ")").test(fmt))
+ fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)))
+ return fmt
+}
private map:any
private roadmap(){
this.map = new BMapGL.Map('roadmap')
@@ -396,6 +414,7 @@
this.$message.warning('���������������')
return
}
+ console.log("this.timevalue",this.timevalue);
get('cruiserInfo/getCruiserInFo',{
mac:this.carvalue,
// time1:'2023-08-05 00:00:00',
--
Gitblit v1.8.0