Showing
1 changed file
with
3 additions
and
8 deletions
@@ -56,7 +56,7 @@ | @@ -56,7 +56,7 @@ | ||
56 | 56 | ||
57 | <script setup lang="ts"> | 57 | <script setup lang="ts"> |
58 | import { PropType, ref, onMounted } from 'vue' | 58 | import { PropType, ref, onMounted } from 'vue' |
59 | -import { AccessMode, option, sourceTypeEnum, videoListInterface, sourceTypeNameEnum } from './config' | 59 | +import { AccessMode, option, sourceTypeEnum, videoListInterface, sourceTypeNameEnum, Dataset } from './config' |
60 | import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting' | 60 | import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting' |
61 | import { NTreeSelect } from 'naive-ui' | 61 | import { NTreeSelect } from 'naive-ui' |
62 | import { getOrganizationList, getVideoList, getVideoUrl } from '@/api/external/common/index' | 62 | import { getOrganizationList, getVideoList, getVideoUrl } from '@/api/external/common/index' |
@@ -91,7 +91,7 @@ const getOriginationList = async () => { | @@ -91,7 +91,7 @@ const getOriginationList = async () => { | ||
91 | } | 91 | } |
92 | 92 | ||
93 | const handleUpdateTreeValue = (value: string) => { | 93 | const handleUpdateTreeValue = (value: string) => { |
94 | - props.optionData.dataset = {} | 94 | + props.optionData.dataset = {} as Dataset |
95 | getVideoLists(value) | 95 | getVideoLists(value) |
96 | } | 96 | } |
97 | 97 | ||
@@ -130,13 +130,8 @@ const getVideoControlList = async (deviceId: string, channelId: string) => { | @@ -130,13 +130,8 @@ const getVideoControlList = async (deviceId: string, channelId: string) => { | ||
130 | props.optionData.dataset = flv | 130 | props.optionData.dataset = flv |
131 | } | 131 | } |
132 | 132 | ||
133 | -//针对自定义地址,直接获取地址 | ||
134 | -const getCustomUrl = (url: string) => { | ||
135 | - props.optionData.dataset = url | ||
136 | -} | ||
137 | - | ||
138 | const handleChecked = (value: string) => { | 133 | const handleChecked = (value: string) => { |
139 | - props.optionData.dataset = '' | 134 | + props.optionData.dataset = {} as Dataset |
140 | props.optionData.organization = '' | 135 | props.optionData.organization = '' |
141 | props.optionData.videoId = null | 136 | props.optionData.videoId = null |
142 | if (value === sourceTypeEnum.PLATFORM) { | 137 | if (value === sourceTypeEnum.PLATFORM) { |