2026-04-24 FE Backup
This commit is contained in:
@@ -0,0 +1,228 @@
|
||||
{
|
||||
"custom": {
|
||||
"AlarmSeverity": 0,
|
||||
"RunStatus": 1,
|
||||
"Status": null,
|
||||
"tag": "GEN 1.1"
|
||||
},
|
||||
"params": {
|
||||
"objectName": "GEN",
|
||||
"tagPath": "[Ignition_Common_IO_Gtwy]Yard/SATB1_YARD_GEN-P1-1"
|
||||
},
|
||||
"propConfig": {
|
||||
"custom.AlarmSeverity": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"fallbackDelay": 2.5,
|
||||
"mode": "indirect",
|
||||
"references": {
|
||||
"tagPath": "{view.params.tagPath}"
|
||||
},
|
||||
"tagPath": "{tagPath}/AlarmSummary/ActiveAlarms"
|
||||
},
|
||||
"enabled": false,
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\treturn alarm.summary.calcMaxPriority(self.view.params.tagPath)",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "tag"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.RunStatus": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"fallbackDelay": 2.5,
|
||||
"mode": "indirect",
|
||||
"references": {
|
||||
"tagPath": "{view.params.tagPath}"
|
||||
},
|
||||
"tagPath": "{tagPath}/Run Status"
|
||||
},
|
||||
"enabled": false,
|
||||
"transforms": [
|
||||
{
|
||||
"fallback": 0,
|
||||
"inputType": "scalar",
|
||||
"mappings": [
|
||||
{
|
||||
"input": false,
|
||||
"output": 0
|
||||
},
|
||||
{
|
||||
"input": true,
|
||||
"output": 1
|
||||
}
|
||||
],
|
||||
"outputType": "scalar",
|
||||
"type": "map"
|
||||
}
|
||||
],
|
||||
"type": "tag"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.Status": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "if({view.custom.AlarmSeverity}\u003e1,2, {view.custom.RunStatus})"
|
||||
},
|
||||
"type": "expr"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.tag": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"fallbackDelay": 2.5,
|
||||
"mode": "indirect",
|
||||
"references": {
|
||||
"tagPath": "{view.params.tagPath}"
|
||||
},
|
||||
"tagPath": "{tagPath}/Meta/EqName"
|
||||
},
|
||||
"enabled": false,
|
||||
"type": "tag"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"params.objectName": {
|
||||
"paramDirection": "input",
|
||||
"persistent": true
|
||||
},
|
||||
"params.tagPath": {
|
||||
"paramDirection": "input",
|
||||
"persistent": true
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"defaultSize": {
|
||||
"height": 50,
|
||||
"width": 65
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"children": [
|
||||
{
|
||||
"meta": {
|
||||
"name": "Label"
|
||||
},
|
||||
"position": {
|
||||
"basis": "60px"
|
||||
},
|
||||
"propConfig": {
|
||||
"props.style.backgroundColor": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "if({view.custom.AlarmSeverity}\u003e1, 2, {view.custom.RunStatus})"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"fallback": "purple",
|
||||
"inputType": "scalar",
|
||||
"mappings": [
|
||||
{
|
||||
"input": 0,
|
||||
"output": "lightGray"
|
||||
},
|
||||
{
|
||||
"input": 1,
|
||||
"output": "White"
|
||||
},
|
||||
{
|
||||
"input": 2,
|
||||
"output": "var(--olRed)"
|
||||
}
|
||||
],
|
||||
"outputType": "scalar",
|
||||
"type": "map"
|
||||
}
|
||||
],
|
||||
"type": "expr"
|
||||
}
|
||||
},
|
||||
"props.text": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.custom.tag"
|
||||
},
|
||||
"type": "property"
|
||||
}
|
||||
},
|
||||
"props.textStyle.color": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "if({view.custom.AlarmSeverity}\u003e1, 2, {view.custom.RunStatus})"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"fallback": "yellow",
|
||||
"inputType": "scalar",
|
||||
"mappings": [
|
||||
{
|
||||
"input": 0,
|
||||
"output": "black"
|
||||
},
|
||||
{
|
||||
"input": 1,
|
||||
"output": "black"
|
||||
},
|
||||
{
|
||||
"input": 2,
|
||||
"output": "white"
|
||||
}
|
||||
],
|
||||
"outputType": "scalar",
|
||||
"type": "map"
|
||||
}
|
||||
],
|
||||
"type": "expr"
|
||||
}
|
||||
}
|
||||
},
|
||||
"props": {
|
||||
"style": {
|
||||
"borderBottomLeftRadius": 5,
|
||||
"borderBottomRightRadius": 5,
|
||||
"borderTopLeftRadius": 5,
|
||||
"borderTopRightRadius": 5,
|
||||
"padding": "5px"
|
||||
},
|
||||
"textStyle": {
|
||||
"fontSize": 12,
|
||||
"textAlign": "center"
|
||||
}
|
||||
},
|
||||
"type": "ia.display.label"
|
||||
}
|
||||
],
|
||||
"events": {
|
||||
"dom": {
|
||||
"onClick": {
|
||||
"config": {
|
||||
"script": "\tpageId \u003d self.page.props.pageId\n\tsystem.perspective.print(\u0027pageId: {}\u0027.format(pageId))\n\t\n\ttagPath \u003d self.view.params.tagPath\n\tobjectName \u003d self.view.params.objectName\n\tutils.nav.openEQPopup(objectName, tagPath)\t"
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
}
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"name": "root"
|
||||
},
|
||||
"props": {
|
||||
"direction": "column",
|
||||
"justify": "center",
|
||||
"style": {
|
||||
"borderBottomLeftRadius": "var(--borderRadiusInput)",
|
||||
"borderBottomRightRadius": "var(--borderRadiusInput)",
|
||||
"borderTopLeftRadius": "var(--borderRadiusInput)",
|
||||
"borderTopRightRadius": "var(--borderRadiusInput)",
|
||||
"classes": "containers/HoverOver"
|
||||
}
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user