Commit 586d54147649a5cd62bc232e728de3c989934bc4
Merge branch 'pref/product-transport' into 'main_dev'
perf: 优化接入协议帮助信息 See merge request yunteng/thingskit-front!1248
Showing
2 changed files
with
8 additions
and
2 deletions
@@ -19,6 +19,7 @@ import { uploadThumbnail } from '/@/api/configuration/center/configurationCenter | @@ -19,6 +19,7 @@ import { uploadThumbnail } from '/@/api/configuration/center/configurationCenter | ||
19 | import { getDeviceProfileOtaPackages, getOtaPackageInfo } from '/@/api/ota'; | 19 | import { getDeviceProfileOtaPackages, getOtaPackageInfo } from '/@/api/ota'; |
20 | import { QueryDeviceProfileOtaPackagesType } from '/@/api/ota/model'; | 20 | import { QueryDeviceProfileOtaPackagesType } from '/@/api/ota/model'; |
21 | import { OTAPackageType } from '/@/enums/otaEnum'; | 21 | import { OTAPackageType } from '/@/enums/otaEnum'; |
22 | +import { TransportTypeEnum } from '/@/enums/deviceEnum'; | ||
22 | 23 | ||
23 | export enum Mode { | 24 | export enum Mode { |
24 | CARD = 'card', | 25 | CARD = 'card', |
@@ -406,6 +407,11 @@ export const step2Schemas: FormSchema[] = [ | @@ -406,6 +407,11 @@ export const step2Schemas: FormSchema[] = [ | ||
406 | required: true, | 407 | required: true, |
407 | label: '接入协议', | 408 | label: '接入协议', |
408 | defaultValue: 'DEFAULT', | 409 | defaultValue: 'DEFAULT', |
410 | + helpMessage({ model }) { | ||
411 | + return model?.transportType === TransportTypeEnum.GBT28181 | ||
412 | + ? ['GBT28181协议使用的是ZLMediaKit流媒体服务框架'] | ||
413 | + : []; | ||
414 | + }, | ||
409 | componentProps() { | 415 | componentProps() { |
410 | return { | 416 | return { |
411 | options: [ | 417 | options: [ |
@@ -418,7 +424,7 @@ export const step2Schemas: FormSchema[] = [ | @@ -418,7 +424,7 @@ export const step2Schemas: FormSchema[] = [ | ||
418 | getPopupContainer: () => document.body, | 424 | getPopupContainer: () => document.body, |
419 | }; | 425 | }; |
420 | }, | 426 | }, |
421 | - colProps: { span: 10 }, | 427 | + colProps: { span: 12 }, |
422 | }, | 428 | }, |
423 | ]; | 429 | ]; |
424 | 430 |
@@ -75,7 +75,7 @@ | @@ -75,7 +75,7 @@ | ||
75 | transportConfiguration: {}, | 75 | transportConfiguration: {}, |
76 | }); | 76 | }); |
77 | const [register, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({ | 77 | const [register, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({ |
78 | - labelWidth: 80, | 78 | + labelWidth: 100, |
79 | schemas: step2Schemas, | 79 | schemas: step2Schemas, |
80 | actionColOptions: { | 80 | actionColOptions: { |
81 | span: 14, | 81 | span: 14, |