From 1af8eb8dc7bdafd9e2f8d8650c93243a0cb6963c Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 26 五月 2025 18:14:21 +0800 Subject: [PATCH] 代码优化 --- rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx b/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx index fbd1634..57c9d8c 100644 --- a/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx +++ b/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx @@ -95,7 +95,7 @@ return ( - <Dialog open={open} maxWidth="md" fullWidth> + <Dialog open={open} maxWidth="lg" fullWidth> <Form onSubmit={handleSubmit}> <DialogCloseButton onClose={handleClose} /> <DialogTitle>{translate('toolbar.siteInit')}</DialogTitle> @@ -119,35 +119,41 @@ dictTypeCode="sys_device_type" /> </Grid> - - <Grid item xs={4}> <TextInput - label={translate("table.field.deviceSite.deviceCode")} - name="deviceCode" + label={translate("table.field.deviceSite.channel")} + name="channel" size="small" type="number" /> </Grid> - <Grid item xs={4}> <TextInput label={translate("table.field.deviceSite.deviceSite")} name="deviceSites" + placeholder={translate('common.action.inputPlaceholder')} size="small" - type="number" + // type="number" /> </Grid> - <Grid item xs={4}> <TextInput - label={translate("table.field.deviceSite.sites")} - name="sites" + label={translate("table.field.deviceSite.site")} + name="site" + placeholder={translate('common.action.inputPlaceholder')} size="small" - type="number" + // type="number" /> </Grid> - + <Grid item xs={4}> + <TextInput + label={translate("table.field.deviceSite.target")} + name="target" + placeholder={translate('common.action.inputPlaceholder')} + size="small" + // type="number" + /> + </Grid> <Grid item xs={4}> <SelectInput label="table.field.deviceSite.flagInit" -- Gitblit v1.9.1