Fix: add subsidiary option on FE
This commit is contained in:
parent
9eb702dd3b
commit
5957277af3
@ -216,6 +216,7 @@ const InferencePage = () => {
|
||||
const [uploading, setUploading] = useState(false);
|
||||
const [responseData, setResponseData] = useState(null);
|
||||
const [finishedProcessing, setFinishedProcessing] = useState(false);
|
||||
const [subsidiary, setSubsidiary] = useState<string>('SEAU');
|
||||
|
||||
const handleUpload = () => {
|
||||
const formData = new FormData();
|
||||
@ -229,6 +230,7 @@ const InferencePage = () => {
|
||||
formData.append('imei_files', imei2Files[0] as FileType);
|
||||
}
|
||||
formData.append('is_test_request', 'true');
|
||||
formData.append('subsidiary', subsidiary);
|
||||
setUploading(true);
|
||||
setResponseData(null);
|
||||
const token = localStorage.getItem('sbt-token') || '';
|
||||
@ -560,6 +562,29 @@ const InferencePage = () => {
|
||||
IMEI 2: <Button disabled={finishedProcessing} icon={<UploadOutlined />}>Select Image</Button>
|
||||
</Upload>
|
||||
</div>
|
||||
<div style={{
|
||||
paddingTop: "0.5rem",
|
||||
padding: "0.5rem",
|
||||
height: "80px",
|
||||
}}>
|
||||
Subsidiary: {' '}
|
||||
<Select
|
||||
placeholder='Select a subsidiary'
|
||||
style={{ width: 150 }}
|
||||
options={[
|
||||
{ value: 'SEAU', label: 'SEAU' },
|
||||
{ value: 'SESP', label: 'SESP' },
|
||||
{ value: 'SME', label: 'SME' },
|
||||
{ value: 'SEPCO', label: 'SEPCO' },
|
||||
{ value: 'TSE', label: 'TSE' },
|
||||
{ value: 'SEIN', label: 'SEIN' },
|
||||
]}
|
||||
value={subsidiary}
|
||||
onChange={(value) => {
|
||||
setSubsidiary(value);
|
||||
}}/>
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
paddingTop: "0.5rem",
|
||||
padding: "0.5rem",
|
||||
|
Loading…
Reference in New Issue
Block a user