|
@@ -108,6 +108,15 @@ let total = ref(0);
|
|
|
let searchList = ref([]);
|
|
|
let searchPop = ref(false);
|
|
|
let placeSearch;
|
|
|
+// 提交事件时间改为当前时间currentTime
|
|
|
+const now = new Date();
|
|
|
+const year = now.getFullYear();
|
|
|
+const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
|
+const day = String(now.getDate()).padStart(2, '0');
|
|
|
+const hours = String(now.getHours()).padStart(2, '0');
|
|
|
+const minutes = String(now.getMinutes()).padStart(2, '0');
|
|
|
+const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
|
+const currentTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
|
let form = reactive({
|
|
|
address: '',
|
|
|
longitude: '',
|
|
@@ -116,7 +125,7 @@ let form = reactive({
|
|
|
event_type: '',
|
|
|
event_level: '',
|
|
|
event_status: '1',
|
|
|
- event_time: '1977-01-01 00:00:00',
|
|
|
+ event_time: currentTime,
|
|
|
report_time: '1977-01-01 00:00:00',
|
|
|
deaths: '0',
|
|
|
injuries: '0',
|