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
|
{
|
...
|
...
|
|