From fe2b697a063ab9898af5ec0b49c30ad20274d56e Mon Sep 17 00:00:00 2001 From: gjj <Ganjj@probim.com.cn> Date: Tue, 25 Feb 2025 11:42:12 +0800 Subject: [PATCH] 调整样式,接口对接 --- src/api/home.js | 68 +++++++++++++-------------------- 1 files changed, 27 insertions(+), 41 deletions(-) diff --git a/src/api/home.js b/src/api/home.js index ace0a96..989a263 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -1,45 +1,31 @@ +/* + * @Author: gjj Ganjj@probim.com.cn + * @Date: 2025-02-18 16:45:49 + * @LastEditors: gjj Ganjj@probim.com.cn + * @LastEditTime: 2025-02-24 17:48:55 + * @FilePath: \北京交通大学\src\api\home.js + * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE + */ import { http } from "../utils/http"; export const HomeAPI = { - getProjectList: (config = {}) => { - return http.get("/beh/home/getGisProjectList", config); - }, + GetProject: (data) => { + return http.get("/api/User/Project/GetProject", { + params: data + }); + }, - getProjectInfo: (data, config = {}) => { - return http.post("/beh/summary/getPrjSummary", data, config); - }, + WhLogin: (data, config = {}) => { + return http.post("/api//User/Home/WhLogin", data, config); + }, - getWorkerCategoryData: (data, config = {}) => { - return http.post("/beh/person/workTypeTotal", data, config); - }, - - getEquipmentCategoryCount: (data, config = {}) => { - return http.post("/beh/equipment/total", data, config); - }, - - getVideoAreaList: (belong, data, config = {}) => { - return http.post(`/beh/video/area?belong=${belong}`, data, config); - }, - - getEnvPointInfo: () => { - return http.get("/beh/environment/getPointEnvironmentRealData"); - }, - - getVideoByAreaId: (data, config = {}) => { - return http.post("/beh/video", data, config); - }, - - getTotalGoingData: () => { - return http.get("/beh/home/getHomeTotalGoingData"); - }, - - getProjectTypeSummaryData: () => { - return http.get("/beh/home/getHomeProjectTypeData"); - }, - - getTradeCategoriesStatisticsData: () => { - return http.get("/beh/home/getHomeIndustryCategoryData"); - }, - getVideoSourceList() { - return http.post("/beh/person/tree"); - } -}; + GetParticipatingList: (data) => { + return http.get("/api/User/Home/GetParticipatingList", { + params: data + }); + }, + GetParticipatingNumber: (data) => { + return http.get("/api/User/Home/GetParticipatingNumber", { + params: data + }); + }, +}; \ No newline at end of file -- Gitblit v1.9.3