deepsea пре 1 година
родитељ
комит
7ffd5b6a34
2 измењених фајлова са 7 додато и 1 уклоњено
  1. 1 1
      src/uwb-sample.js
  2. 6 0
      src/views/ordinaryPage/index.vue

+ 1 - 1
src/uwb-sample.js

@@ -470,7 +470,7 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
                     if (box) {
                       sdkInstance.sceneRenderer.scene.remove(box);
                     }
-                    window.handleListClick(m.object.userData.benchId, m.object.userData.bShowRemoteButton)
+                    window.handleBenchClick(m.object.userData.benchId, m.object.userData.bShowRemoteButton)
 
                     box = new THREE.BoxHelper(m.object, '#ff0000');  //object 模型
                     sdkInstance.sceneRenderer.scene.add(box);

+ 6 - 0
src/views/ordinaryPage/index.vue

@@ -845,6 +845,7 @@ export default {
       // console.log("res", res);
     });
     window.handleListClick = this.handleListClick;
+    window.handleBenchClick = this.handleBenchClick;
     window.handleClickTask = this.handleClickTask.bind(this);
     window.selectRowPlan = this.selectRowPlan.bind(this);
     window.selectRowCase = this.selectRowCase.bind(this);
@@ -2417,6 +2418,11 @@ export default {
         bus.emit("benchInfoVisible", this.currentBench);
       });
     },
+    handleBenchClick(benchId, showRemoteButton) {
+      this.currentBench = this.benchList.find(b => b.id == benchId);
+      this.isRemoteBtnVisible = showRemoteButton;
+      this.isDetailVisible = true;
+    },
     handleListDbClick(benchId, itemtype) {
       //this.currentBench = this.benchList.find(b => b.id == benchId);
       //this.isDetailVisible = true;