فهرست منبع

发送数据调整

Hwf 6 ماه پیش
والد
کامیت
91ce241860
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      src/views/mobileControl/OnlinePlotting/index.vue

+ 4 - 2
src/views/mobileControl/OnlinePlotting/index.vue

@@ -330,9 +330,10 @@ const addText = (textEditState) => {
   close();
   emits('handleSendData', JSON.stringify({
     operation: 'add', // 必填
+    id: data.id,
     name: data.title, // 必填
     content: JSON.stringify(data), // 必填
-    visible: false
+    visible: '1'
   }));
 };
 watch(() => props.onlinePlottingId, () => {
@@ -421,9 +422,10 @@ const initDrawMethod = (options) => {
     obj.on('rightclick', handleRightClick);
     emits('handleSendData', JSON.stringify({
       operation: 'add', // 必填
+      id: data.id,
       name: data.title, // 必填
       content: JSON.stringify(data), // 必填
-      visible: false
+      visible: '1'
     }))
   };
   mouseTool.on('draw', onDraw);