update for OS

This commit is contained in:
Mohamed Nouffer
2022-06-17 11:07:23 +05:30
parent b7249b4e42
commit 923c4c7e5a
10 changed files with 16 additions and 16 deletions

View File

@ -33,7 +33,7 @@ import "react-datepicker/dist/react-datepicker.css";
function Index() {
const baseUrl = "https://fbssso.ts.bizside.biz/";
const baseUrl = "https://openshield.ts.bizside.biz";
const [data, setData] = useState([]);
@ -48,7 +48,7 @@ function Index() {
useEffect(() => {
async function fetchData() {
// You can await here
const result = await axios('https://fbssso.ts.bizside.biz/getConstructionList');
const result = await axios('https://openshield.ts.bizside.biz/getConstructionList');
setData(result.data);
}
fetchData();
@ -58,7 +58,7 @@ function Index() {
async function fetchData() {
// You can await here
if(selectedcons !== "" && report !== "" && isDate() == true) {
const result = await axios('https://fbssso.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
const result = await axios('https://openshield.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
setValidDates(result.data.record);
}
}

View File

@ -65,7 +65,7 @@ function Uploader(props) {
<CCardBody >
<CFormGroup row>
<CCol md = "3">
<CLabel htmlFor = "date-input" > アップロードするファイルを選んでください < /CLabel>
<CLabel htmlFor = "date-input"> アップロードするファイルを選んでください </CLabel>
</CCol >
<CCol xs = "12"md = "9" >
<CInputFile type = "file"onChange = { onChangeHandler } id = "file-input" name = "file-input" / >