From 5957277af32ce1ae8b21768b8e4e874d586502b4 Mon Sep 17 00:00:00 2001 From: dx-tan Date: Wed, 24 Apr 2024 10:39:27 +0700 Subject: [PATCH] Fix: add subsidiary option on FE --- cope2n-fe/src/pages/inference/index.tsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/cope2n-fe/src/pages/inference/index.tsx b/cope2n-fe/src/pages/inference/index.tsx index b4c4d6c..19682cc 100644 --- a/cope2n-fe/src/pages/inference/index.tsx +++ b/cope2n-fe/src/pages/inference/index.tsx @@ -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('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: +
+ Subsidiary: {' '} +