198 lines
4.0 KiB
JavaScript
198 lines
4.0 KiB
JavaScript
import request from "@/utils/request";
|
|
const gsxtApi = "/mosty-api/mosty-gsxt";
|
|
// 新增模型
|
|
export const addEntity = (data) => {
|
|
return request({
|
|
url: gsxtApi + "/gsxtMxgl/addEntity",
|
|
method: "POST",
|
|
data
|
|
});
|
|
};
|
|
// 分页查询模型
|
|
export const getPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + "/gsxtMxgl/getPageList",
|
|
method: "get",
|
|
params
|
|
});
|
|
};
|
|
// 不分页列表查询模型
|
|
export const selectList = (params) => {
|
|
return request({
|
|
url: gsxtApi + "/gsxtMxgl/selectList",
|
|
method: "get",
|
|
params
|
|
});
|
|
};
|
|
// 通过id查询模型详情
|
|
export const getEntityById = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/gsxtMxgl/${params.id}`,
|
|
method: "get",
|
|
});
|
|
};
|
|
// 修改模型
|
|
export const editEntity = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/gsxtMxgl/editEntity`,
|
|
method: "put",
|
|
data
|
|
});
|
|
};
|
|
// 删除模型
|
|
export const deleteEntity = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/gsxtMxgl/deleteEntity`,
|
|
method: "delete",
|
|
data
|
|
});
|
|
};
|
|
// 四色预警新增
|
|
export const addSsyjpz = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/addEntity`,
|
|
method: "POST",
|
|
data
|
|
});
|
|
}
|
|
// 不分页
|
|
export const SsyjselectList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/selectList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
|
|
// 分页查询四色预警规则配置列表
|
|
export const getSsyjpzPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/getPageList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 删除四色预警规则配置
|
|
export const deleteSsyjpz = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/deleteEntity`,
|
|
method: "delete",
|
|
data
|
|
});
|
|
}
|
|
// 修改四色预警规则配置
|
|
export const editSsyjpz = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/editEntity`,
|
|
method: "put",
|
|
data
|
|
});
|
|
}
|
|
// 运行规则
|
|
export const getSsyjpzMxgzxl = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/mxgzxl`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 新增预警规则
|
|
export const addYjgzpz = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjgzpz/addEntity`,
|
|
method: "POST",
|
|
data
|
|
});
|
|
}
|
|
// 修改预警规则配置
|
|
export const editYjgzpz = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjgzpz/editEntity`,
|
|
method: "put",
|
|
data
|
|
});
|
|
}
|
|
// 分页查询预警规则配置列表
|
|
export const getYjgzpzPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjgzpz/getPageList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 不分页查询预警规则配置列表
|
|
export const getYjgzpzSelectList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjgzpz/selectList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 不分页查询预警规则配置列表
|
|
export const mxglSsyjpzSelectList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglSsyjpz/selectList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
|
|
|
|
|
|
// 删除预警规则配置
|
|
export const deleteYjgzpz = (data) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjgzpz/deleteEntity`,
|
|
method: "delete",
|
|
data
|
|
});
|
|
}
|
|
// 运行规则
|
|
export const getYjgzpzMxgzxl = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjgzpz/mxgzxl`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 预警信息
|
|
export const getYjxxPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjxx/getPageList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 预警详情
|
|
export const mxglYjxqgetPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjxq/getPageList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 预警详情
|
|
export const mxglJqxqPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglJqxq/getPageList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
// 不分页查询预警详情列表
|
|
export const mxglYjxqSelectList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglYjxq/selectList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
export const mxglJqxqGetPageList = (params) => {
|
|
return request({
|
|
url: gsxtApi + `/mxglJqxq/selectList`,
|
|
method: "get",
|
|
params
|
|
});
|
|
}
|
|
|