Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MyEMS
MyEMS能源管理系统
提交
5ba6e605
M
MyEMS能源管理系统
项目概览
MyEMS
/
MyEMS能源管理系统
通知
46
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MyEMS能源管理系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5ba6e605
编写于
3月 19, 2024
作者:
nengyuangzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updated energy storage power station dashboard
上级
30f814da
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
28 addition
and
30 deletion
+28
-30
myems-api/reports/energystoragepowerstationdashboard.py
myems-api/reports/energystoragepowerstationdashboard.py
+6
-6
myems-web/src/components/MyEMS/EnergyStoragePowerStation/Dashboard.js
...c/components/MyEMS/EnergyStoragePowerStation/Dashboard.js
+6
-6
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationRankingTable.js
...ragePowerStation/EnergyStoragePowerStationRankingTable.js
+3
-3
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationReporting.js
...StoragePowerStation/EnergyStoragePowerStationReporting.js
+0
-2
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationTable.js
...ergyStoragePowerStation/EnergyStoragePowerStationTable.js
+8
-8
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationTableCard.js
...StoragePowerStation/EnergyStoragePowerStationTableCard.js
+4
-4
myems-web/src/i18n.js
myems-web/src/i18n.js
+1
-1
未找到文件。
myems-api/reports/energystoragepowerstationdashboard.py
浏览文件 @
5ba6e605
...
...
@@ -189,7 +189,7 @@ class Reporting:
meta_result
=
{
"id"
:
row
[
0
],
"name"
:
row
[
1
],
"uuid"
:
row
[
2
],
"value"
:
Decimal
(
1
0.0
)}
"value"
:
Decimal
(
0.0
)}
charge_ranking
.
append
(
meta_result
)
discharge_ranking
=
list
()
...
...
@@ -198,7 +198,7 @@ class Reporting:
meta_result
=
{
"id"
:
row
[
0
],
"name"
:
row
[
1
],
"uuid"
:
row
[
2
],
"value"
:
Decimal
(
1
0.0
)}
"value"
:
Decimal
(
0.0
)}
discharge_ranking
.
append
(
meta_result
)
revenue_ranking
=
list
()
...
...
@@ -207,7 +207,7 @@ class Reporting:
meta_result
=
{
"id"
:
row
[
0
],
"name"
:
row
[
1
],
"uuid"
:
row
[
2
],
"value"
:
Decimal
(
1
0.0
)}
"value"
:
Decimal
(
0.0
)}
revenue_ranking
.
append
(
meta_result
)
################################################################################################################
...
...
@@ -253,9 +253,9 @@ class Reporting:
result
[
'energy_storage_power_stations'
]
=
energy_storage_power_station_list
result
[
'charge_ranking'
]
=
charge_ranking
result
[
'total_charge'
]
=
Decimal
(
3
0.0
)
result
[
'total_charge'
]
=
Decimal
(
0.0
)
result
[
'discharge_ranking'
]
=
discharge_ranking
result
[
'total_discharge'
]
=
Decimal
(
3
0.0
)
result
[
'total_discharge'
]
=
Decimal
(
0.0
)
result
[
'revenue_ranking'
]
=
revenue_ranking
result
[
'total_revenue'
]
=
Decimal
(
3
0.0
)
result
[
'total_revenue'
]
=
Decimal
(
0.0
)
resp
.
text
=
json
.
dumps
(
result
)
myems-web/src/components/MyEMS/EnergyStoragePowerStation/Dashboard.js
浏览文件 @
5ba6e605
...
...
@@ -228,22 +228,22 @@ const Dashboard = ({ setRedirect, setRedirectUrl, t }) => {
<
Spinner
color
=
"
info
"
hidden
=
{
spinnerHidden
}
/
>
<
Spinner
color
=
"
light
"
hidden
=
{
spinnerHidden
}
/
>
<
CardSummary
rate
=
{
''
}
title
=
{
'
Number of Power Stations
'
}
footunit
=
{
''
}
color
=
"
info
"
>
<
CardSummary
rate
=
{
''
}
title
=
{
t
(
'
Number of Power Stations
'
)
}
footunit
=
{
''
}
color
=
"
info
"
>
{
1
&&
<
CountUp
end
=
{
energyStoragePowerStationList
.
length
}
duration
=
{
2
}
prefix
=
""
separator
=
"
,
"
decimal
=
"
.
"
decimals
=
{
0
}
/>
}
<
/CardSummary
>
<
CardSummary
rate
=
{
''
}
title
=
{
'
Total Rated Power
'
}
footunit
=
{
'
kW
'
}
color
=
"
info
"
>
<
CardSummary
rate
=
{
''
}
title
=
{
t
(
'
Total Rated Power
'
)
}
footunit
=
{
'
kW
'
}
color
=
"
info
"
>
{
1
&&
<
CountUp
end
=
{
totalRatedCapacity
}
duration
=
{
2
}
prefix
=
""
separator
=
"
,
"
decimal
=
"
.
"
decimals
=
{
2
}
/>
}
<
/CardSummary
>
<
CardSummary
rate
=
{
''
}
title
=
{
'
Total Rated Capacity
'
}
footunit
=
{
'
kWh
'
}
color
=
"
info
"
>
<
CardSummary
rate
=
{
''
}
title
=
{
t
(
'
Total Rated Capacity
'
)
}
footunit
=
{
'
kWh
'
}
color
=
"
info
"
>
{
1
&&
<
CountUp
end
=
{
totalRatedPower
}
duration
=
{
2
}
prefix
=
""
separator
=
"
,
"
decimal
=
"
.
"
decimals
=
{
2
}
/>
}
<
/CardSummary
>
<
CardSummary
rate
=
{
''
}
title
=
{
'
Total Charge
'
}
footunit
=
{
'
kWh
'
}
color
=
"
warning
"
>
<
CardSummary
rate
=
{
''
}
title
=
{
t
(
'
Total Charge
'
)
}
footunit
=
{
'
kWh
'
}
color
=
"
warning
"
>
{
1
&&
<
CountUp
end
=
{
totalCharge
}
duration
=
{
2
}
prefix
=
""
separator
=
"
,
"
decimal
=
"
.
"
decimals
=
{
2
}
/>
}
<
/CardSummary
>
<
CardSummary
rate
=
{
''
}
title
=
{
'
Total Discharge
'
}
footunit
=
{
'
kWh
'
}
color
=
"
warning
"
>
<
CardSummary
rate
=
{
''
}
title
=
{
t
(
'
Total Discharge
'
)
}
footunit
=
{
'
kWh
'
}
color
=
"
warning
"
>
{
1
&&
<
CountUp
end
=
{
totalDischarge
}
duration
=
{
2
}
prefix
=
""
separator
=
"
,
"
decimal
=
"
.
"
decimals
=
{
2
}
/>
}
<
/CardSummary
>
<
CardSummary
rate
=
{
''
}
title
=
{
'
Total Revenue
'
}
footunit
=
{
currency
}
color
=
"
success
"
>
<
CardSummary
rate
=
{
''
}
title
=
{
t
(
'
Total Revenue
'
)
}
footunit
=
{
currency
}
color
=
"
success
"
>
{
1
&&
<
CountUp
end
=
{
totalRevenue
}
duration
=
{
2
}
prefix
=
""
separator
=
"
,
"
decimal
=
"
.
"
decimals
=
{
2
}
/>
}
<
/CardSummary
>
<
/div
>
...
...
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationRankingTable.js
浏览文件 @
5ba6e605
...
...
@@ -4,21 +4,21 @@ import BootstrapTable from 'react-bootstrap-table-next';
const
columns
=
[
{
dataField
:
'
name
'
,
text
:
'
Name
'
,
text
:
'
名称
'
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
sort
:
false
},
{
dataField
:
'
value
'
,
text
:
'
Value
'
,
text
:
'
数值
'
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
sort
:
true
,
},
{
dataField
:
'
unit
'
,
text
:
'
Unit
'
,
text
:
'
单位
'
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
sort
:
false
,
...
...
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationReporting.js
浏览文件 @
5ba6e605
...
...
@@ -35,8 +35,6 @@ import AppContext from '../../../context/Context';
import
{
Link
,
useLocation
}
from
'
react-router-dom
'
;
import
DateRangePickerWrapper
from
'
../common/DateRangePickerWrapper
'
;
const
DetailedDataTable
=
loadable
(()
=>
import
(
'
../common/DetailedDataTable
'
));
const
EnergyStoragePowerStationReporting
=
({
setRedirect
,
setRedirectUrl
,
t
})
=>
{
let
current_moment
=
moment
();
const
location
=
useLocation
();
...
...
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationTable.js
浏览文件 @
5ba6e605
...
...
@@ -58,7 +58,7 @@ const powerFormatter = amount => <Fragment>{amount} kW</Fragment>;
const
columns
=
[
{
dataField
:
'
name
'
,
text
:
'
Name
'
,
text
:
'
名称
'
,
formatter
:
customerFormatter
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
...
...
@@ -66,14 +66,14 @@ const columns = [
},
{
dataField
:
'
address
'
,
text
:
'
Address
'
,
text
:
'
地址
'
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
sort
:
true
},
{
dataField
:
'
rated_capacity
'
,
text
:
'
Rated Capacity
'
,
text
:
'
额定容量
'
,
formatter
:
capacityFormatter
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
...
...
@@ -81,7 +81,7 @@ const columns = [
},
{
dataField
:
'
rated_power
'
,
text
:
'
Rated Power
'
,
text
:
'
额定功率
'
,
formatter
:
powerFormatter
,
classes
:
'
border-0 align-middle
'
,
headerClasses
:
'
border-0
'
,
...
...
@@ -89,7 +89,7 @@ const columns = [
},
{
dataField
:
'
status
'
,
text
:
'
Status
'
,
text
:
'
状态
'
,
formatter
:
badgeFormatter
,
classes
:
'
border-0 align-middle fs-0
'
,
headerClasses
:
'
border-0
'
,
...
...
@@ -191,7 +191,7 @@ const EnergyStoragePowerStationTable = ({ setIsSelected, energyStoragePowerStati
className
=
"
px-0 font-weight-semi-bold
"
onClick
=
{()
=>
handleViewAll
(
paginationProps
,
energyStoragePowerStationList
.
length
)}
>
view
all
全部
<
/ButtonIcon
>
<
/Col
>
<
Col
xs
=
"
auto
"
className
=
"
pr-3
"
>
...
...
@@ -202,7 +202,7 @@ const EnergyStoragePowerStationTable = ({ setIsSelected, energyStoragePowerStati
disabled
=
{
paginationProps
.
page
===
1
}
className
=
"
px-4
"
>
Previous
前一页
<
/Button
>
<
Button
color
=
{
lastIndex
>=
paginationProps
.
totalSize
?
'
light
'
:
'
primary
'
}
...
...
@@ -211,7 +211,7 @@ const EnergyStoragePowerStationTable = ({ setIsSelected, energyStoragePowerStati
disabled
=
{
lastIndex
>=
paginationProps
.
totalSize
}
className
=
"
px-4 ml-2
"
>
Next
下一页
<
/Button
>
<
/Col
>
<
/Row
>
...
...
myems-web/src/components/MyEMS/EnergyStoragePowerStation/EnergyStoragePowerStationTableCard.js
浏览文件 @
5ba6e605
...
...
@@ -4,12 +4,12 @@ import FalconCardHeader from '../../common/FalconCardHeader';
import
{
InputGroup
,
CustomInput
,
Button
,
Card
,
CardBody
}
from
'
reactstrap
'
;
import
ButtonIcon
from
'
../../common/ButtonIcon
'
;
const
EnergyStoragePowerStationTableCard
=
({
energyStoragePowerStationList
})
=>
{
const
EnergyStoragePowerStationTableCard
=
({
energyStoragePowerStationList
,
t
})
=>
{
const
[
isSelected
,
setIsSelected
]
=
useState
(
false
);
return
(
<
Card
className
=
"
mb-3
"
>
<
FalconCardHeader
title
=
"
Energy Storage Power Station List
"
light
=
{
false
}
>
<
FalconCardHeader
title
=
"
储能电站列表
"
light
=
{
false
}
>
{
isSelected
?
(
<
InputGroup
size
=
"
sm
"
className
=
"
input-group input-group-sm
"
>
<
CustomInput
type
=
"
select
"
id
=
"
bulk-select
"
>
...
...
@@ -24,7 +24,7 @@ const EnergyStoragePowerStationTableCard = ({ energyStoragePowerStationList }) =
<
/InputGroup
>
)
:
(
<>
<
ButtonIcon
icon
=
"
plus
"
transform
=
"
shrink-3 down-2
"
color
=
"
falcon-default
"
size
=
"
sm
"
>
{
/*
<ButtonIcon icon="plus" transform="shrink-3 down-2" color="falcon-default" size="sm">
New
</ButtonIcon>
<ButtonIcon icon="filter" transform="shrink-3 down-2" color="falcon-default" size="sm" className="mx-2">
...
...
@@ -32,7 +32,7 @@ const EnergyStoragePowerStationTableCard = ({ energyStoragePowerStationList }) =
</ButtonIcon>
<ButtonIcon icon="external-link-alt" transform="shrink-3 down-2" color="falcon-default" size="sm">
Export
<
/ButtonIcon
>
</ButtonIcon>
*/
}
<
/
>
)}
<
/FalconCardHeader
>
...
...
myems-web/src/i18n.js
浏览文件 @
5ba6e605
...
...
@@ -12354,7 +12354,7 @@ const resources = {
'Charge Start Time': 'Muat Waktu Mula',
'Charge End Time': 'Waktu Akhir Muat',
'Discharge Start Time': 'Buang Waktu Mula',
'Discharge End Time': 'Waktu Akhir Buan
'Discharge End Time': 'Waktu Akhir Buan
',
'Total Rated Power': 'Total Rated Power',
'Total Rated Capacity': 'Total Rated Capacity',
'Total Charge': 'Total Charge',
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录