Commit 565879c8c18f0c4bfe3ee2f1ea025879519be6b8
1 parent
049ef36a
perf: streaming table column sort && set create record ssl field default value
Showing
2 changed files
with
16 additions
and
12 deletions
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | import { createOrUpdateStreamingMediaRecord } from '/@/api/camera/cameraManager'; |
8 | 8 | import { StreamingMediaModel } from '/@/api/camera/model/cameraModel'; |
9 | 9 | import { useMessage } from '/@/hooks/web/useMessage'; |
10 | + import { PlayProtocol } from '../manage/config.data'; | |
10 | 11 | |
11 | 12 | const emit = defineEmits({ |
12 | 13 | success: null, |
... | ... | @@ -30,6 +31,7 @@ |
30 | 31 | id = data.record!.id; |
31 | 32 | setFieldsValue(data.record); |
32 | 33 | } else { |
34 | + setFieldsValue({ ssl: PlayProtocol.HTTP }); | |
33 | 35 | resetFields(); |
34 | 36 | } |
35 | 37 | }); | ... | ... |
... | ... | @@ -18,18 +18,6 @@ export const streamingMediaSSLMapping = { |
18 | 18 | |
19 | 19 | export const columnSchema: BasicColumn[] = [ |
20 | 20 | { |
21 | - title: '平台类型', | |
22 | - dataIndex: 'type', | |
23 | - width: 80, | |
24 | - slots: { customRender: 'type' }, | |
25 | - }, | |
26 | - { | |
27 | - title: '部署环境', | |
28 | - dataIndex: 'ssl', | |
29 | - width: 80, | |
30 | - slots: { customRender: 'ssl' }, | |
31 | - }, | |
32 | - { | |
33 | 21 | title: '平台地址', |
34 | 22 | dataIndex: 'host', |
35 | 23 | width: 80, |
... | ... | @@ -44,6 +32,18 @@ export const columnSchema: BasicColumn[] = [ |
44 | 32 | dataIndex: 'appSecret', |
45 | 33 | width: 80, |
46 | 34 | }, |
35 | + { | |
36 | + title: '平台类型', | |
37 | + dataIndex: 'type', | |
38 | + width: 80, | |
39 | + slots: { customRender: 'type' }, | |
40 | + }, | |
41 | + { | |
42 | + title: '部署环境', | |
43 | + dataIndex: 'ssl', | |
44 | + width: 80, | |
45 | + slots: { customRender: 'ssl' }, | |
46 | + }, | |
47 | 47 | ]; |
48 | 48 | |
49 | 49 | export const formSchema: FormSchema[] = [ |
... | ... | @@ -71,7 +71,9 @@ export const formDetailSchema: FormSchema[] = [ |
71 | 71 | field: 'ssl', |
72 | 72 | component: 'RadioGroup', |
73 | 73 | rules: [{ required: true, message: '流媒体部署环境为必填项', type: 'number' }], |
74 | + defaultValue: PlayProtocol.HTTP, | |
74 | 75 | componentProps: { |
76 | + defaultValue: PlayProtocol.HTTP, | |
75 | 77 | options: [ |
76 | 78 | { label: 'http', value: PlayProtocol.HTTP }, |
77 | 79 | { label: 'https', value: PlayProtocol.HTTPS }, | ... | ... |