ソースを参照

新建临时事件

hmm 9 ヶ月 前
コミット
78a2711d00

+ 1 - 0
src/api/emergencyCommandMap/JointDuty.ts

@@ -52,6 +52,7 @@ export function updateEventLocation(evevtId: string, address: string, longitude:
   });
 }
 
+// 新建事件
 export function addEvent(data) {
   return request({
     url: '/api/event_management/event/create',

BIN
src/assets/images/map/rightMenu/dialog.png


BIN
src/assets/images/map/switchBox.png


BIN
src/assets/images/map/switchBtn.png


BIN
src/assets/images/menu/menu.png


BIN
src/assets/images/menu/search.png


BIN
src/assets/images/timeAxis/timeAxis.png


BIN
src/assets/images/timeAxis/timeBtn.png


+ 0 - 7
src/types/components.d.ts

@@ -45,9 +45,6 @@ declare module 'vue' {
     ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
     ElOption: typeof import('element-plus/es')['ElOption']
     ElPagination: typeof import('element-plus/es')['ElPagination']
-    ElPopover: typeof import('element-plus/es')['ElPopover']
-    ElRadio: typeof import('element-plus/es')['ElRadio']
-    ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
     ElRow: typeof import('element-plus/es')['ElRow']
     ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
     ElSelect: typeof import('element-plus/es')['ElSelect']
@@ -66,8 +63,6 @@ declare module 'vue' {
     ElTimeline: typeof import('element-plus/es')['ElTimeline']
     ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
     ElTooltip: typeof import('element-plus/es')['ElTooltip']
-    ElTree: typeof import('element-plus/es')['ElTree']
-    ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
     ElUpload: typeof import('element-plus/es')['ElUpload']
     FileUpload: typeof import('./../components/FileUpload/index.vue')['default']
     FooterSection: typeof import('./../components/FooterSection/index.vue')['default']
@@ -78,7 +73,6 @@ declare module 'vue' {
     HikvisionPlayer: typeof import('./../components/HKVideo/hikvision-player.vue')['default']
     HKVideo: typeof import('./../components/HKVideo/index.vue')['default']
     IconSelect: typeof import('./../components/IconSelect/index.vue')['default']
-    IEpUploadFilled: typeof import('~icons/ep/upload-filled')['default']
     IFrame: typeof import('./../components/iFrame/index.vue')['default']
     ImagePreview: typeof import('./../components/ImagePreview/index.vue')['default']
     ImageUpload: typeof import('./../components/ImageUpload/index.vue')['default']
@@ -107,7 +101,6 @@ declare module 'vue' {
     UserSelect: typeof import('./../components/UserSelect/index.vue')['default']
     VideoContainer: typeof import('./../components/HKVideo/video-container.vue')['default']
     YMap: typeof import('./../components/Map/YMap.vue')['default']
-    YMapold: typeof import('./../components/Map/YMapold.vue')['default']
     YztMap: typeof import('./../components/Map/YztMap/index.vue')['default']
   }
   export interface ComponentCustomProperties {

+ 3 - 0
src/views/globalMap/RightMenu/index.vue

@@ -32,12 +32,15 @@
         <ReservoirMonitor v-if="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '水库监测'" />
         <!--河道监测-->
         <RiverMonitor v-if="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '河道监测'" />
+        <!--无人机-->
+        <RiverMonitor v-if="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '河道监测'" />
         <!--实时标绘-->
         <OnlinePlotting
           v-if="menuState.showMenu && menuState.menuData[menuState.activeIndex]?.name === '实时标绘'"
           :mouseToolState="mouseToolState"
           :drawing="drawing"
           @updateDrawing="updateDrawing"
+
         />
       </div>
     </div>

+ 20 - 8
src/views/routineCommandMap/company-map.vue

@@ -111,7 +111,19 @@ let placeSearch;
 let form = reactive({
   address: '',
   longitude: '',
-  latitude: ''
+  latitude: '',
+  event_title: '',
+  event_type: '',
+  event_level: '',
+  event_status: '',
+  event_time: '1977-01-01 00:00:00',
+  report_time: '1977-01-01 00:00:00',
+  deaths: '0',
+  injuries: '0',
+  missing: '0',
+  event_source: '',
+  event_description: '',
+  casualties: ''
 });
 let open = ref(false);
 let geocoder = {};
@@ -281,13 +293,13 @@ function submit() {
   queryFormRef.value.validate((valid) => {
     if (valid) {
       console.log('提交数据', form);
-      router.push({
-        path: '/emergencyCommandMap',
-        query: {
-          address: form.address,
-          longitude: form.longitude,
-          latitude: form.latitude
-        }
+      addEvent(form).then((res) => {
+        router.push({
+          path: '/emergencyCommandMap',
+          query: {
+            tempEventId: res.data
+          }
+        });
       });
     }
   });