From 48b45b5e63f9925c63c951093c4cf596d89683a2 Mon Sep 17 00:00:00 2001 From: vincentlu <t1341870251@gmail.com> Date: 星期一, 11 八月 2025 10:34:22 +0800 Subject: [PATCH] # --- rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx | 56 ++++++++++++++++++++++++++++++++++---------------------- 1 files changed, 34 insertions(+), 22 deletions(-) diff --git a/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx b/rsf-admin/src/page/basicInfo/deviceSite/InitModal.jsx index 1cc4b81..9d5545b 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> @@ -117,42 +117,54 @@ label={translate("table.field.deviceSite.device")} name="deviceType" dictTypeCode="sys_device_type" - multiple /> </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}> + <ReferenceInput + source="deviceSites" + reference="basStation" + > + <SelectInput + label="table.field.deviceSite.deviceSite" + optionText="stationName" + optionValue="stationName" + /> + </ReferenceInput> + </Grid> + <Grid item xs={4}> + <ReferenceInput + source="site" + reference="basStation" + > + <SelectInput + label="table.field.deviceSite.site" + optionText="stationName" + optionValue="stationName" + /> + </ReferenceInput> + + </Grid> <Grid item xs={4}> <TextInput - label={translate("table.field.deviceSite.deviceSite")} - name="deviceSites" + label={translate("table.field.deviceSite.target")} + name="target" + 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" - size="small" - type="number" - /> - </Grid> - <Grid item xs={4}> <SelectInput - label="table.field.deviceSite.flagInitu" - source="flagInitu" + label="table.field.deviceSite.flagInit" + source="flagInit" choices={[ { id: 0, name: '鍚�' }, { id: 1, name: '鏄�' }, -- Gitblit v1.9.1