fix: 修改首页车流量接口

This commit is contained in:
fyy
2025-09-06 10:55:22 +08:00
parent 6f987f29ef
commit 38f6877031

View File

@@ -96,13 +96,11 @@ async function getCarCount() {
return localTime.toISOString().slice(0, -1) + 'Z'; return localTime.toISOString().slice(0, -1) + 'Z';
}; };
const response = await fetch( const response = await fetch(
'https://server.cqnctc.com:6081/web/lot/net/queryOrderParkForPage', 'https://server.cqnctc.com:6081/web/thirdParty/queryInParkData',
{ {
method: 'POST', method: 'POST',
headers: { headers: {
'X-Auth-Token': `${sessionStorage.getItem('token')}`,
'Content-Type': 'application/json', 'Content-Type': 'application/json',
Authorization: `Bearer ${sessionStorage.getItem('token')}`,
Accept: 'application/json, text/plain, */*', Accept: 'application/json, text/plain, */*',
}, },
body: JSON.stringify({ body: JSON.stringify({
@@ -123,13 +121,11 @@ async function getCarCount() {
const result = await response.json(); const result = await response.json();
overviewItems.value[1].value = result.data.pageTotals; overviewItems.value[1].value = result.data.pageTotals;
const response2 = await fetch( const response2 = await fetch(
'https://server.cqnctc.com:6081/web/lot/net/queryOrderParkForPage', 'https://server.cqnctc.com:6081/web/thirdParty/queryInParkData',
{ {
method: 'POST', method: 'POST',
headers: { headers: {
'X-Auth-Token': `${sessionStorage.getItem('token')}`,
'Content-Type': 'application/json', 'Content-Type': 'application/json',
Authorization: `Bearer ${sessionStorage.getItem('token')}`,
Accept: 'application/json, text/plain, */*', Accept: 'application/json, text/plain, */*',
}, },
body: JSON.stringify({ body: JSON.stringify({