6
0

周边环境模块没有数据呈现或无数据接入 #7

Open
opened 2025-12-03 17:46:18 +08:00 by lrss3 · 1 comment
Owner
image.png
<img width="920" alt="image.png" src="attachments/4629997e-153d-4625-a54e-451c58572812">
1.3 MiB
lrss3 added the help wanted周边环境 labels 2025-12-03 17:46:18 +08:00
ZGY was assigned by lrss3 2025-12-03 18:07:27 +08:00
Author
Owner

请求数据格式

请求所有测点

http://14.152.66.108:7778/DGSD/api/ShieldTunnelFxy/MpsDataInfoBySiteId
key value
siteId 263077

测点返回数据格式

public class MpsInfo
{
    [LabelText("测点id")] public int mpsId;
    [LabelText("标段id")] public int sectionId;
    [LabelText("工程id-即基坑/区间id")] public int projectId;
    [LabelText("基坑/区间名称")] public string projectName = string.Empty;
    [LabelText("工点id")] public int tkSiteId;
    [LabelText("测点名称")] public string mpsName = string.Empty;
    [LabelText("测点类别名称")] public string mpsCategoryName = string.Empty;
    [LabelText("测点类别id")] public int mpsCategoryId;
    [LabelText("测点里程")] public string mpsTypeCode = string.Empty;
    [LabelText("测点里程")] public float course;
    [LabelText("测点里程")] public string courseStr = string.Empty;
    [LabelText("测点最新测量时间")] public string latestMeasDate = string.Empty;
    [LabelText("预警等级")] [Tooltip("2正常;1.5蓝色;1黄色;0.5橙色;0红色")]
    public float alertLevel;
    [LabelText("是否停测")] public bool stopMark;
    [LabelText("是否自动化测点")] public bool isAutoMps;
    public float u0;
    public float v0;
    public float mu0;
}

接口返回一个列表

如何统计测点

image.png
  • 在测:! stopMark 即为在测
  • 停测:stopMark 即为停测
  • 未测:--未知--
  • 逾期未测:--未知--

请求所有风险源

http://14.152.66.108:7778/DGSD/api/ShieldTunnelFxy/Fxy
key value
sceneType Jt/Ct/Szd

风险源返回数据格式

public class FxyInfoList
{
    public List<FxyInfo> fxyList;
}
public class FxyInfo
{
    public int id;
    [LabelText("工点id")] public int siteId;
    [LabelText("标段id")] public int sectionId;
    [LabelText("风险名称")] public string fxmc = string.Empty;
    [LabelText("风险等级")] public string fxdj = string.Empty;
    [LabelText("风险描述")] public string fxms = string.Empty;
    [LabelText("防范措施")] public string ffcs = string.Empty;
    [LabelText("开始环")] public int ksh;
    [LabelText("结束环")] public int jsh;
    [LabelText("开始里程")] public float kslc;
    [LabelText("结束里程")] public float jslc;
    [LabelText("风险开工时间")] public string fxkgsj = string.Empty;
    [LabelText("预计通过时间")] public string yjtgsj = string.Empty;
    [LabelText("风险类型")] public string fxlx = string.Empty;
    [LabelText("是否销号")] public int isClose;
    public string url;
}

接口返回一个带有列表的结构

如何获取风险源统计

image.png
  • 已销号:isClose
  • 穿越后:相对结束环 < 风险源属站点侧盾构机的掘进环 - 45
  • 穿越中:相对结束环 > 风险源属站点侧盾构机的掘进环 > 相对开始环
  • 临近:max ( 相对开始环 - 风险源属站点侧盾构机的掘进环 , 0 ) > 30
  • 剩余:相对开始环 > 风险源属站点侧盾构机的掘进环 + 30
  1. 风险源返回的环数理应为绝对环,盾构机实时数据是相对各自站点侧的环数,应该不能直接判断。
  2. 盾构机具体长度忘了,大概30环-45环左右的样子,这里我默认使用45环,表示盾构机整体彻底离开了这个风险源范围。
  3. 这里默认使用 30 作为临近范围。

如何获取风险等级

http://14.152.66.108:7778/DGSD/api/BSjkAlertInfo/queryList
key value
siteId 263077
cdid list

预警信息返回格式

public class Spon_GetAlertList
{
    [LabelText("预警ID")][JsonProperty("yjid")] public int WarningId;
    [LabelText("区间ID")][JsonProperty("sectionId")] public int SectionId;
    [LabelText("站点ID")][JsonProperty("siteId")] public int SiteId;
    [LabelText("预警区间")][JsonProperty("yjqj")] public int WarningSection;
    [LabelText("测点ID")][JsonProperty("cdid")] public int MeasurementPointId;
    [LabelText("测点名称")][JsonProperty("cdmc")] public string MeasurementPointName;
    [LabelText("类型")][JsonProperty("type")] public string Type;
    [LabelText("预警等级")][JsonProperty("yjdj")] public float WarningLevel;
    [LabelText("预警内容")][JsonProperty("yjnr")] public string WarningContent;
    [LabelText("预警时间")][JsonProperty("yjsj")] public string WarningTime;
    [LabelText("处置状态(1表示已处置)")][JsonProperty("czzt")] public int DisposalStatus;
    [LabelText("处置时间")][JsonProperty("czsj")] public string DisposalTime;
}

接口返回的是一个包含响应体的对象列表
实际使用 JsonProperty 特性标记中的名称作为字段名。

如何统计预警

image.png
  • 已处置:czzt == 1
  • 未处置:czzt != 1
  • 红色警告:yjdj = 0
  • 橙色警告:yjdj = 0.5f
  • 黄色警告:yjdj = 1

