Browse Source

地图调整

Hwf 9 months ago
parent
commit
eb61d530f3

+ 2 - 2
src/components/Map/YztMap/index.vue

@@ -35,8 +35,8 @@ const emits = defineEmits(['update:drawing', 'update:showMask', 'selectGraphics'
 
 const mapRef = ref(null);
 const mapState = reactive({
-  center: [110.925175, 21.678955],
-  zoom: 7.9,
+  center: [110.925175, 21.978955],
+  zoom: 8.5,
   minZoom: 6,
   maxZoom: 16,
   isThreeDimensional: false,

+ 6 - 6
src/views/globalMap/RightMenu/OnlinePlotting/index.vue

@@ -853,14 +853,14 @@ const handleSendForm = () => {
   if (!form.value.pattern_name) {
     return proxy?.$modal.msgWarning('请填写预案名称');
   }
-  webSock = createWebSocket('ZEaBf-NZ4Fi29kSYGdNeJ', getWebSocketData);
-  patternId.value = 'ZEaBf-NZ4Fi29kSYGdNeJ';
-  // createCollaboration(form.value).then(() => {
-  //   patternId.value = form.value.pattern_id;
-  //   createWebSocket(form.value.pattern_id, getWebSocketData);
+  // webSock = createWebSocket('ZEaBf-NZ4Fi29kSYGdNeJ', getWebSocketData);
+  // patternId.value = 'ZEaBf-NZ4Fi29kSYGdNeJ';
+  createCollaboration(form.value).then(() => {
+    patternId.value = form.value.pattern_id;
+    webSock = createWebSocket(form.value.pattern_id, getWebSocketData);
     showForm.value = false;
     collaboration.value = true;
-  // });
+  });
 };
 const handleShowDialog = () => {
   editData.value = {