index.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import Card from '@/components/Card';
  2. import { BaseMediaUrl } from '@/constants/constants';
  3. import { useIncidentStore } from '@/store';
  4. import { time } from 'console';
  5. import {
  6. computed,
  7. defineComponent,
  8. onMounted,
  9. onUnmounted,
  10. ref,
  11. } from 'vue-demi';
  12. export default defineComponent({
  13. name: 'LiveMonitoringCard',
  14. setup() {
  15. const store = useIncidentStore();
  16. const liveRef = ref<HTMLElement>();
  17. const timer = ref();
  18. const current = ref(0);
  19. return () => (
  20. <Card cardType="live-monitoring">
  21. <div class="livec">
  22. <div id="relvideo1" style="width: 100%;height: 100%;">
  23. <img
  24. style="width: 100%;height: 100%;"
  25. src="https://img1.baidu.com/it/u=1650334584,1209303936&fm=253&fmt=auto&app=120&f=JPEG?w=1129&h=642"
  26. />
  27. </div>
  28. </div>
  29. <div class="livec">
  30. <div id="relvideo2" style="width: 100%;height: 100%;">
  31. <img
  32. style="width: 100%;height: 100%;"
  33. src="https://img1.baidu.com/it/u=1650334584,1209303936&fm=253&fmt=auto&app=120&f=JPEG?w=1129&h=642"
  34. />
  35. </div>
  36. </div>
  37. </Card>
  38. );
  39. },
  40. });