vue中应该不用关联测点,风险源,预警信息。

# 请求数据格式 ## 请求所有测点 ``` http://14.152.66.108:7778/DGSD/api/ShieldTunnelFxy/MpsDataInfoBySiteId ``` | key | value | | --- | --- | | siteId | 263077 | ### 测点返回数据格式 ``` csharp public class MpsInfo { [LabelText("测点id")] public int mpsId; [LabelText("标段id")] public int sectionId; [LabelText("工程id-即基坑/区间id")] public int projectId; [LabelText("基坑/区间名称")] public string projectName = string.Empty; [LabelText("工点id")] public int tkSiteId; [LabelText("测点名称")] public string mpsName = string.Empty; [LabelText("测点类别名称")] public string mpsCategoryName = string.Empty; [LabelText("测点类别id")] public int mpsCategoryId; [LabelText("测点里程")] public string mpsTypeCode = string.Empty; [LabelText("测点里程")] public float course; [LabelText("测点里程")] public string courseStr = string.Empty; [LabelText("测点最新测量时间")] public string latestMeasDate = string.Empty; [LabelText("预警等级")] [Tooltip("2正常;1.5蓝色;1黄色;0.5橙色;0红色")] public float alertLevel; [LabelText("是否停测")] public bool stopMark; [LabelText("是否自动化测点")] public bool isAutoMps; public float u0; public float v0; public float mu0; } ``` 接口返回一个列表 ### 如何统计测点 <img width="180" alt="image.png" src="attachments/d20eb155-5ffd-40d4-aa04-71699b5768c6"> * 在测:! stopMark 即为在测 * 停测:stopMark 即为停测 * 未测:--未知-- * 逾期未测:--未知-- ## 请求所有风险源 ``` http://14.152.66.108:7778/DGSD/api/ShieldTunnelFxy/Fxy ``` | key | value | | --- | --- | | sceneType | Jt/Ct/Szd | ### 风险源返回数据格式 ``` csharp public class FxyInfoList { public List<FxyInfo> fxyList; } public class FxyInfo { public int id; [LabelText("工点id")] public int siteId; [LabelText("标段id")] public int sectionId; [LabelText("风险名称")] public string fxmc = string.Empty; [LabelText("风险等级")] public string fxdj = string.Empty; [LabelText("风险描述")] public string fxms = string.Empty; [LabelText("防范措施")] public string ffcs = string.Empty; [LabelText("开始环")] public int ksh; [LabelText("结束环")] public int jsh; [LabelText("开始里程")] public float kslc; [LabelText("结束里程")] public float jslc; [LabelText("风险开工时间")] public string fxkgsj = string.Empty; [LabelText("预计通过时间")] public string yjtgsj = string.Empty; [LabelText("风险类型")] public string fxlx = string.Empty; [LabelText("是否销号")] public int isClose; public string url; } ``` 接口返回一个带有列表的结构 ### 如何获取风险源统计 <img width="179" alt="image.png" src="attachments/bddc4462-fae3-42f8-bc5e-7bad655122c3"> * 已销号:isClose * 穿越后:相对结束环 < 风险源属站点侧盾构机的掘进环 - 45 * 穿越中:相对结束环 > 风险源属站点侧盾构机的掘进环 > 相对开始环 * 临近:max ( 相对开始环 - 风险源属站点侧盾构机的掘进环 , 0 ) > 30 * 剩余:相对开始环 > 风险源属站点侧盾构机的掘进环 + 30 > 1. 风险源返回的环数理应为绝对环,盾构机实时数据是相对各自站点侧的环数,应该不能直接判断。 > 2. 盾构机具体长度忘了,大概30环-45环左右的样子,这里我默认使用45环,表示盾构机整体彻底离开了这个风险源范围。 > 3. 这里默认使用 30 作为临近范围。 ## 如何获取风险等级 ``` http://14.152.66.108:7778/DGSD/api/BSjkAlertInfo/queryList ``` | key | value | | --- | --- | | siteId | 263077 | | cdid | list<string> | ### 预警信息返回格式 ``` csharp public class Spon_GetAlertList { [LabelText("预警ID")][JsonProperty("yjid")] public int WarningId; [LabelText("区间ID")][JsonProperty("sectionId")] public int SectionId; [LabelText("站点ID")][JsonProperty("siteId")] public int SiteId; [LabelText("预警区间")][JsonProperty("yjqj")] public int WarningSection; [LabelText("测点ID")][JsonProperty("cdid")] public int MeasurementPointId; [LabelText("测点名称")][JsonProperty("cdmc")] public string MeasurementPointName; [LabelText("类型")][JsonProperty("type")] public string Type; [LabelText("预警等级")][JsonProperty("yjdj")] public float WarningLevel; [LabelText("预警内容")][JsonProperty("yjnr")] public string WarningContent; [LabelText("预警时间")][JsonProperty("yjsj")] public string WarningTime; [LabelText("处置状态(1表示已处置)")][JsonProperty("czzt")] public int DisposalStatus; [LabelText("处置时间")][JsonProperty("czsj")] public string DisposalTime; } ``` 接口返回的是一个包含响应体的对象列表 实际使用 JsonProperty 特性标记中的名称作为字段名。 ### 如何统计预警 <img width="173" alt="image.png" src="attachments/0f81b1fb-1967-4089-9e17-5708d47f863b"> * 已处置:czzt == 1 * 未处置:czzt != 1 * 红色警告:yjdj = 0 * 橙色警告:yjdj = 0.5f * 黄色警告:yjdj = 1 vue中应该不用关联测点,风险源,预警信息。
ZGY was unassigned by lrss3 2025-12-08 11:44:49 +08:00
Sign in to join this conversation.