From e4bdabbf6568d4d0d7d222fcc82d499c457491da Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 12 Jul 2025 20:01:03 +0800 Subject: [PATCH] append --- appsrc/service/setting/device_ext_setting_mgr_service.cpp | 4 ++-- html/debug/index.html | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/appsrc/service/setting/device_ext_setting_mgr_service.cpp b/appsrc/service/setting/device_ext_setting_mgr_service.cpp index 5f3b15d..0a796e1 100644 --- a/appsrc/service/setting/device_ext_setting_mgr_service.cpp +++ b/appsrc/service/setting/device_ext_setting_mgr_service.cpp @@ -61,10 +61,10 @@ void DeviceExtSettingMgrService::initialize() { REG_LINE("设备初始化"); REG_EXTFN(initVal1, void(ProjectTypeEnum, int, int, int, int), projType, year, month, day, index); - REG_EXTFN_VOID_DISPNAME(initVal1, "初始化设备"); + REG_EXTFN_VOID_DISPNAME(initVal1, "初始化设备(需重启程序)"); REG_EXTFN(initVal2, void(string), deviceId); - REG_EXTFN_VOID_DISPNAME(initVal2, "初始化设备"); + REG_EXTFN_VOID_DISPNAME(initVal2, "初始化设备(需重启程序)"); REG_PARAM_DEFAULT_VALS(initVal2, []() { return vector({DAO->getDeviceId()}); }); // REG_EXTFN_VOID(getSetting, json()); diff --git a/html/debug/index.html b/html/debug/index.html index 0324f27..0dd8e79 100644 --- a/html/debug/index.html +++ b/html/debug/index.html @@ -338,6 +338,7 @@ data() { return { actions: [], + curmenu:"", menuList: [], actionActiveGroup: null, rawRequestContent: '', @@ -501,6 +502,8 @@ } group.items.push(item); } + + this.actionActiveGroup = this.actions.find(i => i.key === curmenu); }, // action group menu item click @@ -519,7 +522,7 @@ this.wsCallSlient(request); } - this.actionActiveGroup = this.actions.find(i => i.key === event.key); + curmenu = event.key; }, // action execute @@ -579,6 +582,7 @@ if (null === this.ws) { return; } + console.log('wsCallSlient', request); this.ws.send(JSON.stringify(request)); }, },