From b77e0fb2208aa129bd5c39641dc72febc7beadaa Mon Sep 17 00:00:00 2001 From: bwstudio Date: Wed, 9 Sep 2026 19:57:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(plugins):=20=E7=BD=91=E7=AB=99=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=B8=A4=E4=B8=AA=E5=AD=90=E9=A1=B5=E9=9D=A2=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=A0=8F=E5=AF=B9=E9=BD=90=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A0=87=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将「导航管理」与「导航分类管理」两个表格页的操作区对齐后台通用风格 (仅改插件内文件,framework 不动): - 把"新增"按钮从查询表单移出,改为表格 toolbar(带 authorize 权限判断), 与用户管理一致置于表头左侧 - 表格补齐 defaultToolbar:刷新 / 筛选列 / 打印 / 导出(刷新走 window.refresh 重载) - 查询表单仅保留查询 + 重置按钮 - 新增 table.on('toolbar') 处理 add/refresh 事件,新增/刷新统一为 window.add / window.refresh 验证:本地起服务用 Playwright 真实浏览器登录 admin 渲染,确认两页均生成 .layui-table-tool(含新增按钮)与默认工具栏(4 个图标),数据与操作不受影响。 --- .../templates/system/nav/category_main.html | 31 ++++++++++++++++--- .../navManager/templates/system/nav/main.html | 31 ++++++++++++++++--- 2 files changed, 52 insertions(+), 10 deletions(-) diff --git a/plugins/navManager/templates/system/nav/category_main.html b/plugins/navManager/templates/system/nav/category_main.html index 4d2267f..137d80c 100644 --- a/plugins/navManager/templates/system/nav/category_main.html +++ b/plugins/navManager/templates/system/nav/category_main.html @@ -20,9 +20,6 @@ - @@ -35,6 +32,16 @@ {% include 'system/common/footer.html' %} +{# 表格工具栏 #} + + {% raw %} + {% raw %}