From 0837953f5738cbe555da6d9e1fdc995ac8d126f5 Mon Sep 17 00:00:00 2001 From: Gary Gu <garygu@Garydebijibendiannao.local> Date: Wed, 28 May 2025 10:51:19 +0800 Subject: [PATCH] feat: 获取人员数据对接 --- src/api/home.js | 85 ++++++++++++++++++++++++++++++++---------- 1 files changed, 65 insertions(+), 20 deletions(-) diff --git a/src/api/home.js b/src/api/home.js index 989a263..46af30e 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -2,30 +2,75 @@ * @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 + * @LastEditTime: 2025-02-26 14:47:20 * @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 = { - GetProject: (data) => { - return http.get("/api/User/Project/GetProject", { - params: data - }); - }, + GetProject: (data) => { + return http.get("/api/User/Project/GetProject", { + params: data, + }); + }, - WhLogin: (data, config = {}) => { - return http.post("/api//User/Home/WhLogin", data, config); - }, + WhLogin: (data, config = {}) => { + return http.post("/api/User/Home/WhLogin", data, config); + }, - 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 + GetParticipatingList: (data) => { + return http.get("/api/User/Home/GetParticipatingList", { + params: data, + }); + }, + GetParticipatingNumber: (data) => { + return http.get("/api/User/Home/GetParticipatingNumber", { + params: data, + }); + }, + GetProjectPanoramaList: (data) => { + return http.get("/api/Panorama/PanoramaFile/GetProjectPanoramaList", { + params: data, + }); + }, + GetScenesByPbGuid: (data) => { + return http.get("/api/Panorama/PanoramaFile/GetScenesByPbGuid", { + params: data, + }); + }, + GetBindSelect: (data) => { + return http.get("/api/jsc/JSCManage/GetBindSelect", { + params: data, + }); + }, + GetDeviceType: (data) => { + return http.get("/api/jsc/JSCManage/GetDeviceType", { + params: data, + }); + }, + GetJSCDeviceState: (data) => { + return http.get("/api/jsc/JSCManage/GetJSCDeviceState", { + params: data, + }); + }, + GetJSCEnvMonitor: (data) => { + return http.get("/api/jsc/JSCManage/GetJSCEnvMonitor", { + params: data, + }); + }, + GetJSCProgress: (data) => { + return http.get("/api/jsc/JSCManage/GetJSCProgress", { + params: data, + }); + }, + GetJSCProjectMonitor: (data) => { + return http.get("/api/jsc/JSCManage/GetJSCProjectMonitor", { + params: data, + }); + }, + GetJSCUserManage: (data) => { + return http.get("/api/jsc/JSCManage/GetJSCUserManage", { + params: data, + }); + }, +}; -- Gitblit v1.9.3