Commit e63e2b2e234eb1c019efd4ac6d77d3c0690d1017

Authored by ww
1 parent 8c106fcf

fix: 修复流媒体配置海康无http协议播放地址

@@ -311,7 +311,7 @@ export const formSchema: QFormSchema[] = [ @@ -311,7 +311,7 @@ export const formSchema: QFormSchema[] = [
311 field: 'playProtocol', 311 field: 'playProtocol',
312 label: '播放协议', 312 label: '播放协议',
313 component: 'RadioGroup', 313 component: 'RadioGroup',
314 - defaultValue: PlayProtocol.HTTP, 314 + defaultValue: PlayProtocol.HTTPS,
315 ifShow({ values }) { 315 ifShow({ values }) {
316 return ( 316 return (
317 values.accessMode === AccessMode.Streaming && 317 values.accessMode === AccessMode.Streaming &&
@@ -321,11 +321,8 @@ export const formSchema: QFormSchema[] = [ @@ -321,11 +321,8 @@ export const formSchema: QFormSchema[] = [
321 helpMessage: ['平台使用https的hls协议,需联系海康开放平台专家支持。'], 321 helpMessage: ['平台使用https的hls协议,需联系海康开放平台专家支持。'],
322 componentProps: { 322 componentProps: {
323 placeholder: '请选择播放协议', 323 placeholder: '请选择播放协议',
324 - defaultValue: PlayProtocol.HTTP,  
325 - options: [  
326 - { label: 'http', value: PlayProtocol.HTTP },  
327 - { label: 'https', value: PlayProtocol.HTTPS },  
328 - ], 324 + defaultValue: PlayProtocol.HTTPS,
  325 + options: [{ label: 'https', value: PlayProtocol.HTTPS }],
329 }, 326 },
330 }, 327 },
331 { 328 {
1 -import { PlayProtocol } from '../manage/config.data'; 1 +import { PlayProtocol, VideoPlatformEnum } from '../manage/config.data';
2 import type { StreamingMediaModel } from '/@/api/camera/model/cameraModel'; 2 import type { StreamingMediaModel } from '/@/api/camera/model/cameraModel';
3 import { findDictItemByCode } from '/@/api/system/dict'; 3 import { findDictItemByCode } from '/@/api/system/dict';
4 import { DictEnum } from '/@/enums/dictEnum'; 4 import { DictEnum } from '/@/enums/dictEnum';
@@ -75,11 +75,6 @@ export const formSchema: FormSchema[] = [ @@ -75,11 +75,6 @@ export const formSchema: FormSchema[] = [
75 }, 75 },
76 ]; 76 ];
77 77
78 -const videTypeNum = {  
79 - ISC: 0,  
80 - Fluorite: 1,  
81 -};  
82 -  
83 export const formDetailSchema: FormSchema[] = [ 78 export const formDetailSchema: FormSchema[] = [
84 { 79 {
85 label: '平台类型', 80 label: '平台类型',
@@ -102,15 +97,12 @@ export const formDetailSchema: FormSchema[] = [ @@ -102,15 +97,12 @@ export const formDetailSchema: FormSchema[] = [
102 label: '部署环境', 97 label: '部署环境',
103 field: 'ssl', 98 field: 'ssl',
104 component: 'RadioGroup', 99 component: 'RadioGroup',
105 - ifShow: ({ model }) => model.type !== videTypeNum.Fluorite, 100 + ifShow: ({ model }) => model.type !== VideoPlatformEnum.FLUORITE,
106 rules: [{ required: true, message: '流媒体部署环境为必填项', type: 'number' }], 101 rules: [{ required: true, message: '流媒体部署环境为必填项', type: 'number' }],
107 - defaultValue: PlayProtocol.HTTP, 102 + defaultValue: PlayProtocol.HTTPS,
108 componentProps: { 103 componentProps: {
109 defaultValue: PlayProtocol.HTTP, 104 defaultValue: PlayProtocol.HTTP,
110 - options: [  
111 - { label: 'http', value: PlayProtocol.HTTP },  
112 - { label: 'https', value: PlayProtocol.HTTPS },  
113 - ], 105 + options: [{ label: 'https', value: PlayProtocol.HTTPS }],
114 }, 106 },
115 }, 107 },
116 { 108 {