From 548dcb58164aaeb7ec8a4f3425953bcd25d83c65 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 15 Jan 2025 18:40:00 +0800
Subject: [PATCH] 应急空间位置更新
---
src/api/indParkInfo.js | 82 +++++++++++++++++++++++-----------------
1 files changed, 47 insertions(+), 35 deletions(-)
diff --git a/src/api/indParkInfo.js b/src/api/indParkInfo.js
index 38a5bc8..24bce02 100644
--- a/src/api/indParkInfo.js
+++ b/src/api/indParkInfo.js
@@ -1,53 +1,65 @@
import request from 'utils/http'
+const { VITE_APP_BASE } = import.meta.env
export const getDetail = (params) => {
- const url = `/yw/indParkInfo/getDetail`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
+ const url = `/yw/indParkInfo/getDetail`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
+
+
+export const getfirmInfoDetail = (params) => {
+ const url = `/yw/firmInfo/getDetail`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
export const getPage = (params) => {
- const url = `/yw/firmInfo/page`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
+ const url = `${VITE_APP_BASE}xg/qyfb.json`
+ return request({
+ url,
+ method: 'get',
+ params,
+ localJSON: true
+ })
+}
export const getRescueTeamStatistic = (params) => {
- const url = `/yw/rescueTeam/getStatisticData`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
+ const url = `/yw/rescueTeam/getStatisticData`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
export const getRiskSourceStatistic = (params) => {
- const url = `/yw/riskSource/getStatisticData`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
+ const url = `/yw/riskSource/getStatisticData`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
export const getEmergencySpaceStatistic = (params) => {
- const url = `/yw/emergencySpace/getStatisticData`;
- return request({
- url,
- method: 'get',
- params,
- });
-};
\ No newline at end of file
+ const url = `/yw/emergencySpace/getStatisticData`
+ return request({
+ url,
+ method: 'get',
+ params,
+ })
+}
\ No newline at end of file
--
Gitblit v1.9.3