57862207 1 year ago
parent
commit
b6ed438e89
2 changed files with 8 additions and 3 deletions
  1. 4 3
      src/service/ws.js
  2. 4 0
      src/views/originPage/list.vue

+ 4 - 3
src/service/ws.js

@@ -146,8 +146,9 @@ export default class wsService {
     }
 
     singleFingerTouch(id, x, y, screenType = 1, debug = false) {
+        console.log('tag',id,x,y)
         return this.send("single_finger_touch", {
-            bench_id: id,
+            bench_id:"'"+id+"'",
             x: x,
             y: y,
             screen_type: screenType,
@@ -157,7 +158,7 @@ export default class wsService {
 
     singleFingerDrag(id, x1, y1, x2, y2, screenType = 1, debug = false) {
         return this.send("single_finger_drag", {
-            bench_id: id,
+            bench_id: "'"+id+"'",
             x1: x1,
             y1: y1,
             x2: x2,
@@ -169,7 +170,7 @@ export default class wsService {
 
     singleFingerLongTouch(id, x, y, duration, screenType = 1, debug = false) {
         return this.send("single_finger_long_touch", {
-            bench_id: id,
+            bench_id: "'"+id+"'",
             x: x,
             y: y,
             duration: duration,

+ 4 - 0
src/views/originPage/list.vue

@@ -669,7 +669,9 @@ export default {
       bench.selected = !bench.selected;
       if (bench.selected) {
         this.currentBench = bench;
+        bench.benchId = "'"+bench.benchId+"'";
         this.selectedBenchList.push(bench);
+        console.log('selected',this.selectedBenchList)
         // this.images = this.selectedBenchList.map((s) => {
         //   return {
         //     url: "",
@@ -913,6 +915,7 @@ export default {
         // console.log("y1", y1);
         let operationDesc = "";
         if (operation == "tap") {
+          console.log('selected',this.selectedBenchList,x,y)
           self.singleFingerTouch(
             this.selectedBenchList[0].benchId,
             x,
@@ -1099,6 +1102,7 @@ export default {
         this.benchList[i].selected = false;
         if (this.benchList[i][field] == value) {
           this.benchList[i].selected = true;
+          this.benchList[i].benchId = "'"+this.benchList[i].benchId+"'";
           this.selectedBenchList.push(this.benchList[i]);
         //   this.images = this.selectedBenchList.map((s) => {
         //     return {