修改服务端:监测卡片参数显示配置

This commit is contained in:
lixiaoyuan
2025-11-27 16:07:57 +08:00
parent 8735a31b18
commit 658197295c
4 changed files with 7 additions and 6 deletions

View File

@@ -214,10 +214,10 @@ void Station::setGarewayParams()
string Station::getGatewayMode()
{
// 0手动1峰谷套利2增网配容3应急供电4并网保电5自定时段
// 0手动1峰谷套利2网增3应急供电4并网保电5自定时段
if (gatewayParam.mode == 0) { 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 == 4) { return "并网保电"; }
else if (gatewayParam.mode == 5) { return "自定时段"; }

View File

@@ -190,8 +190,8 @@ int main(int argc, char** argv)
if (Config::option.windowEnabled)
{
QApplication qapp(argc, argv);
QFontDatabase::addApplicationFont(QCoreApplication::applicationDirPath() + "/assets/fonts/优设标题黑.ttf");
QString fontFile = QCoreApplication::applicationDirPath() + "/assets/fonts/优设标题黑.ttf";
QFontDatabase::addApplicationFont(fontFile);
QFont font("微软雅黑", 10, 600);
QApplication::setFont(font);
MainApp mainApp;

View File

@@ -158,6 +158,7 @@ std::shared_ptr<MyWidget> MainApp::getWorkWidget(std::string name)
void MainApp::setWorkspaceWidget(std::shared_ptr<MyWidget> widget)
{
widgetWorkspace = widget;
}
void MainApp::setLabelDateTime()