index.vue 845 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <div class="ces-demo">
  3. <div id="damper3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
  4. </div>
  5. </template>
  6. <script lang="ts" setup>
  7. import { ref, reactive, onMounted } from 'vue'
  8. import { mountedThree, addMonitorText, play, destroy, setModelType, computePlay } from '../gateMonitor/gate.threejs';
  9. onMounted(() => {
  10. mountedThree('')
  11. .then(async () => {
  12. // 韩咀无风门设备,只有报警历史数据,无其他数据
  13. setModelType('fm3').then(async () => {
  14. });
  15. })
  16. .catch(() => {
  17. debugger;
  18. });
  19. })
  20. </script>
  21. <style lang="less" scoped>
  22. .ces-demo {
  23. position: relative;
  24. width: calc(100% - 30px);
  25. height: calc(100% - 84px);
  26. margin: 15px;
  27. }
  28. </style>