diff --git a/web/client/src/layout/components/header/index.jsx b/web/client/src/layout/components/header/index.jsx index b1cede8..9f6c376 100644 --- a/web/client/src/layout/components/header/index.jsx +++ b/web/client/src/layout/components/header/index.jsx @@ -36,6 +36,7 @@ const Header = (props) => { if (v == 'after_sale') ['problem', 'facility', 'workOrder', 'means'].map(u => modal.push(u)) if (v == 'resource_manage') ['facility', 'workOrder', 'means'].map(u => modal.push(u)) if (v == 'customer_service') ['service', 'workOrder', 'means'].map(u => modal.push(u)) + if (v == 'firmware_upgrade') modal.push('device') }) modal.push('control') modal = [...new Set(modal)] diff --git a/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx b/web/client/src/sections/firmwareUpgrade/components/addFirmwareModal.jsx index 2a6c450..88d0883 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) => { .attach('file',blobData,removeFlag?fileObj.name:recordRow?recordRow.firmwareName:fileObj.name) .field('filePath',removeFlag?fileUrl:recordRow?recordRow.filepath:fileUrl) .field('userId', userId||'') + .field('firmwareName', res?.firmwareName||'') .field('comment',res?.remark||'') .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'}) @@ -109,8 +110,8 @@ const AddFirmwareModal = (props) => { 'remark':recordRow?.remark }} getFormApi={formApi => api.current = formApi} labelCol={{ span: 7,offset:1}} wrapperCol={{span: 15,offset:1}} labelPosition='left' > - - + + { { title: (
- 固件升级 - + 设备维护 +
@@ -561,7 +561,7 @@ const Roles = (props) => { 售后运维 资源管理者 客户服务 - 固件升级 + 设备维护