Commit 29be2f3213b709d36d20ba5a3c8940a74bcd7524

Authored by ww
1 parent 4eb20aa1

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

... ... @@ -19,6 +19,7 @@ import { uploadThumbnail } from '/@/api/configuration/center/configurationCenter
19 19 import { getDeviceProfileOtaPackages, getOtaPackageInfo } from '/@/api/ota';
20 20 import { QueryDeviceProfileOtaPackagesType } from '/@/api/ota/model';
21 21 import { OTAPackageType } from '/@/enums/otaEnum';
  22 +import { TransportTypeEnum } from '/@/enums/deviceEnum';
22 23
23 24 export enum Mode {
24 25 CARD = 'card',
... ... @@ -406,6 +407,11 @@ export const step2Schemas: FormSchema[] = [
406 407 required: true,
407 408 label: '接入协议',
408 409 defaultValue: 'DEFAULT',
  410 + helpMessage({ model }) {
  411 + return model?.transportType === TransportTypeEnum.GBT28181
  412 + ? ['GBT28181协议使用的是ZLMediaKit流媒体服务框架']
  413 + : [];
  414 + },
409 415 componentProps() {
410 416 return {
411 417 options: [
... ... @@ -418,7 +424,7 @@ export const step2Schemas: FormSchema[] = [
418 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 75 transportConfiguration: {},
76 76 });
77 77 const [register, { validate, resetFields, setFieldsValue, updateSchema }] = useForm({
78   - labelWidth: 80,
  78 + labelWidth: 100,
79 79 schemas: step2Schemas,
80 80 actionColOptions: {
81 81 span: 14,
... ...