From 2204f737be7958a75bd8e1f1a95a06cddfac2177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaobing=E2=80=99?= Date: Wed, 27 Dec 2023 15:03:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=9B=BA=E4=BB=B6=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E6=96=B0=E5=A2=9Emd5=E7=A0=81=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../firmwareUpgrade/components/addFirmwareModal.jsx | 5 ++++- .../firmwareUpgrade/containers/firmwareLibrary.jsx | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx index 2d63471..479f7ac 100644 --- a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx +++ b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx @@ -57,6 +57,7 @@ const AddFirmwareModal = (props) => { .field('userId', userId||'') .field('firmwareName', res?.firmwareName||'') .field('comment',res?.remark||'') + .field('md5Value',res?.md5||'') .field('device_meta_name', options?.find(item=>item.value===res?.deviceName)?.label||'') .query({ version:res?.versionNo,device_meta_id: res?.deviceName,token:'22767e1f-db8d-4a1d-87d4-56347cf21247'}) .end((err, response) => { @@ -108,11 +109,13 @@ const AddFirmwareModal = (props) => { 'deviceName':recordRow?.device_meta_id, 'versionNo':recordRow?.versionNo, 'files':recordRow?[{ url: `${domain}/${recordRow?.filepath}`, name: recordRow?.filepath.split('/')[recordRow?.filepath.split('/')?.length-1] }]:[], - 'remark':recordRow?.remark + 'remark':recordRow?.remark, + 'md5Value':recordRow?.md5Value, }} getFormApi={formApi => api.current = formApi} labelCol={{ span: 7,offset:1}} wrapperCol={{span: 15,offset:1}} labelPosition='left' > + { + return -- + } +}, { title: '上传时间', dataIndex: 'uploadTime' @@ -77,6 +84,7 @@ let columns=[{ return {users?.find(item=>item.id==record.uploader)?.name||''} } }, + { title: '备注', dataIndex: 'comment'