update for OS3

This commit is contained in:
Mohamed Nouffer
2022-06-17 15:54:11 +05:30
parent 4b82938acb
commit 15fb951e86
22 changed files with 38 additions and 38 deletions

View File

@ -33,7 +33,7 @@ import "react-datepicker/dist/react-datepicker.css";
function Index() {
const baseUrl = "https://openshield.ts.bizside.biz";
const baseUrl = "https://fbssso.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://openshield.ts.bizside.biz/getConstructionList');
const result = await axios('https://fbssso.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://openshield.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
const result = await axios('https://fbssso.ts.bizside.biz/getDateToHaveData?construction_id=' + selectedcons + '&sheetname=' + report);
setValidDates(result.data.record);
}
}
@ -124,7 +124,7 @@ function Index() {
}
}
// function downloadReport(url) {
// function downloadReport(url)
// console.log(url);
// fetch(url)
// .then(response => {