Fixed Overload CPU issue
This commit is contained in:
parent
e073c8c604
commit
c5149148a7
@ -3040,7 +3040,7 @@
|
|||||||
"meta.tooltip.text": {
|
"meta.tooltip.text": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"You do not have Maintenance or Administrator role!\")"
|
"expression": "if({this.props.enabled},{this.props.text} +\u0027 Button\u0027,\"You do not have Administrator role!\")"
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
@ -3048,7 +3048,7 @@
|
|||||||
"props.enabled": {
|
"props.enabled": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0 || indexOf({session.props.auth.user.roles}, \"Maintenance\") \u003e\u003d 0"
|
"expression": "indexOf({session.props.auth.user.roles}, \"Administrator\") \u003e\u003d 0"
|
||||||
},
|
},
|
||||||
"type": "expr"
|
"type": "expr"
|
||||||
}
|
}
|
||||||
@ -3070,7 +3070,7 @@
|
|||||||
"type": "expression"
|
"type": "expression"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {value} \u003d 1,\r\n \"#AAAAAA\",\r\n \"#FFFFFF\"\r\n )\r\n)\r\n",
|
"expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#A1A1A1\",\r\n if(\r\n {value} \u003d True,\r\n \"#AAAAAA\",\r\n \"#FFFFFF\"\r\n )\r\n)\r\n",
|
||||||
"type": "expression"
|
"type": "expression"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
@ -1,7 +1,13 @@
|
|||||||
{
|
{
|
||||||
"custom": {
|
"custom": {
|
||||||
"MCM": "MCM01",
|
"MCM": "MCM01",
|
||||||
"PLC_list": null,
|
"PLC_list": [
|
||||||
|
"MCM01",
|
||||||
|
"MCM02",
|
||||||
|
"MCM03",
|
||||||
|
"MCM04",
|
||||||
|
"MCM05"
|
||||||
|
],
|
||||||
"color": "#C2C2C2",
|
"color": "#C2C2C2",
|
||||||
"state": "Closed",
|
"state": "Closed",
|
||||||
"type": false
|
"type": false
|
||||||
@ -24,11 +30,11 @@
|
|||||||
"custom.MCM": {
|
"custom.MCM": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"path": "view.custom.MCM"
|
"path": "view.params.tagProps[0]"
|
||||||
},
|
},
|
||||||
"transforms": [
|
"transforms": [
|
||||||
{
|
{
|
||||||
"code": "\tbaseTag \u003d self.view.params.tagProps[0]\n\tparts \u003d baseTag.split(\"/\")\n\tmcm \u003d parts[1] if len(parts) \u003e 1 else None\n\treturn mcm",
|
"code": "\tbaseTag \u003d value\n\tparts \u003d baseTag.split(\"/\")\n\tmcm \u003d parts[1] if len(parts) \u003e 1 else None\n\treturn mcm",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -2853,7 +2859,6 @@
|
|||||||
"grow": 1
|
"grow": 1
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"currentTabIndex": 2,
|
|
||||||
"menuType": "modern",
|
"menuType": "modern",
|
||||||
"tabSize": {
|
"tabSize": {
|
||||||
"width": 1000
|
"width": 1000
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"custom": {},
|
"custom": {},
|
||||||
"params": {
|
"params": {
|
||||||
"MCM": "value"
|
"MCM": "System/MCM01/MCM01"
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
"params.MCM": {
|
"params.MCM": {
|
||||||
@ -11,37 +11,38 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"defaultSize": {
|
"defaultSize": {
|
||||||
"height": 349,
|
"height": 311,
|
||||||
"width": 600
|
"width": 581
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"children": [
|
"children": [
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"name": "Icon"
|
||||||
|
},
|
||||||
|
"position": {
|
||||||
|
"basis": "30px"
|
||||||
|
},
|
||||||
|
"props": {
|
||||||
|
"path": "material/warning"
|
||||||
|
},
|
||||||
|
"type": "ia.display.icon"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"children": [
|
"children": [
|
||||||
{
|
|
||||||
"meta": {
|
|
||||||
"name": "Icon"
|
|
||||||
},
|
|
||||||
"position": {
|
|
||||||
"basis": "30px"
|
|
||||||
},
|
|
||||||
"props": {
|
|
||||||
"path": "material/warning"
|
|
||||||
},
|
|
||||||
"type": "ia.display.icon"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "Label"
|
"name": "Label"
|
||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"basis": "32px"
|
"basis": "153px"
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"text": "This button will set up the speed for all motors in the current system (MCM).\n For Armour PowerFlex — conveyors will run at a motor speed of 30 rev/h.\n\n Are you sure you want to set motor speeds?",
|
"text": " This button will set up the speed for all motors in the current system (MCM). Armour PowerFlex — conveyors will run at a motor speed of 30 rev/h. Are you sure you want to set motor speeds? ",
|
||||||
"textStyle": {
|
"textStyle": {
|
||||||
"whiteSpace": "pre-wrap"
|
"textAlign": "center",
|
||||||
|
"whiteSpace": "pre-line"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.display.label"
|
"type": "ia.display.label"
|
||||||
@ -54,6 +55,7 @@
|
|||||||
"grow": 1
|
"grow": 1
|
||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
|
"alignItems": "flex-start",
|
||||||
"direction": "column",
|
"direction": "column",
|
||||||
"justify": "space-around",
|
"justify": "space-around",
|
||||||
"style": {
|
"style": {
|
||||||
@ -66,11 +68,14 @@
|
|||||||
{
|
{
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
|
"custom": {
|
||||||
|
"turn": false
|
||||||
|
},
|
||||||
"events": {
|
"events": {
|
||||||
"component": {
|
"component": {
|
||||||
"onActionPerformed": {
|
"onActionPerformed": {
|
||||||
"config": {
|
"config": {
|
||||||
"script": "\ttag_name \u003d self.view.params.MCM\n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Setup_Motor_Speeds\"\n\tsystem.tag.writeBlocking([tag_path],[True])\n\tsystem.perspective.closePopup(\"\")"
|
"script": "\ttag_name \u003d self.view.params.MCM \n\ttag_path \u003d \"[\" + self.session.custom.fc+ \"_SCADA_TAG_PROVIDER]\"+tag_name+\"/Setup_Motor_Speeds\" \n\tsystem.tag.writeBlocking([tag_path],[True]) \n\tsystem.perspective.closePopup(\"\")"
|
||||||
},
|
},
|
||||||
"scope": "G",
|
"scope": "G",
|
||||||
"type": "script"
|
"type": "script"
|
||||||
@ -120,6 +125,9 @@
|
|||||||
"type": "ia.input.button"
|
"type": "ia.input.button"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"custom": {
|
||||||
|
"turn": "value"
|
||||||
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "FlexContainer_0"
|
"name": "FlexContainer_0"
|
||||||
},
|
},
|
||||||
@ -137,6 +145,9 @@
|
|||||||
"type": "ia.container.flex"
|
"type": "ia.container.flex"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"custom": {
|
||||||
|
"turn": false
|
||||||
|
},
|
||||||
"meta": {
|
"meta": {
|
||||||
"name": "root"
|
"name": "root"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user