xyh 1 rok pred
rodič
commit
8cf4de37dc
1 zmenil súbory, kde vykonal 7 pridanie a 2 odobranie
  1. 7 2
      src/views/simulation/index.vue

+ 7 - 2
src/views/simulation/index.vue

@@ -982,7 +982,12 @@ export default {
           }
           this.judgeMissile(this.$data._viewer2D, newTimeString);
           //判断攻防是否结束
-          this.ifFinish(this.$data._viewer2D, newTimeString)
+          if (this.ifFinish(this.$data._viewer3D, newTimeString)) {
+            // 停止时间轴动画
+            this.$data._viewer2D.clock.shouldAnimate = false;
+            this.dialogVisible = true
+          }
+
           //更新模型位置
           // this.modelEntityMoveByIDAndLocation(this.$data._viewer2D,"1654426964397658112",res.data[1].data.W1.x,res.data[1].data.W1.y,res.data[1].data.W1.z)
         })
@@ -1033,7 +1038,7 @@ export default {
           if (this.ifFinish(this.$data._viewer3D, newTimeString)) {
             // 停止时间轴动画
             this.$data._viewer3D.clock.shouldAnimate = false;
-
+            this.dialogVisible = true
           }
 
           //更新模型位置