2026-04-24 FE Backup
This commit is contained in:
@@ -0,0 +1,229 @@
|
||||
{
|
||||
"custom": {
|
||||
"endDate": {
|
||||
"$": [
|
||||
"ts",
|
||||
0,
|
||||
1746122920108
|
||||
],
|
||||
"$ts": 1745798399000
|
||||
},
|
||||
"location": null,
|
||||
"startDate": {
|
||||
"$": [
|
||||
"ts",
|
||||
0,
|
||||
1746122916750
|
||||
],
|
||||
"$ts": 1745539200000
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"endDate": "2025-04-27 23:59:59",
|
||||
"location": null,
|
||||
"startDate": "2025-04-25 00:00:00"
|
||||
},
|
||||
"propConfig": {
|
||||
"custom.endDate": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "toDate({view.params.endDate})"
|
||||
},
|
||||
"type": "expr"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.location": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "view.params.location"
|
||||
},
|
||||
"type": "property"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"custom.startDate": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"expression": "toDate({view.params.startDate})"
|
||||
},
|
||||
"type": "expr"
|
||||
},
|
||||
"persistent": true
|
||||
},
|
||||
"params.endDate": {
|
||||
"paramDirection": "input",
|
||||
"persistent": true
|
||||
},
|
||||
"params.location": {
|
||||
"paramDirection": "input",
|
||||
"persistent": true
|
||||
},
|
||||
"params.startDate": {
|
||||
"paramDirection": "input",
|
||||
"persistent": true
|
||||
}
|
||||
},
|
||||
"props": {},
|
||||
"root": {
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"children": [
|
||||
{
|
||||
"meta": {
|
||||
"name": "Dropdown"
|
||||
},
|
||||
"position": {
|
||||
"basis": "30px"
|
||||
},
|
||||
"props": {
|
||||
"options": [
|
||||
{
|
||||
"label": "15 mins",
|
||||
"value": 15
|
||||
},
|
||||
{
|
||||
"label": "30 mins",
|
||||
"value": 30
|
||||
},
|
||||
{
|
||||
"label": "hourly",
|
||||
"value": 60
|
||||
},
|
||||
{
|
||||
"label": "daily",
|
||||
"value": 1440
|
||||
}
|
||||
],
|
||||
"placeholder": {
|
||||
"text": "Select Interval"
|
||||
},
|
||||
"value": 1440
|
||||
},
|
||||
"type": "ia.input.dropdown"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "Import"
|
||||
},
|
||||
"position": {
|
||||
"basis": "34px",
|
||||
"display": false
|
||||
},
|
||||
"props": {
|
||||
"enabled": false,
|
||||
"text": "Import"
|
||||
},
|
||||
"type": "ia.input.button"
|
||||
},
|
||||
{
|
||||
"events": {
|
||||
"component": {
|
||||
"onActionPerformed": {
|
||||
"config": {
|
||||
"script": "\tdata \u003d [self.parent.parent.parent.getChild(\"Table\").props.data]\n\txlsBytes \u003d system.dataset.toExcel(True, data)\n\tsystem.perspective.download(\"Total Power Data.xls\", xlsBytes)"
|
||||
},
|
||||
"scope": "G",
|
||||
"type": "script"
|
||||
}
|
||||
}
|
||||
},
|
||||
"meta": {
|
||||
"name": "Export"
|
||||
},
|
||||
"position": {
|
||||
"basis": "34px"
|
||||
},
|
||||
"props": {
|
||||
"text": "Export"
|
||||
},
|
||||
"type": "ia.input.button"
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "Actions"
|
||||
},
|
||||
"position": {
|
||||
"basis": "200px"
|
||||
},
|
||||
"props": {
|
||||
"direction": "column",
|
||||
"justify": "center"
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "CalculatedFields"
|
||||
},
|
||||
"position": {
|
||||
"basis": "150px"
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
},
|
||||
{
|
||||
"meta": {
|
||||
"name": "Table"
|
||||
},
|
||||
"position": {
|
||||
"basis": "400px",
|
||||
"grow": 1
|
||||
},
|
||||
"propConfig": {
|
||||
"custom.PUEData": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"struct": {
|
||||
"endDate": "{view.custom.endDate}",
|
||||
"intervalMins": "{../CalculatedFields/Actions/Dropdown.props.value}",
|
||||
"location": "{view.custom.location}",
|
||||
"startDate": "{view.custom.startDate}"
|
||||
},
|
||||
"waitOnAll": true
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\tstartDate \u003d value[\"startDate\"]\n\tendDate \u003d value[\"endDate\"]\n\tlocation\u003d value[\"location\"]\n\tintMins \u003d value[\"intervalMins\"]\n\treturn reports.MBR.data.totalpower.beginReport(startDate, endDate, intMins, location)",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "expr-struct"
|
||||
}
|
||||
},
|
||||
"props.columns": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "this.props.data"
|
||||
},
|
||||
"transforms": [
|
||||
{
|
||||
"code": "\treturn utils.helper.xformTableColumns(value)",
|
||||
"type": "script"
|
||||
}
|
||||
],
|
||||
"type": "property"
|
||||
}
|
||||
},
|
||||
"props.data": {
|
||||
"binding": {
|
||||
"config": {
|
||||
"path": "this.custom.PUEData.summaryData"
|
||||
},
|
||||
"type": "property"
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "ia.display.table"
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"name": "root"
|
||||
},
|
||||
"props": {
|
||||
"direction": "column"
|
||||
},
|
||||
"type": "ia.container.flex"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user