Compare commits
No commits in common. "06bfc3cc2a877259a3a2e1460aac50e0ea879856" and "ce9bba6ae97f65313a517ba18768ec43eb0d78d6" have entirely different histories.
06bfc3cc2a
...
ce9bba6ae9
@ -1,14 +1,6 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"PLC_list": [
|
"PLC_list": null,
|
||||||
"MCM01",
|
|
||||||
"MCM02",
|
|
||||||
"MCM03",
|
|
||||||
"MCM04",
|
|
||||||
"MCM05",
|
|
||||||
"MCM06",
|
|
||||||
"MCM07"
|
|
||||||
],
|
|
||||||
"running_state": -1,
|
"running_state": -1,
|
||||||
"state": 0,
|
"state": 0,
|
||||||
"views_data": []
|
"views_data": []
|
||||||
@ -212,11 +204,6 @@
|
|||||||
"basis": "30px",
|
"basis": "30px",
|
||||||
"shrink": 0
|
"shrink": 0
|
||||||
},
|
},
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"overflow": "hidden"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -204,11 +204,6 @@
|
|||||||
"basis": "30px",
|
"basis": "30px",
|
||||||
"shrink": 0
|
"shrink": 0
|
||||||
},
|
},
|
||||||
"props": {
|
|
||||||
"style": {
|
|
||||||
"overflow": "hidden"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
"MCM03",
|
"MCM03",
|
||||||
"MCM04",
|
"MCM04",
|
||||||
"MCM05",
|
"MCM05",
|
||||||
"MCM06"
|
"MCM06",
|
||||||
|
"MCM07"
|
||||||
],
|
],
|
||||||
"running_state": -1,
|
"running_state": -1,
|
||||||
"state": 0,
|
"state": 0,
|
||||||
"type": 0,
|
|
||||||
"views_data": []
|
"views_data": []
|
||||||
},
|
},
|
||||||
"params": {
|
"params": {
|
||||||
@ -112,27 +112,6 @@
|
|||||||
},
|
},
|
||||||
"persistent": true
|
"persistent": true
|
||||||
},
|
},
|
||||||
"custom.type": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"fallbackDelay": 2.5,
|
|
||||||
"mode": "indirect",
|
|
||||||
"references": {
|
|
||||||
"0": "{view.params.tagProps[0]}",
|
|
||||||
"fc": "{session.custom.fc}"
|
|
||||||
},
|
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Chute_Type"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
|
|
||||||
"type": "expression"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "tag"
|
|
||||||
},
|
|
||||||
"persistent": true
|
|
||||||
},
|
|
||||||
"custom.views_data": {
|
"custom.views_data": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
@ -1754,22 +1733,6 @@
|
|||||||
"position": {
|
"position": {
|
||||||
"grow": 1
|
"grow": 1
|
||||||
},
|
},
|
||||||
"propConfig": {
|
|
||||||
"props.tabs": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "view.custom.type"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"code": "\t# This script runs whenever view.custom.type changes\n\tif value \u003d\u003d 0:\n\t\treturn [\"Alarms\", \"Info\"]\n\telse:\n\t\treturn [\"Alarms\", \"Info\", \"Commands\"]",
|
|
||||||
"type": "script"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props": {
|
"props": {
|
||||||
"menuType": "modern",
|
"menuType": "modern",
|
||||||
"tabSize": {
|
"tabSize": {
|
||||||
@ -1792,7 +1755,12 @@
|
|||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"paddingLeft": 10
|
"paddingLeft": 10
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"tabs": [
|
||||||
|
"Alarms",
|
||||||
|
"Info",
|
||||||
|
"Commands"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"type": "ia.container.tab"
|
"type": "ia.container.tab"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,14 +30,14 @@
|
|||||||
"fallbackDelay": 2.5,
|
"fallbackDelay": 2.5,
|
||||||
"mode": "indirect",
|
"mode": "indirect",
|
||||||
"references": {
|
"references": {
|
||||||
"0": "{view.params.tagProps[0]}",
|
"fc": "{session.custom.fc}",
|
||||||
"fc": "{session.custom.fc}"
|
"plc": "{view.custom.plc}"
|
||||||
},
|
},
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{plc}/DCN"
|
||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"expression": "!isGood({value})",
|
"expression": "if(isNull({value}), False, {value})",
|
||||||
"type": "expression"
|
"type": "expression"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -218,9 +218,27 @@
|
|||||||
"props.color": {
|
"props.color": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "if(\r\n {view.custom.disconnected},\r\n \u0027#D3D3D3\u0027,\r\n if(\r\n {view.custom.state} \u003d 1,\r\n \u0027#FF0000\u0027,\r\n if(\r\n {view.custom.state} \u003d 0,\r\n \u0027#00D900\u0027,\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n)\r\n"
|
"path": "view.custom.state"
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "#00CC00",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": 1,
|
||||||
|
"output": "#FF0000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": 0,
|
||||||
|
"output": "#00CC00"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "color",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -255,7 +273,6 @@
|
|||||||
"name": "root",
|
"name": "root",
|
||||||
"text": "",
|
"text": "",
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"enabled": true,
|
|
||||||
"style": {}
|
"style": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -273,14 +290,6 @@
|
|||||||
{
|
{
|
||||||
"input": 1,
|
"input": 1,
|
||||||
"output": "Alarms-Styles/High"
|
"output": "Alarms-Styles/High"
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": 2,
|
|
||||||
"output": "Alarms-Styles/High"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": 3,
|
|
||||||
"output": "Alarms-Styles/High"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputType": "style-list",
|
"outputType": "style-list",
|
||||||
@ -305,10 +314,37 @@
|
|||||||
},
|
},
|
||||||
"type": "property"
|
"type": "property"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"props.style.classes": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.custom.disconnected"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "Disconnects/Device-Connected",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": true,
|
||||||
|
"output": "Disconnects/Device-Disconnected"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": false,
|
||||||
|
"output": "Disconnects/Device-Connected"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "style-list",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"direction": "column"
|
"direction": "column",
|
||||||
|
"style": {}
|
||||||
},
|
},
|
||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"alarm_message": null,
|
|
||||||
"disconnected": false,
|
"disconnected": false,
|
||||||
"plc": "value",
|
"plc": "value",
|
||||||
"priority": 0,
|
"priority": 0,
|
||||||
@ -30,14 +29,14 @@
|
|||||||
"fallbackDelay": 2.5,
|
"fallbackDelay": 2.5,
|
||||||
"mode": "indirect",
|
"mode": "indirect",
|
||||||
"references": {
|
"references": {
|
||||||
"0": "{view.params.tagProps[0]}",
|
"fc": "{session.custom.fc}",
|
||||||
"fc": "{session.custom.fc}"
|
"plc": "{view.custom.plc}"
|
||||||
},
|
},
|
||||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
|
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{plc}/DCN"
|
||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"expression": "!isGood({value})",
|
"expression": "if(isNull({value}), False, {value})",
|
||||||
"type": "expression"
|
"type": "expression"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -70,14 +69,6 @@
|
|||||||
"fallback": 0,
|
"fallback": 0,
|
||||||
"inputType": "scalar",
|
"inputType": "scalar",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
|
||||||
"input": 3,
|
|
||||||
"output": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": 2,
|
|
||||||
"output": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"input": 1,
|
"input": 1,
|
||||||
"output": 1
|
"output": 1
|
||||||
@ -101,21 +92,13 @@
|
|||||||
"fallback": "Unknown",
|
"fallback": "Unknown",
|
||||||
"inputType": "scalar",
|
"inputType": "scalar",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
|
||||||
"input": 0,
|
|
||||||
"output": "No active alarms"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"input": 1,
|
"input": 1,
|
||||||
"output": "High"
|
"output": "High"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": 2,
|
"input": 0,
|
||||||
"output": "High"
|
"output": "No active alarms"
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": 3,
|
|
||||||
"output": "High"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputType": "scalar",
|
"outputType": "scalar",
|
||||||
@ -206,28 +189,6 @@
|
|||||||
"width": 1
|
"width": 1
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
"props.elements[0].fill.paint": {
|
|
||||||
"binding": {
|
|
||||||
"config": {
|
|
||||||
"path": "view.custom.disconnected"
|
|
||||||
},
|
|
||||||
"transforms": [
|
|
||||||
{
|
|
||||||
"fallback": "#585858",
|
|
||||||
"inputType": "scalar",
|
|
||||||
"mappings": [
|
|
||||||
{
|
|
||||||
"input": true,
|
|
||||||
"output": "#000000"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputType": "color",
|
|
||||||
"type": "map"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "property"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"props.elements[1].fill.paint": {
|
"props.elements[1].fill.paint": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
@ -329,7 +290,9 @@
|
|||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"d": "M 0,0 H 20 V 20 H 0 Z",
|
"d": "M 0,0 H 20 V 20 H 0 Z",
|
||||||
"fill": {},
|
"fill": {
|
||||||
|
"paint": "#585858"
|
||||||
|
},
|
||||||
"name": "path",
|
"name": "path",
|
||||||
"stroke": {
|
"stroke": {
|
||||||
"paint": "#000000",
|
"paint": "#000000",
|
||||||
@ -380,6 +343,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
|
"meta.tooltip.style.backgroundColor": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.custom.state"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"expression": "case({value},\r\n0,{session.custom.colours.state5},\r\n1,{session.custom.colours.state1},\r\n2,{session.custom.colours.state2},\r\n3,{session.custom.colours.state3},\r\n{session.custom.colours.fallback}\r\n)",
|
||||||
|
"type": "expression"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
},
|
||||||
"meta.tooltip.style.classes": {
|
"meta.tooltip.style.classes": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
@ -392,7 +369,7 @@
|
|||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
"input": 1,
|
"input": 1,
|
||||||
"output": "Alarms-Styles/High"
|
"output": "Alarms-Styles/Diagnostic"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"input": 2,
|
"input": 2,
|
||||||
@ -414,10 +391,24 @@
|
|||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"meta.tooltip.style.color": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.custom.state"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"expression": "if({session.custom.colours.colour_impaired},\r\n\t\u0027#000000\u0027,\r\n\tcase(\t{value},\r\n\t\t\t1,\u0027#FFFFFF\u0027,\r\n\t\t\t2,\u0027#000000\u0027,\r\n\t\t\t3,\u0027#000000\u0027,\r\n\t\t\t\u0027#FFFFFF\u0027)\r\n\t)",
|
||||||
|
"type": "expression"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
|
},
|
||||||
"meta.tooltip.text": {
|
"meta.tooltip.text": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "if(\n {view.custom.disconnected} \u003d false,\n \"Source Id: \" + {view.params.tagProps[0]} + \", Priority: \" + {view.custom.priority_string},\n \"Device Disconnected\"\n)\n"
|
"expression": "if({view.custom.disconnected} \u003d False,\n\tif(isNull({view.custom.alarm_message}),\n\t\"Source Id: \" + {view.params.tagProps[0]} +\n\t\", Priority: \" + {view.custom.priority_string},\n\t\"Source Id: \" + {view.params.tagProps[0]} +\n\t\", Alarm: \" + {view.custom.alarm_message} +\n\t\", Priority: \" + {view.custom.priority_string}),\n\"Source Id: \" +{view.params.tagProps[0]} + \", Priority: Unknown, State: Unknown\")"
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
@ -429,6 +420,32 @@
|
|||||||
},
|
},
|
||||||
"type": "property"
|
"type": "property"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"props.style.classes": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.custom.disconnected"
|
||||||
|
},
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "Disconnects/Device-Connected",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": true,
|
||||||
|
"output": "Disconnects/Device-Disconnected"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": false,
|
||||||
|
"output": "Disconnects/Device-Connected"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "style-list",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
|
|||||||
@ -195,7 +195,7 @@
|
|||||||
"props.elements[0].fill.paint": {
|
"props.elements[0].fill.paint": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#FFFFFF\",\r\n if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 1, \u0027#CCFFCC\u0027,\r\n 2, \u0027#FFFF00\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n 4, \u0027#FF8C00\u0027,\r\n 5, \u0027#FF4487\u0027,\r\n 6, \u0027#92FF00\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 1, \u0027#CCFFCC\u0027,\r\n 2, \u0027#FFFF00\u0027,\r\n 3, \u0027#0000FF\u0027,\r\n 4, \u0027#FF8C00\u0027,\r\n \u0027#FFFFFF\u0027\r\n ),\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n )\r\n)\r\n"
|
"expression": "if(\r\n {view.custom.disconnected},\r\n \"#FFFFFF\",\r\n if(\r\n {view.custom.type} \u003d 0,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 3, \u0027#0008FF\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 1,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 1, \u0027#C9FCC0\u0027,\r\n 2, \u0027#7F83FF\u0027,\r\n 3, \u0027#0008FF\u0027,\r\n 4, \u0027#FF8C00\u0027,\r\n 5, \u0027#FF4487\u0027,\r\n 6, \u0027#92FF00\u0027,\r\n \u0027#fff700\u0027\r\n ),\r\n if(\r\n {view.custom.type} \u003d 2,\r\n case(\r\n {view.custom.state},\r\n 0, \u0027#c2c2c2\u0027,\r\n 1, \u0027#C9FCC0\u0027,\r\n 2, \u0027#7F83FF\u0027,\r\n 3, \u0027#0008FF\u0027,\r\n 4, \u0027#FF8C00\u0027,\r\n \u0027#FFFFFF\u0027\r\n ),\r\n \u0027#fff700\u0027\r\n )\r\n )\r\n )\r\n)\r\n"
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
@ -290,10 +290,40 @@
|
|||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"props.style.classes": {
|
||||||
|
"binding": {
|
||||||
|
"config": {
|
||||||
|
"path": "view.custom.disconnected"
|
||||||
|
},
|
||||||
|
"enabled": false,
|
||||||
|
"transforms": [
|
||||||
|
{
|
||||||
|
"fallback": "Disconnects/Device-Connected",
|
||||||
|
"inputType": "scalar",
|
||||||
|
"mappings": [
|
||||||
|
{
|
||||||
|
"input": true,
|
||||||
|
"output": "Disconnects/Device-Disconnected"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"input": false,
|
||||||
|
"output": "Disconnects/Device-Connected"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputType": "style-list",
|
||||||
|
"type": "map"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "property"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"justify": "center"
|
"justify": "center",
|
||||||
|
"style": {
|
||||||
|
"classes": "Disconnects/Device-Connected"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user