2026-08-06 10:47:34 +08:00
|
|
|
|
import React, { useState, useEffect } from 'react';
|
|
|
|
|
|
import {
|
|
|
|
|
|
Modal,
|
|
|
|
|
|
Form,
|
|
|
|
|
|
Row,
|
|
|
|
|
|
Col,
|
|
|
|
|
|
InputNumber,
|
|
|
|
|
|
Input,
|
|
|
|
|
|
Checkbox,
|
|
|
|
|
|
Slider,
|
2026-08-07 09:56:12 +08:00
|
|
|
|
Spin,
|
2026-08-06 10:47:34 +08:00
|
|
|
|
} from 'antd';
|
|
|
|
|
|
import { useSelector } from 'react-redux';
|
|
|
|
|
|
import { RootState } from '@/store';
|
|
|
|
|
|
import { deviceRunParamSelectByDeviceId, deviceRunParamSave } from '@/api/stationManage/index';
|
|
|
|
|
|
import utils from '@/lib/utils';
|
2026-08-12 11:29:44 +08:00
|
|
|
|
import { useTranslation } from 'react-i18next';
|
2026-08-06 10:47:34 +08:00
|
|
|
|
|
2026-08-07 09:56:12 +08:00
|
|
|
|
const GainSliderInput = ({ value, onChange, disabled, min = 0.1, max = 1, step = 0.01 }) => {
|
2026-08-12 11:29:44 +08:00
|
|
|
|
const { t } = useTranslation();
|
2026-08-06 10:47:34 +08:00
|
|
|
|
const handleSliderChange = (val) => {
|
|
|
|
|
|
onChange?.(val);
|
|
|
|
|
|
};
|
|
|
|
|
|
const handleInputChange = (val) => {
|
|
|
|
|
|
let num = Number(val);
|
|
|
|
|
|
if (isNaN(num)) num = min;
|
|
|
|
|
|
num = Math.max(min, Math.min(max, num));
|
|
|
|
|
|
onChange?.(Number(num.toFixed(2)));
|
|
|
|
|
|
};
|
|
|
|
|
|
return (
|
|
|
|
|
|
<div style={{
|
|
|
|
|
|
display: 'flex',
|
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
|
gap: 12,
|
|
|
|
|
|
padding: '8px 12px',
|
|
|
|
|
|
background: disabled ? '#fafafa' : 'linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%)',
|
|
|
|
|
|
borderRadius: 10,
|
|
|
|
|
|
border: '1px solid',
|
|
|
|
|
|
borderColor: disabled ? '#f0f0f0' : '#e4e8ed',
|
|
|
|
|
|
transition: 'all 0.3s ease',
|
|
|
|
|
|
boxShadow: disabled ? 'none' : '0 2px 6px rgba(0,0,0,0.04)',
|
|
|
|
|
|
}}>
|
|
|
|
|
|
<Slider
|
|
|
|
|
|
style={{ flex: 1, margin: 0 }}
|
|
|
|
|
|
disabled={disabled}
|
|
|
|
|
|
min={min}
|
|
|
|
|
|
max={max}
|
|
|
|
|
|
step={step}
|
|
|
|
|
|
value={typeof value === 'number' ? value : min}
|
|
|
|
|
|
onChange={handleSliderChange}
|
|
|
|
|
|
tooltip={{ formatter: (v) => `${v?.toFixed(2)}` }}
|
|
|
|
|
|
marks={{
|
|
|
|
|
|
[min]: { style: { color: '#8c8c8c', fontSize: 10 }, label: min },
|
|
|
|
|
|
[(min + max) / 2]: { style: { color: '#8c8c8c', fontSize: 10 }, label: ((min + max) / 2).toFixed(2) },
|
|
|
|
|
|
[max]: { style: { color: '#8c8c8c', fontSize: 10 }, label: max },
|
|
|
|
|
|
}}
|
|
|
|
|
|
/>
|
|
|
|
|
|
<InputNumber
|
|
|
|
|
|
disabled={disabled}
|
|
|
|
|
|
min={min}
|
|
|
|
|
|
max={max}
|
|
|
|
|
|
step={step}
|
|
|
|
|
|
value={value}
|
|
|
|
|
|
onChange={handleInputChange}
|
|
|
|
|
|
style={{
|
|
|
|
|
|
width: 72,
|
|
|
|
|
|
borderRadius: 8,
|
|
|
|
|
|
}}
|
|
|
|
|
|
/>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2026-08-12 11:29:44 +08:00
|
|
|
|
|
2026-08-06 10:47:34 +08:00
|
|
|
|
|
|
|
|
|
|
const editableKeys = ['leftForwardGain', 'leftBackwardGain', 'rightForwardGain', 'rightBackwardGain'];
|
|
|
|
|
|
|
|
|
|
|
|
interface DeviceParamModalProps {
|
|
|
|
|
|
open: boolean;
|
|
|
|
|
|
device?: {
|
|
|
|
|
|
serialNumber?: string;
|
|
|
|
|
|
device_sn?: string;
|
|
|
|
|
|
deviceAlias?: string;
|
|
|
|
|
|
deviceName?: string;
|
|
|
|
|
|
callsign?: string;
|
|
|
|
|
|
drone_callsign?: string;
|
|
|
|
|
|
[key: string]: any;
|
|
|
|
|
|
} | null;
|
|
|
|
|
|
onCancel: () => void;
|
|
|
|
|
|
onSuccess?: () => void;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const DeviceParamModal: React.FC<DeviceParamModalProps> = ({ open, device, onCancel, onSuccess }) => {
|
|
|
|
|
|
const { stationId, currentStation } = useSelector((state: RootState) => state.station);
|
|
|
|
|
|
const [paramForm] = Form.useForm();
|
|
|
|
|
|
const [paramData, setParamData] = useState<any>(null);
|
|
|
|
|
|
const [loading, setLoading] = useState(false);
|
2026-08-12 11:29:44 +08:00
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
2026-08-06 10:47:34 +08:00
|
|
|
|
|
|
|
|
|
|
const deviceId = device?.serialNumber || device?.device_sn || '';
|
|
|
|
|
|
const deviceName = device?.deviceAlias || device?.deviceName || device?.drone_callsign || device?.callsign || deviceId;
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
|
if (open && deviceId) {
|
|
|
|
|
|
fetchParamData(deviceId);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
setParamData(null);
|
|
|
|
|
|
paramForm.resetFields();
|
|
|
|
|
|
}
|
|
|
|
|
|
}, [open, deviceId]);
|
|
|
|
|
|
|
|
|
|
|
|
const fetchParamData = async (id: string) => {
|
|
|
|
|
|
setLoading(true);
|
|
|
|
|
|
try {
|
|
|
|
|
|
const res = await deviceRunParamSelectByDeviceId({ deviceId: id });
|
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
|
if (res.data) {
|
|
|
|
|
|
setParamData(res.data);
|
|
|
|
|
|
paramForm.setFieldsValue({ ...res.data });
|
|
|
|
|
|
} else {
|
2026-08-14 09:02:52 +08:00
|
|
|
|
utils.message.error(t('devices.fetchParamFail'));
|
2026-08-07 09:56:12 +08:00
|
|
|
|
|
2026-08-06 10:47:34 +08:00
|
|
|
|
setParamData(null);
|
|
|
|
|
|
paramForm.resetFields();
|
|
|
|
|
|
}
|
|
|
|
|
|
} else {
|
2026-08-14 09:02:52 +08:00
|
|
|
|
utils.message.error(t('devices.fetchParamFail'));
|
2026-08-06 10:47:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
2026-08-14 09:02:52 +08:00
|
|
|
|
utils.message.error(t('devices.fetchParamFail'));
|
2026-08-06 10:47:34 +08:00
|
|
|
|
} finally {
|
|
|
|
|
|
setLoading(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const saveParam = async (values) => {
|
2026-08-07 09:56:12 +08:00
|
|
|
|
setLoading(true);
|
2026-08-06 10:47:34 +08:00
|
|
|
|
try {
|
|
|
|
|
|
const payload = {
|
|
|
|
|
|
leftForwardGain: Math.max(0.1, Math.min(1, values.leftForwardGain >= 10 ? values.leftForwardGain / 10 : values.leftForwardGain)),
|
|
|
|
|
|
leftBackwardGain: Math.max(0.1, Math.min(1, values.leftBackwardGain >= 10 ? values.leftBackwardGain / 10 : values.leftBackwardGain)),
|
|
|
|
|
|
rightForwardGain: Math.max(0.1, Math.min(1, values.rightForwardGain >= 10 ? values.rightForwardGain / 10 : values.rightForwardGain)),
|
|
|
|
|
|
rightBackwardGain: Math.max(0.1, Math.min(1, values.rightBackwardGain >= 10 ? values.rightBackwardGain / 10 : values.rightBackwardGain)),
|
|
|
|
|
|
deviceId,
|
|
|
|
|
|
siteId: stationId,
|
|
|
|
|
|
orgId: currentStation?.orgId,
|
|
|
|
|
|
id: paramData?.id,
|
|
|
|
|
|
};
|
|
|
|
|
|
const res = await deviceRunParamSave(payload);
|
|
|
|
|
|
if (res.code === 200) {
|
2026-08-14 09:02:52 +08:00
|
|
|
|
utils.message.success(t('devices.paramSaveSuccess'));
|
2026-08-06 10:47:34 +08:00
|
|
|
|
onSuccess?.();
|
|
|
|
|
|
onCancel?.();
|
|
|
|
|
|
} else {
|
2026-08-14 09:02:52 +08:00
|
|
|
|
utils.message.error(res.msg || t('devices.paramSaveFail'));
|
2026-08-06 10:47:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
} catch (err) {
|
2026-08-14 09:02:52 +08:00
|
|
|
|
utils.message.error(t('devices.paramSaveException'));
|
2026-08-07 09:56:12 +08:00
|
|
|
|
} finally {
|
|
|
|
|
|
setLoading(false);
|
2026-08-06 10:47:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const handleCancel = () => {
|
|
|
|
|
|
setParamData(null);
|
|
|
|
|
|
paramForm.resetFields();
|
|
|
|
|
|
onCancel?.();
|
|
|
|
|
|
};
|
2026-08-12 11:29:44 +08:00
|
|
|
|
const paramFieldConfigs = [
|
2026-08-14 09:02:52 +08:00
|
|
|
|
{ key: 'leftForwardGain', label: t('devices.paramLeftForwardGain'), type: 'InputNumber', editable: true, min: 0, max: 1, step: 0.01 },
|
|
|
|
|
|
{ key: 'leftBackwardGain', label: t('devices.paramLeftBackwardGain'), type: 'InputNumber', editable: true, min: 0, max: 1, step: 0.01 },
|
|
|
|
|
|
{ key: 'rightForwardGain', label: t('devices.paramRightForwardGain'), type: 'InputNumber', editable: true, min: 0, max: 1, step: 0.01 },
|
|
|
|
|
|
{ key: 'rightBackwardGain', label: t('devices.paramRightBackwardGain'), type: 'InputNumber', editable: true, min: 0, max: 1, step: 0.01 },
|
2026-08-12 11:29:44 +08:00
|
|
|
|
|
2026-08-14 09:02:52 +08:00
|
|
|
|
{ key: 'runSpeed', label: t('devices.paramRunSpeed'), type: 'InputNumber', editable: true },
|
2026-09-03 14:52:05 +08:00
|
|
|
|
//hasHost: "hasHost",
|
|
|
|
|
|
//rtkMode: "rtkMode", cameraNum: "cameraNum", wheelType: "wheelType", engineType: "engineType", capabilityList: "capabilityList", powerType: "powerType",
|
|
|
|
|
|
{ key: 'hasHost', label: t('devices.hasHost'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'rtkMode', label: t('devices.rtkMode'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'cameraNum', label: t('devices.cameraNum'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'wheelType', label: t('devices.wheelType'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'engineType', label: t('devices.engineType'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'capabilityList', label: t('devices.capabilityList'), type: 'Input', editable: false },
|
2026-08-14 09:02:52 +08:00
|
|
|
|
{ key: 'chipUidSign', label: t('devices.paramChipUidSign'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'chipUid', label: t('devices.paramChipUid'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'remoteConfig', label: t('devices.paramRemoteConfig'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'knifeMotorMode', label: t('devices.paramKnifeMotorMode'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'walkMotorMode', label: t('devices.paramWalkMotorMode'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'leftMotorReverse', label: t('devices.paramLeftMotorReverse'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'rightMotorReverse', label: t('devices.paramRightMotorReverse'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'swapChannel', label: t('devices.paramSwapChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'use4G', label: t('devices.paramUse4G'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'forwardSpeedLimit', label: t('devices.paramForwardSpeedLimit'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'turnSpeedLimit', label: t('devices.paramTurnSpeedLimit'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'knifePolarity', label: t('devices.paramKnifePolarity'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'fanPolarity', label: t('devices.paramFanPolarity'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'throttlePolarity', label: t('devices.paramThrottlePolarity'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'liftProtectTime', label: t('devices.paramLiftProtectTime'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'dualRtk', label: t('devices.paramDualRtk'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'knifeChannel', label: t('devices.paramKnifeChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'fanChannel', label: t('devices.paramFanChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'throttleChannel', label: t('devices.paramThrottleChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'remoteType', label: t('devices.paramRemoteType'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'relayBoard', label: t('devices.paramRelayBoard'), type: 'Checkbox', editable: false },
|
|
|
|
|
|
{ key: 'liftChannel', label: t('devices.paramLiftChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'chassisChannel', label: t('devices.paramChassisChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'armChannel', label: t('devices.paramArmChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'fuelPumpChannel', label: t('devices.paramFuelPumpChannel'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'wifiName', label: t('devices.paramWifiName'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'wifiPassword', label: t('devices.paramWifiPassword'), type: 'Input', editable: false },
|
|
|
|
|
|
{ key: 'batteryType', label: t('devices.paramBatteryType'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'driveType', label: t('devices.paramDriveType'), type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'gearRatio', label: t('devices.paramGearRatio'), type: 'InputNumber', editable: false, step: 0.01 },
|
|
|
|
|
|
{ key: 'robotLength', label: t('devices.paramRobotLength'), type: 'InputNumber', editable: false, step: 0.01 },
|
|
|
|
|
|
{ key: 'robotWidth', label: t('devices.paramRobotWidth'), type: 'InputNumber', editable: false, step: 0.01 },
|
|
|
|
|
|
{ key: 'robotHeight', label: t('devices.paramRobotHeight'), type: 'InputNumber', editable: false, step: 0.01 },
|
|
|
|
|
|
{ key: 'knifeWidth', label: t('devices.paramKnifeWidth'), type: 'InputNumber', editable: false, step: 0.01 },
|
|
|
|
|
|
{ key: 'tyreSize', label: t('devices.paramTyreSize'), type: 'InputNumber', editable: false, step: 0.01 },
|
|
|
|
|
|
{ key: 'firmwareVersion', label: t('devices.paramFirmwareVersion'), type: 'Input', editable: false },
|
2026-08-12 11:29:44 +08:00
|
|
|
|
{ key: 'crc16', label: 'CRC16', type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'tail1', label: 'tail1', type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'tail2', label: 'tail2', type: 'InputNumber', editable: false },
|
|
|
|
|
|
{ key: 'remark', label: t('roles.remark'), type: 'Input', editable: false },
|
2026-08-14 09:02:52 +08:00
|
|
|
|
{ key: 'delFlag', label: t('devices.paramDelFlag'), type: 'Checkbox', editable: false },
|
2026-08-12 11:29:44 +08:00
|
|
|
|
];
|
2026-08-06 10:47:34 +08:00
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
<Modal
|
|
|
|
|
|
title={
|
|
|
|
|
|
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
|
|
|
|
|
<span style={{
|
|
|
|
|
|
display: 'inline-block',
|
|
|
|
|
|
width: 4,
|
|
|
|
|
|
height: 18,
|
|
|
|
|
|
background: 'linear-gradient(180deg, #52c41a 0%, #389e0d 100%)',
|
|
|
|
|
|
borderRadius: 2,
|
|
|
|
|
|
}}></span>
|
2026-08-14 09:02:52 +08:00
|
|
|
|
<span style={{ fontWeight: 600 }}>{t('devices.paramViewEditTitle')}</span>
|
2026-08-06 10:47:34 +08:00
|
|
|
|
<span style={{ color: '#8c8c8c', fontSize: 13, fontWeight: 'normal' }}>
|
|
|
|
|
|
- {deviceName}
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
}
|
|
|
|
|
|
open={open}
|
|
|
|
|
|
onCancel={handleCancel}
|
|
|
|
|
|
onOk={() => paramForm.submit()}
|
|
|
|
|
|
confirmLoading={loading}
|
|
|
|
|
|
width={780}
|
|
|
|
|
|
destroyOnClose
|
|
|
|
|
|
>
|
2026-08-07 09:56:12 +08:00
|
|
|
|
{/* 加载时表单区域简单遮罩提示(打开弹窗拉取参数时的loading反馈) */}
|
|
|
|
|
|
<div style={{ maxHeight: '60vh', overflowY: 'auto', paddingRight: 8, position: 'relative' }}>
|
2026-08-12 11:29:44 +08:00
|
|
|
|
<Spin spinning={loading} tip={t('common.loading')}>
|
2026-08-07 09:56:12 +08:00
|
|
|
|
<Form form={paramForm} layout="vertical" onFinish={saveParam}>
|
2026-08-06 10:47:34 +08:00
|
|
|
|
|
2026-08-07 09:56:12 +08:00
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
|
{editableKeys.map((key) => {
|
|
|
|
|
|
const field = paramFieldConfigs.find(f => f.key === key);
|
|
|
|
|
|
if (!field) return null;
|
|
|
|
|
|
const isGainSliderField = ['leftForwardGain', 'leftBackwardGain', 'rightForwardGain', 'rightBackwardGain'].includes(key);
|
|
|
|
|
|
const disabled = !field.editable;
|
|
|
|
|
|
return (
|
|
|
|
|
|
<Col span={12} key={key}>
|
|
|
|
|
|
<Form.Item
|
|
|
|
|
|
label={<span style={{ fontWeight: 500 }}>{field.label}</span>}
|
|
|
|
|
|
name={field.key}
|
|
|
|
|
|
>
|
|
|
|
|
|
{isGainSliderField ? (
|
|
|
|
|
|
<GainSliderInput
|
|
|
|
|
|
disabled={disabled}
|
|
|
|
|
|
min={field.min}
|
|
|
|
|
|
max={field.max}
|
|
|
|
|
|
step={0.01}
|
|
|
|
|
|
/>
|
|
|
|
|
|
) : (
|
|
|
|
|
|
<InputNumber
|
|
|
|
|
|
style={{ width: '100%' }}
|
|
|
|
|
|
disabled={disabled}
|
|
|
|
|
|
min={field.min}
|
|
|
|
|
|
max={field.max}
|
|
|
|
|
|
step={field.step}
|
|
|
|
|
|
placeholder={typeof field.min === 'number' ? `${field.min}~${field.max}` : ''}
|
|
|
|
|
|
/>
|
|
|
|
|
|
)}
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
</Col>
|
|
|
|
|
|
);
|
|
|
|
|
|
})}
|
|
|
|
|
|
</Row>
|
2026-08-06 10:47:34 +08:00
|
|
|
|
|
|
|
|
|
|
|
2026-08-07 09:56:12 +08:00
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
|
{paramFieldConfigs.filter(f => !editableKeys.includes(f.key)).map((field) => {
|
|
|
|
|
|
const disabled = !field.editable;
|
|
|
|
|
|
return (
|
|
|
|
|
|
<Col span={12} key={field.key}>
|
|
|
|
|
|
<Form.Item
|
|
|
|
|
|
label={field.label}
|
|
|
|
|
|
name={field.key}
|
|
|
|
|
|
valuePropName={field.type === 'Checkbox' ? 'checked' : undefined}
|
|
|
|
|
|
>
|
|
|
|
|
|
{field.type === 'InputNumber' ? (
|
|
|
|
|
|
<InputNumber
|
|
|
|
|
|
style={{ width: '100%' }}
|
|
|
|
|
|
disabled={disabled}
|
|
|
|
|
|
min={field.min}
|
|
|
|
|
|
max={field.max}
|
|
|
|
|
|
step={field.step}
|
|
|
|
|
|
placeholder={typeof field.min === 'number' ? `${field.min}~${field.max}` : ''}
|
|
|
|
|
|
/>
|
|
|
|
|
|
) : field.type === 'Checkbox' ? (
|
|
|
|
|
|
<Checkbox disabled={disabled} />
|
|
|
|
|
|
) : (
|
2026-08-14 09:02:52 +08:00
|
|
|
|
<Input disabled={disabled} placeholder={t('devices.noData')} />
|
2026-08-07 09:56:12 +08:00
|
|
|
|
)}
|
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
</Col>
|
|
|
|
|
|
);
|
|
|
|
|
|
})}
|
|
|
|
|
|
</Row>
|
|
|
|
|
|
</Form>
|
|
|
|
|
|
</Spin>
|
2026-08-06 10:47:34 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</Modal>
|
|
|
|
|
|
);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default DeviceParamModal;
|