|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return ( | 
|---|
|  |  |  | <Dialog open={open} maxWidth="md" fullWidth> | 
|---|
|  |  |  | <Dialog open={open} maxWidth="lg" fullWidth> | 
|---|
|  |  |  | <Form onSubmit={handleSubmit}> | 
|---|
|  |  |  | <DialogCloseButton onClose={handleClose} /> | 
|---|
|  |  |  | <DialogTitle>{translate('toolbar.siteInit')}</DialogTitle> | 
|---|
|  |  |  | 
|---|
|  |  |  | 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" | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </ReferenceInput> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={4}> | 
|---|
|  |  |  | <ReferenceInput | 
|---|
|  |  |  | source="site" | 
|---|
|  |  |  | reference="basStation" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | label="table.field.deviceSite.site" | 
|---|
|  |  |  | optionText="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: '是' }, | 
|---|