2025-08-22 17:47:58 +08:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
import { AxiosPromise } from 'axios';
|
|
|
|
|
|
|
|
|
|
// 查询生项目天气
|
|
|
|
|
export const getScreenWeather = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/weather/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 17:47:58 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目安全天数
|
|
|
|
|
export const getScreenSafetyDay = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/safetyDay/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 17:47:58 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目公告
|
|
|
|
|
export const getScreenNews = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/news/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 17:47:58 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目土地统计
|
|
|
|
|
export const getScreenLand = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 17:47:58 +08:00
|
|
|
});
|
2025-08-22 22:17:57 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目形象进度
|
|
|
|
|
export const getScreenImgProcess = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/imageProgress/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 22:17:57 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目人员情况
|
|
|
|
|
export const getScreenPeople = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/people/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 22:17:57 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目AI安全巡检
|
|
|
|
|
export const getScreenSafetyInspection = (projectId: number | string) => {
|
|
|
|
|
return request({
|
2025-09-12 22:38:25 +08:00
|
|
|
url: '/project/big/screen/safetyInspection/' + projectId,
|
|
|
|
|
method: 'get'
|
|
|
|
|
// params: {
|
|
|
|
|
// projectId
|
|
|
|
|
// }
|
2025-08-22 22:17:57 +08:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 查询项目概况
|
|
|
|
|
export const getScreenGeneralize = (projectId: number | string) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/generalize/' + projectId,
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get'
|
2025-08-22 22:17:57 +08:00
|
|
|
});
|
|
|
|
|
};
|
2025-09-09 19:52:26 +08:00
|
|
|
|
|
|
|
|
// 获取gps数据
|
|
|
|
|
export const getGps = (projectId) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/getClientList/' + projectId,
|
|
|
|
|
method: 'get'
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
// 选中列表
|
|
|
|
|
export const getSelectList = (params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/getList',
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get',
|
2025-09-09 19:52:26 +08:00
|
|
|
params
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
// 设置选中
|
|
|
|
|
export const setSelect = (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/project/big/screen/setList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
});
|
2025-09-12 20:28:12 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取模型列表
|
|
|
|
|
export const getModelList = (params) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/yjearth4.0/api/v1/source/list',
|
2025-09-12 22:01:26 +08:00
|
|
|
method: 'get',
|
2025-09-12 20:28:12 +08:00
|
|
|
params
|
|
|
|
|
});
|
2025-09-12 22:01:26 +08:00
|
|
|
};
|