modified chute view
This commit is contained in:
parent
e9ea6cea9e
commit
279ac6d1fc
@ -1,23 +1,164 @@
|
||||
{
|
||||
"custom": {
|
||||
"key": "value",
|
||||
"key_1": "value",
|
||||
"string": "value"
|
||||
"color": "d3d3d3",
|
||||
"state": 10,
|
||||
"string": "Non Powered Equipment"
|
||||
},
|
||||
"params": {
|
||||
"key": "value"
|
||||
"tagProps": [
|
||||
"System/MCM01/Conveyors/Ul15_1",
|
||||
"value",
|
||||
"value",
|
||||
"value",
|
||||
"value",
|
||||
"value",
|
||||
"value",
|
||||
"value",
|
||||
"value",
|
||||
"value"
|
||||
]
|
||||
},
|
||||
"propConfig": {
|
||||
"custom.key": {
|
||||
"custom.color": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.state"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"fallback": "ffffff",
|
||||
"inputType": "scalar",
|
||||
"mappings": [
|
||||
{
|
||||
"input": 1,
|
||||
"output": "808080"
|
||||
},
|
||||
{
|
||||
"input": 2,
|
||||
"output": "f8060d"
|
||||
},
|
||||
{
|
||||
"input": 3,
|
||||
"output": "f78e12"
|
||||
},
|
||||
{
|
||||
"input": 4,
|
||||
"output": "dd00de"
|
||||
},
|
||||
{
|
||||
"input": 5,
|
||||
"output": "3a00fd"
|
||||
},
|
||||
{
|
||||
"input": 6,
|
||||
"output": "fbff1f"
|
||||
},
|
||||
{
|
||||
"input": 7,
|
||||
"output": "39cc38"
|
||||
},
|
||||
{
|
||||
"input": 8,
|
||||
"output": "8fcef9"
|
||||
},
|
||||
{
|
||||
"input": 9,
|
||||
"output": "cdffcc"
|
||||
},
|
||||
{
|
||||
"input": 10,
|
||||
"output": "d3d3d3"
|
||||
},
|
||||
{
|
||||
"input": 11,
|
||||
"output": "a66008"
|
||||
},
|
||||
{
|
||||
"input": 12,
|
||||
"output": "ffffff"
|
||||
}
|
||||
],
|
||||
"outputType": "scalar",
|
||||
"type": "map"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.key_1": {
|
||||
"custom.state": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"fallbackDelay": 2.5,
|
||||
"mode": "indirect",
|
||||
"references": {
|
||||
"0": "{view.params.tagProps[0]}",
|
||||
"fc": "{session.custom.fc}"
|
||||
},
|
||||
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/STATE"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"expression": "coalesce({value},0)",
|
||||
"type": "expression"
|
||||
}
|
||||
],
|
||||
"type": "tag"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.string": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.state"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"fallback": "Non Powered Equipment",
|
||||
"inputType": "scalar",
|
||||
"mappings": [
|
||||
{
|
||||
"input": 1,
|
||||
"output": "Communication Fault"
|
||||
},
|
||||
{
|
||||
"input": 2,
|
||||
"output": "EStop or Faulted"
|
||||
},
|
||||
{
|
||||
"input": 3,
|
||||
"output": "Jammed"
|
||||
},
|
||||
{
|
||||
"input": 5,
|
||||
"output": "Full"
|
||||
},
|
||||
{
|
||||
"input": 6,
|
||||
"output": "50% Full"
|
||||
},
|
||||
{
|
||||
"input": 7,
|
||||
"output": "Running"
|
||||
},
|
||||
{
|
||||
"input": 9,
|
||||
"output": "Enabled, Not Running"
|
||||
},
|
||||
{
|
||||
"input": 12,
|
||||
"output": "Non Powered Equipment"
|
||||
}
|
||||
],
|
||||
"outputType": "scalar",
|
||||
"type": "map"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"params.key": {
|
||||
"params.tagProps": {
|
||||
"paramDirection": "input",
|
||||
"persistent": true
|
||||
}
|
||||
@ -30,19 +171,39 @@
|
||||
},
|
||||
"root": {
|
||||
"meta": {
|
||||
"name": "root"
|
||||
"name": "root",
|
||||
"tooltip": {
|
||||
"enabled": true
|
||||
}
|
||||
},
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"propConfig": {
|
||||
"meta.tooltip.text": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "\"Source Id: \" + {view.params.tagProps[0]} + \", Status: \" + {view.custom.string}"
|
||||
},
|
||||
"type": "expr"
|
||||
}
|
||||
},
|
||||
"props.style.backgroundColor": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "\"#\"+{view.custom.color}"
|
||||
},
|
||||
"type": "expr"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"mode": "percent",
|
||||
"style": {
|
||||
"backgroundColor": "white",
|
||||
"borderStyle": "solid",
|
||||
"borderWidth": "1px",
|
||||
"overflow": "hidden"
|
||||
"cursor": "pointer"
|
||||
}
|
||||
},
|
||||
"type": "ia.container.coord"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user