Commit e63e2b2e234eb1c019efd4ac6d77d3c0690d1017

Authored by ww
1 parent 8c106fcf

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

... ... @@ -311,7 +311,7 @@ export const formSchema: QFormSchema[] = [
311 311 field: 'playProtocol',
312 312 label: '播放协议',
313 313 component: 'RadioGroup',
314   - defaultValue: PlayProtocol.HTTP,
  314 + defaultValue: PlayProtocol.HTTPS,
315 315 ifShow({ values }) {
316 316 return (
317 317 values.accessMode === AccessMode.Streaming &&
... ... @@ -321,11 +321,8 @@ export const formSchema: QFormSchema[] = [
321 321 helpMessage: ['平台使用https的hls协议,需联系海康开放平台专家支持。'],
322 322 componentProps: {
323 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 2 import type { StreamingMediaModel } from '/@/api/camera/model/cameraModel';
3 3 import { findDictItemByCode } from '/@/api/system/dict';
4 4 import { DictEnum } from '/@/enums/dictEnum';
... ... @@ -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 78 export const formDetailSchema: FormSchema[] = [
84 79 {
85 80 label: '平台类型',
... ... @@ -102,15 +97,12 @@ export const formDetailSchema: FormSchema[] = [
102 97 label: '部署环境',
103 98 field: 'ssl',
104 99 component: 'RadioGroup',
105   - ifShow: ({ model }) => model.type !== videTypeNum.Fluorite,
  100 + ifShow: ({ model }) => model.type !== VideoPlatformEnum.FLUORITE,
106 101 rules: [{ required: true, message: '流媒体部署环境为必填项', type: 'number' }],
107   - defaultValue: PlayProtocol.HTTP,
  102 + defaultValue: PlayProtocol.HTTPS,
108 103 componentProps: {
109 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 {
... ...