From 79838581ac5e710da4899348d2e8fb8fb5d68a5e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 17 Dec 2024 11:37: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