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,6 +7,7 @@ | ||
7 | import { createOrUpdateStreamingMediaRecord } from '/@/api/camera/cameraManager'; | 7 | import { createOrUpdateStreamingMediaRecord } from '/@/api/camera/cameraManager'; |
8 | import { StreamingMediaModel } from '/@/api/camera/model/cameraModel'; | 8 | import { StreamingMediaModel } from '/@/api/camera/model/cameraModel'; |
9 | import { useMessage } from '/@/hooks/web/useMessage'; | 9 | import { useMessage } from '/@/hooks/web/useMessage'; |
10 | + import { PlayProtocol } from '../manage/config.data'; | ||
10 | 11 | ||
11 | const emit = defineEmits({ | 12 | const emit = defineEmits({ |
12 | success: null, | 13 | success: null, |
@@ -30,6 +31,7 @@ | @@ -30,6 +31,7 @@ | ||
30 | id = data.record!.id; | 31 | id = data.record!.id; |
31 | setFieldsValue(data.record); | 32 | setFieldsValue(data.record); |
32 | } else { | 33 | } else { |
34 | + setFieldsValue({ ssl: PlayProtocol.HTTP }); | ||
33 | resetFields(); | 35 | resetFields(); |
34 | } | 36 | } |
35 | }); | 37 | }); |
@@ -18,18 +18,6 @@ export const streamingMediaSSLMapping = { | @@ -18,18 +18,6 @@ export const streamingMediaSSLMapping = { | ||
18 | 18 | ||
19 | export const columnSchema: BasicColumn[] = [ | 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 | title: '平台地址', | 21 | title: '平台地址', |
34 | dataIndex: 'host', | 22 | dataIndex: 'host', |
35 | width: 80, | 23 | width: 80, |
@@ -44,6 +32,18 @@ export const columnSchema: BasicColumn[] = [ | @@ -44,6 +32,18 @@ export const columnSchema: BasicColumn[] = [ | ||
44 | dataIndex: 'appSecret', | 32 | dataIndex: 'appSecret', |
45 | width: 80, | 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 | export const formSchema: FormSchema[] = [ | 49 | export const formSchema: FormSchema[] = [ |
@@ -71,7 +71,9 @@ export const formDetailSchema: FormSchema[] = [ | @@ -71,7 +71,9 @@ export const formDetailSchema: FormSchema[] = [ | ||
71 | field: 'ssl', | 71 | field: 'ssl', |
72 | component: 'RadioGroup', | 72 | component: 'RadioGroup', |
73 | rules: [{ required: true, message: '流媒体部署环境为必填项', type: 'number' }], | 73 | rules: [{ required: true, message: '流媒体部署环境为必填项', type: 'number' }], |
74 | + defaultValue: PlayProtocol.HTTP, | ||
74 | componentProps: { | 75 | componentProps: { |
76 | + defaultValue: PlayProtocol.HTTP, | ||
75 | options: [ | 77 | options: [ |
76 | { label: 'http', value: PlayProtocol.HTTP }, | 78 | { label: 'http', value: PlayProtocol.HTTP }, |
77 | { label: 'https', value: PlayProtocol.HTTPS }, | 79 | { label: 'https', value: PlayProtocol.HTTPS }, |