From 398075ac879606b82e852b544f2c37c26848311b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 20 Aug 2026 17:43:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(sysmgr):=20appbase=20=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=8F=9C=E5=8D=95=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - build.sh: xls2ui 生成 appbase CRUD 页面(svgicon/appcodes/params) - create_tables.py: appbase 加入幂等建表模块(svgicon 表此前缺失) - index.ui: 移除 jsonhttpapi 死菜单项 --- build.sh | 2 +- scripts/create_tables.py | 3 ++- wwwroot/index.ui | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index 69366c6..cff91e0 100644 --- a/build.sh +++ b/build.sh @@ -89,7 +89,7 @@ if [ -d "pkgs/pipeline_core/skills_library" ]; then fi # 7. Regenerate CRUD from json for all pipeline modules -for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc; do +for mod in appbase pipeline_core pipeline_ops pipeline_dist pipeline-sdlc; do json_dir="pkgs/$mod/json" models_dir="pkgs/$mod/models" wwwroot_dir="pkgs/$mod/wwwroot" diff --git a/scripts/create_tables.py b/scripts/create_tables.py index b2fd415..f616dff 100644 --- a/scripts/create_tables.py +++ b/scripts/create_tables.py @@ -21,7 +21,8 @@ from ahserver.globalEnv import initEnv TABLE_MODULES = ['product_management', 'discount', 'pricing', 'unipay', 'smssend'] # 幂等建表模块(不 DROP,用 IF NOT EXISTS,避免清空运行时数据如 llm/pipelines/skill_proposals/tasks 等) -IDEMPOTENT_MODULES = ['pipeline_core', 'pipeline-service'] +# appbase 也放这里:svgicon/appcodes/appcodes_kv/params 是系统级配置表,含种子数据,幂等建(params 另在下方手动 ensure 默认参数) +IDEMPOTENT_MODULES = ['pipeline_core', 'pipeline-service', 'appbase'] # appbase 系统级配置表(幂等建表 + 默认参数,不 DROP 以免清空运行时数据) diff --git a/wwwroot/index.ui b/wwwroot/index.ui index 5becb50..c507e7b 100644 --- a/wwwroot/index.ui +++ b/wwwroot/index.ui @@ -317,11 +317,6 @@ "name": "ab_params", "label": "参数管理", "script": "this.open_tab({name:'ab_params',label:'参数管理',url:'/appbase/params',removable:true})" - }, - { - "name": "ab_jsonapi", - "label": "json应用接口", - "script": "this.open_tab({name:'ab_jsonapi',label:'json应用接口',url:'/appbase/jsonhttpapi',removable:true})" } ] }