소스 검색

实时标绘

Hwf 6 달 전
부모
커밋
1f6d6c060b
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/views/globalMap/RightMenu/OnlinePlotting/index.vue

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

@@ -835,14 +835,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;
+    createWebSocket(form.value.pattern_id, getWebSocketData);
     showForm.value = false;
     collaboration.value = true;
-  // });
+  });
 };
 const handleShowDialog = () => {
   editData.value = {