Updated APF Docked East view

This commit is contained in:
gigi mamaladze 2025-07-08 17:05:31 +04:00
parent f659e55241
commit bc36593f6b

View File

@ -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": []
@ -1910,9 +1902,37 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7DB17D\",\r\n if(\r\n {this.props.text} \u003d \"START PRESSED\",\r\n \"#009400\",\r\n if(\r\n {this.props.text} \u003d \"START\",\r\n \"#00D900\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State"
}, },
"type": "expr" "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#00D900",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "#00D900"
},
{
"input": 1,
"output": "#00FF00"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
} }
}, },
"props.text": { "props.text": {
@ -1924,7 +1944,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Start_PB_Pressed" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State"
}, },
"transforms": [ "transforms": [
{ {
@ -1937,7 +1957,7 @@
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "START PRESSED" "output": "STARTED"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -1998,9 +2018,37 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"STOP PRESSED\",\r\n \"#FF9191\",\r\n if(\r\n {this.props.text} \u003d \"STOP\",\r\n \"#FF0000\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State"
}, },
"type": "expr" "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#D90000",
"inputType": "scalar",
"mappings": [
{
"input": 0,
"output": "#D90000"
},
{
"input": 2,
"output": "#FF0000"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
} }
}, },
"props.text": { "props.text": {
@ -2012,7 +2060,7 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Stop_PB_Pressed" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Buttons_State"
}, },
"transforms": [ "transforms": [
{ {
@ -2024,8 +2072,8 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 2,
"output": "STOP PRESSED" "output": "STOPPED"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -2093,9 +2141,33 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#55A49B\",\r\n if(\r\n {this.props.text} \u003d \"JOG PRESSED\",\r\n \"#34B2A3\",\r\n if(\r\n {this.props.text} \u003d \"JOG\",\r\n \"#2ACCBA\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n" "fallbackDelay": 2.5,
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Maintenance/Jog_PB_Pressed"
}, },
"type": "expr" "transforms": [
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#00ACAC",
"inputType": "scalar",
"mappings": [
{
"input": true,
"output": "#47FFFF"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
} }
}, },
"props.text": { "props.text": {
@ -2178,14 +2250,6 @@
"type": "tag" "type": "tag"
} }
}, },
"props.style.backgroundColor": {
"binding": {
"config": {
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#7292B8\",\r\n if(\r\n {this.props.text} \u003d \"Direction Backward\",\r\n \"#0068F7\",\r\n if(\r\n {this.props.text} \u003d \"Direction Forward\",\r\n \"#3467AD\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
},
"type": "expr"
}
},
"props.text": { "props.text": {
"binding": { "binding": {
"config": { "config": {
@ -2221,6 +2285,7 @@
}, },
"props": { "props": {
"style": { "style": {
"backgroundColor": "#095ECD",
"marginBottom": 10 "marginBottom": 10
} }
}, },
@ -2284,6 +2349,7 @@
"grow": 1 "grow": 1
}, },
"props": { "props": {
"currentTabIndex": 2,
"menuType": "modern", "menuType": "modern",
"tabSize": { "tabSize": {
"width": 1000 "width": 1000