mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改服务端:监测卡片参数显示配置
This commit is contained in:
@@ -58,14 +58,14 @@
|
|||||||
"addrYC":[
|
"addrYC":[
|
||||||
["电网状态", "0x1007", "--", ""],
|
["电网状态", "0x1007", "--", ""],
|
||||||
["启停状态", "0x1006", "--", ""],
|
["启停状态", "0x1006", "--", ""],
|
||||||
["手动/自动状态", "0x103D", "--", ""],
|
|
||||||
["A相电压", "0x0013", "0.0", " V", "1"],
|
["A相电压", "0x0013", "0.0", " V", "1"],
|
||||||
["A相电流", "0x001C", "0.0", " A"],
|
["A相电流", "0x001C", "0.0", " A"],
|
||||||
["B相电压", "0x0014", "0.0", " V", "1"],
|
["B相电压", "0x0014", "0.0", " V", "1"],
|
||||||
["B相电流", "0x001D", "0.0", " A"],
|
["B相电流", "0x001D", "0.0", " A"],
|
||||||
["C相电压", "0x0015", "0.0", " V", "1"],
|
["C相电压", "0x0015", "0.0", " V", "1"],
|
||||||
["C相电流", "0x001E", "0.0", " A"],
|
["C相电流", "0x001E", "0.0", " A"],
|
||||||
["总有功功率", "0x0028", "0.0", " kW"]
|
["总有功功率", "0x0028", "0.0", " kW"],
|
||||||
|
["手动/自动状态", "0x103D", "--", ""]
|
||||||
],
|
],
|
||||||
"addrCurve": ["0x0013", "0x001C", "0x0028"],
|
"addrCurve": ["0x0013", "0x001C", "0x0028"],
|
||||||
"valstr": {
|
"valstr": {
|
||||||
|
|||||||
@@ -214,10 +214,10 @@ void Station::setGarewayParams()
|
|||||||
|
|
||||||
string Station::getGatewayMode()
|
string Station::getGatewayMode()
|
||||||
{
|
{
|
||||||
// 0:手动,1:峰谷套利,2:增网配容,3:应急供电,4:并网保电,5:自定时段
|
// 0:手动,1:峰谷套利,2:配网增容,3:应急供电,4:并网保电,5:自定时段
|
||||||
if (gatewayParam.mode == 0) { return "手动"; }
|
if (gatewayParam.mode == 0) { return "手动"; }
|
||||||
else if (gatewayParam.mode == 1) { return "峰谷套利"; }
|
else if (gatewayParam.mode == 1) { return "峰谷套利"; }
|
||||||
else if (gatewayParam.mode == 2) { return "增网配容"; }
|
else if (gatewayParam.mode == 2) { return "配网增容"; }
|
||||||
else if (gatewayParam.mode == 3) { return "应急供电"; }
|
else if (gatewayParam.mode == 3) { return "应急供电"; }
|
||||||
else if (gatewayParam.mode == 4) { return "并网保电"; }
|
else if (gatewayParam.mode == 4) { return "并网保电"; }
|
||||||
else if (gatewayParam.mode == 5) { return "自定时段"; }
|
else if (gatewayParam.mode == 5) { return "自定时段"; }
|
||||||
|
|||||||
@@ -190,8 +190,8 @@ int main(int argc, char** argv)
|
|||||||
if (Config::option.windowEnabled)
|
if (Config::option.windowEnabled)
|
||||||
{
|
{
|
||||||
QApplication qapp(argc, argv);
|
QApplication qapp(argc, argv);
|
||||||
|
QString fontFile = QCoreApplication::applicationDirPath() + "/assets/fonts/优设标题黑.ttf";
|
||||||
QFontDatabase::addApplicationFont(QCoreApplication::applicationDirPath() + "/assets/fonts/优设标题黑.ttf");
|
QFontDatabase::addApplicationFont(fontFile);
|
||||||
QFont font("微软雅黑", 10, 600);
|
QFont font("微软雅黑", 10, 600);
|
||||||
QApplication::setFont(font);
|
QApplication::setFont(font);
|
||||||
MainApp mainApp;
|
MainApp mainApp;
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ std::shared_ptr<MyWidget> MainApp::getWorkWidget(std::string name)
|
|||||||
|
|
||||||
void MainApp::setWorkspaceWidget(std::shared_ptr<MyWidget> widget)
|
void MainApp::setWorkspaceWidget(std::shared_ptr<MyWidget> widget)
|
||||||
{
|
{
|
||||||
|
widgetWorkspace = widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainApp::setLabelDateTime()
|
void MainApp::setLabelDateTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user