Fixed the header texts overlap. Fixed the active alarms showing null error
This commit is contained in:
parent
6ad1847adc
commit
1b4dfeffe2
@ -6,9 +6,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1750766217642
|
1750943397562
|
||||||
],
|
],
|
||||||
"$ts": 1750766217641
|
"$ts": 1750943397562
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -251,7 +251,7 @@
|
|||||||
"height": 30,
|
"height": 30,
|
||||||
"mode": "fill"
|
"mode": "fill"
|
||||||
},
|
},
|
||||||
"source": "/system/images/Builtin/amazon_rme_logo.png"
|
"source": null
|
||||||
},
|
},
|
||||||
"type": "ia.display.image"
|
"type": "ia.display.image"
|
||||||
},
|
},
|
||||||
@ -823,7 +823,7 @@
|
|||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"code": "\tdata \u003d value\n\trows \u003d system.dataset.toPyDataSet(data)\n\t\n\ttotal \u003d sum(row[\"Count\"] for row in rows)\n\t\n\treturn total",
|
"code": "\tif value is None or not hasattr(system.dataset, \"toPyDataSet\"):\n\t\treturn \n\t\t\n\trows \u003d system.dataset.toPyDataSet(value)\n\t\n\ttotal \u003d sum(row[\"Count\"] for row in rows)\n\t\n\treturn total",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -882,158 +882,178 @@
|
|||||||
"type": "ia.display.label"
|
"type": "ia.display.label"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"custom": {
|
"children": [
|
||||||
"covert": true
|
{
|
||||||
},
|
"custom": {
|
||||||
"events": {
|
"covert": true
|
||||||
"dom": {
|
},
|
||||||
"onClick": {
|
"events": {
|
||||||
"config": {
|
"dom": {
|
||||||
"script": "\tdevice_list \u003d tags.tag_utilities.get_devices(self.session.custom.fc)\n\ttags.tag_utilities.reset_disconnect_tags(self.session.custom.fc, device_list)\n\tAWS.wbsckt_abort.close_websckt()"
|
"onClick": {
|
||||||
},
|
"config": {
|
||||||
"scope": "G",
|
"script": "\tdevice_list \u003d tags.tag_utilities.get_devices(self.session.custom.fc)\n\ttags.tag_utilities.reset_disconnect_tags(self.session.custom.fc, device_list)\n\tAWS.wbsckt_abort.close_websckt()"
|
||||||
"type": "script"
|
},
|
||||||
}
|
"scope": "G",
|
||||||
}
|
"type": "script"
|
||||||
},
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon_2",
|
|
||||||
"tooltip": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"custom.heartbeat_received": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"fc": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/wbsckt_heartbeat_interval"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"expression": "if(secondsBetween(todate({value}),todate(now())) \u003e 70, False, True)",
|
|
||||||
"type": "expression"
|
|
||||||
}
|
}
|
||||||
],
|
}
|
||||||
"type": "tag"
|
},
|
||||||
}
|
"meta": {
|
||||||
},
|
"name": "Icon_2",
|
||||||
"custom.wbsckt_running": {
|
"tooltip": {
|
||||||
"binding": {
|
"enabled": true
|
||||||
"config": {
|
}
|
||||||
"fallbackDelay": 2.5,
|
},
|
||||||
"mode": "indirect",
|
"position": {
|
||||||
"references": {
|
"basis": "30px"
|
||||||
"fc": "{session.custom.fc}"
|
},
|
||||||
},
|
"propConfig": {
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/wbsckt_running"
|
"custom.heartbeat_received": {
|
||||||
},
|
"binding": {
|
||||||
"transforms": [
|
"config": {
|
||||||
{
|
"fallbackDelay": 2.5,
|
||||||
"expression": "if({value} \u003d True \u0026\u0026 ({this.custom.heartbeat_received} \u003d True) , True, False)",
|
"mode": "indirect",
|
||||||
"type": "expression"
|
"references": {
|
||||||
}
|
"fc": "{session.custom.fc}"
|
||||||
],
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"meta.tooltip.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "this.custom.wbsckt_running"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": true,
|
|
||||||
"output": "websocket running"
|
|
||||||
},
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/wbsckt_heartbeat_interval"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
{
|
{
|
||||||
"input": false,
|
"expression": "if(secondsBetween(todate({value}),todate(now())) \u003e 70, False, True)",
|
||||||
"output": "websocket disconnected"
|
"type": "expression"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputType": "scalar",
|
"type": "tag"
|
||||||
"type": "map"
|
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.color": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "this.custom.wbsckt_running"
|
|
||||||
},
|
},
|
||||||
"transforms": [
|
"custom.wbsckt_running": {
|
||||||
{
|
"binding": {
|
||||||
"fallback": "#000000",
|
"config": {
|
||||||
"inputType": "scalar",
|
"fallbackDelay": 2.5,
|
||||||
"mappings": [
|
"mode": "indirect",
|
||||||
{
|
"references": {
|
||||||
"input": false,
|
"fc": "{session.custom.fc}"
|
||||||
"output": "#FF4747"
|
|
||||||
},
|
},
|
||||||
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]System/wbsckt_running"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
{
|
{
|
||||||
"input": true,
|
"expression": "if({value} \u003d True \u0026\u0026 ({this.custom.heartbeat_received} \u003d True) , True, False)",
|
||||||
"output": "#FFFFFF"
|
"type": "expression"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputType": "color",
|
"type": "tag"
|
||||||
"type": "map"
|
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"type": "property"
|
"meta.tooltip.text": {
|
||||||
}
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "this.custom.wbsckt_running"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": true,
|
||||||
|
"output": "websocket running"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": false,
|
||||||
|
"output": "websocket disconnected"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "scalar",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props.color": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "this.custom.wbsckt_running"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "#000000",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": false,
|
||||||
|
"output": "#FF4747"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": true,
|
||||||
|
"output": "#FFFFFF"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "color",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"path": "material/location_city",
|
||||||
|
"style": {
|
||||||
|
"cursor": "pointer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.icon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "Label"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "50px",
|
||||||
|
"shrink": 0
|
||||||
|
},
|
||||||
|
"propConfig": {
|
||||||
|
"props.text": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"fallbackDelay": 2.5,
|
||||||
|
"mode": "direct",
|
||||||
|
"tagPath": "Configuration/FC"
|
||||||
|
},
|
||||||
|
"type": "tag"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"icon": "material/building",
|
||||||
|
"style": {
|
||||||
|
"borderWidth": "0.25px",
|
||||||
|
"color": "#FFFFFF",
|
||||||
|
"textAlign": "",
|
||||||
|
"textIndent": 10
|
||||||
|
},
|
||||||
|
"textStyle": {
|
||||||
|
"lineBreak": "auto"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "ia.display.label"
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
"props": {
|
|
||||||
"path": "material/location_city",
|
|
||||||
"style": {
|
|
||||||
"cursor": "pointer"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "Label"
|
"name": "FlexContainer_2"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"basis": "50px"
|
"basis": "200px"
|
||||||
},
|
|
||||||
"propConfig": {
|
|
||||||
"props.text": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "direct",
|
|
||||||
"tagPath": "Configuration/FC"
|
|
||||||
},
|
|
||||||
"type": "tag"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"icon": "material/building",
|
|
||||||
"style": {
|
"style": {
|
||||||
"borderWidth": "0.25px",
|
"overflow": "hidden"
|
||||||
"color": "#FFFFFF",
|
|
||||||
"textAlign": "",
|
|
||||||
"textIndent": 10
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.display.label"
|
"type": "ia.container.flex"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
@ -1094,6 +1114,7 @@
|
|||||||
"name": "Sign In"
|
"name": "Sign In"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
|
"basis": "50px",
|
||||||
"shrink": 0
|
"shrink": 0
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user