接口描述:传入视图节点id获取详细视图信息,nvisual内用于右侧视图区。
URL地址:http://ip:port /wapi/v1/diagram_right/{diagramid}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000194066 | 是 | 视图id |
{
"id": 24000000194066,
"bgImg": "busd6yjv.svg",
"diagramName": "11D75",
"bgWidth": 1000,
"bgHeight": 750,
"parentId": 24000000173155,
"grandParentId": null,
"modelBgType": true,
"rightChildLinks": [],
"rightNodes": [
{
"nodeId": 24000000433357,
"nodeWidth": 171.37941496358843,
"nodeHeight": 33.37579792501778,
"nodeX": 363.23845852895147,
"nodeY": 39.27034428794992,
"nodeImg": "m5k7rmh2.png",
"fieldsValue": "11D75F42",
"fieldsSize": 7.6128668785095215,
"fieldsX": -126.94844055175781,
"fieldsY": 15.11443042755127,
"typeGroup": 7,
"status": null,
"lifeCycle": null,
"display": null,
"shapes": {},
"sublink": null
}
],
"rightSublinks": []
}
URL地址:http://ip:port /wapi/v1/diagram_right/{diagramId}/Property/{nodeid}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000173155 | 是 | 视图id |
nodeId | Long | 24000000194066 | 是 | 节点id |
{
"diagramName": "数据中心11",
"typeGroup": 8,
"properties": [
{
"propertyName": "名称",
"options": false,
"propertyValue": "11D75",
"state": true
},
{
"propertyName": "型号",
"options": true,
"propertyValue": "42U 600×1200",
"state": false
},
{
"propertyName": "额定承载功率W",
"options": false,
"propertyValue": "5000",
"state": false
},
{
"propertyName": "承重Kg",
"options": false,
"propertyValue": "",
"state": false
}
}
接口描述:传入节点id和属性名,判断右侧栏属性修改前获取属性是否是普通属性或是否有下拉列表。
URL地址:http://ip:port/wapi/v1/diagram_right/getPropertyOverrides/{nodeId}/propertyName/{name}
访问方法::Get
请求参数:
Path参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
name | String | 生命周期 | 是 | 属性名 |
nodeId | Long | 24000000194066 | 是 | 节点id |
{
"oldValue": "上架规划",
"overrides": [
"上架规划",
"下架规划",
"运行中",
"维护中"
]
}
接口描述:传入节点id和属性名和属性值,修改属性值,nvisual内用于右侧属性栏修改属性。
URL地址:http://ip:port/wapi/v1/diagram_right/editRightDiagramPropertyValues
访问方法::Post
请求参数:
Body参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
id | Long | 24000000194066 | 是 | 节点id |
propertyName | String | 生命周期 | 是 | 属性名 |
value | String | 下架规划 | 是 | 属性值 |
{
"code": 200,
"data": {
"propertyValueId": 6560290,
"objectId": 24000000194066
}
}
接口描述:选中多个对象时,查询多个对象共有的属性字段、属性字段值、设置
URL地址:http://ip:port/wapi/v1/diagram_right/objects/property/diagramId/{diagramId}
访问方法: Get
请求参数:
Path&RequestParam参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000049062 | 是 | 图层的视图diagram_id |
objectIds | Array[Long] | [24000000073710,24000000073711] | 是 | 多选对象id |
响应示例:
{
"code": 200,
"data": {
"properties": [
{
"propertyName": "IP",
"options": false,
"propertyValue": null,
"state": null
},
{
"propertyName": "图层",
"options": false,
"propertyValue": null,
"state": null
},
{
"propertyName": "型号",
"options": false,
"propertyValue": null,
"state": null
},
{
"propertyName": "效果",
"options": false,
"propertyValue": null,
"state": null
},
{
"propertyName": "生命周期",
"options": false,
"propertyValue": null,
"state": null
},
{
"propertyName": "名称",
"options": false,
"propertyValue": null,
"state": null
},
{
"propertyName": "监测状态",
"options": false,
"propertyValue": null,
"state": null
}
],
"setting": {
"depth": 0,
"angle": 0,
"z": null,
"canDelete": true
}
},
"message": "success"
}
接口描述:批量修改线缆设置
URL地址:http://ip:port/wapi/v1/links/bath_edit_vis_links
访问方法: PUT
请求参数:
RequestBody参数
参数名 | 类型 | 示例值 | 必填 | 说明 |
---|---|---|---|---|
diagramId | Long | 24000000049062 | 是 | 图层的视图diagram_id |
selectIdList | Array[Long] | [25000000073710,25000000073711] | 是 | 多选对象id |
canDelete | Boolean | false | 是 | 线缆是否可删除 |
响应示例:
{
"code": 200,
"data": {
[{“can_delete”:”false”}],...
},
"message": "success"
}