diff --git a/src/components/GMap.vue b/src/components/GMap.vue index a57065a..013720e 100644 --- a/src/components/GMap.vue +++ b/src/components/GMap.vue @@ -139,6 +139,14 @@ {{ 10 > (deviceInfo.device.battery.remain_flight_time % 60) ? '0' : ''}}{{deviceInfo.device.battery.remain_flight_time % 60 }} +
+
直播视频
+
+
+ + + +
@@ -445,16 +453,19 @@ import M30 from '/@/assets/icons/m30.png' import { BorderOutlined, LineOutlined, CloseOutlined, ControlOutlined, TrademarkOutlined, ArrowDownOutlined, ThunderboltOutlined, SignalFilled, GlobalOutlined, HistoryOutlined, CloudUploadOutlined, RocketOutlined, - FieldTimeOutlined, CloudOutlined, CloudFilled, FolderOpenOutlined, RobotFilled, ArrowUpOutlined, CarryOutOutlined + FieldTimeOutlined, CloudOutlined, CloudFilled, FolderOpenOutlined, RobotFilled, ArrowUpOutlined, CarryOutOutlined, + EyeInvisibleOutlined } from '@ant-design/icons-vue' import { EDeviceTypeName } from '../types' import DockControlPanel from './g-map/DockControlPanel.vue' import { useDockControl } from './g-map/use-dock-control' import DroneControlPanel from './g-map/DroneControlPanel.vue' import { useConnectMqtt } from './g-map/use-connect-mqtt' +import LiveNewOthers from '/@/components/livestream-newOthers.vue' export default defineComponent({ components: { + LiveNewOthers, BorderOutlined, LineOutlined, CloseOutlined, @@ -484,6 +495,8 @@ export default defineComponent({ const useGMapManageHook = useGMapManage() const deviceTsaUpdateHook = deviceTsaUpdate() const root = getRoot() + // const routeName = ref('LiveOthers') + const showLive = ref(false) const mouseMode = ref(false) const store = useMyStore() @@ -641,6 +654,11 @@ export default defineComponent({ useMouseToolHook.mouseTool(type, getDrawCallback) mouseMode.value = bool } + function play () { + console.log(222) + // routeName.value = 'LiveOthers' + showLive.value = true + } // dock 控制面板 const { @@ -813,8 +831,12 @@ export default defineComponent({ } } } + return { draw, + play, + showLive, + // routeName, mouseMode, drawVisible, osdVisible, diff --git a/src/components/livestream-newOthers.vue b/src/components/livestream-newOthers.vue new file mode 100644 index 0000000..c05834a --- /dev/null +++ b/src/components/livestream-newOthers.vue @@ -0,0 +1,419 @@ + + + + + diff --git a/src/pages/page-web/projects/tsa.vue b/src/pages/page-web/projects/tsa.vue index 9ab2216..0258b24 100644 --- a/src/pages/page-web/projects/tsa.vue +++ b/src/pages/page-web/projects/tsa.vue @@ -139,6 +139,7 @@
+
设备测试
@@ -344,6 +345,12 @@ function readHms (visiable: boolean, sn: string) { }) } } + +function cheshi () { + osdVisible.value.visible = true + store.commit('SET_OSD_VISIBLE_INFO', osdVisible) + console.log(osdVisible.value.visible) +}