Commit 29be2f3213b709d36d20ba5a3c8940a74bcd7524

Authored by ww
1 parent 4eb20aa1

perf: 优化接入协议帮助信息

@@ -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,