From 4de5b6a00e0bd7e39ba3923754264aa7aa83bfff Mon Sep 17 00:00:00 2001 From: augushong Date: Mon, 22 Aug 2022 16:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A1=A8=E6=A0=BC=E5=BC=80?= =?UTF-8?q?=E5=85=B3=EF=BC=8C=E6=97=A0=E6=9D=83=E9=99=90=E7=9A=84=E9=80=80?= =?UTF-8?q?=E5=8C=96=E4=B8=BAlist=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/curd/templates/view/index.code | 1 + app/admin/view/mall/cate/index.html | 1 + app/admin/view/mall/goods/index.html | 1 + app/admin/view/mall/tag/index.html | 1 + app/admin/view/system/admin/index.html | 1 + app/admin/view/system/auth/index.html | 1 + app/admin/view/system/menu/index.html | 1 + app/admin/view/system/node/index.html | 1 + app/admin/view/system/quick/index.html | 1 + public/static/plugs/easy-admin/easy-admin.js | 6 ++++++ 10 files changed, 15 insertions(+) diff --git a/app/admin/service/curd/templates/view/index.code b/app/admin/service/curd/templates/view/index.code index 4473e2a..31fd1f2 100644 --- a/app/admin/service/curd/templates/view/index.code +++ b/app/admin/service/curd/templates/view/index.code @@ -5,6 +5,7 @@ data-auth-edit="{:auth('{{controllerUrl}}/edit')}" data-auth-delete="{:auth('{{controllerUrl}}/delete')}" data-auth-export="{:auth('{{controllerUrl}}/export')}" + data-auth-modify="{:auth('{{controllerUrl}}/modify')}" lay-filter="currentTable"> diff --git a/app/admin/view/mall/cate/index.html b/app/admin/view/mall/cate/index.html index a8a183d..5a2458b 100644 --- a/app/admin/view/mall/cate/index.html +++ b/app/admin/view/mall/cate/index.html @@ -4,6 +4,7 @@ data-auth-add="{:auth('mall.cate/add')}" data-auth-edit="{:auth('mall.cate/edit')}" data-auth-delete="{:auth('mall.cate/delete')}" + data-auth-modify="{:auth('mall.cate/modify')}" lay-filter="currentTable"> diff --git a/app/admin/view/mall/goods/index.html b/app/admin/view/mall/goods/index.html index a6198e7..68be21a 100644 --- a/app/admin/view/mall/goods/index.html +++ b/app/admin/view/mall/goods/index.html @@ -5,6 +5,7 @@ data-auth-edit="{:auth('mall.goods/edit')}" data-auth-delete="{:auth('mall.goods/delete')}" data-auth-stock="{:auth('mall.goods/stock')}" + data-auth-modify="{:auth('mall.goods/modify')}" lay-filter="currentTable"> diff --git a/app/admin/view/mall/tag/index.html b/app/admin/view/mall/tag/index.html index 700f331..2cea489 100644 --- a/app/admin/view/mall/tag/index.html +++ b/app/admin/view/mall/tag/index.html @@ -4,6 +4,7 @@ data-auth-add="{:auth('mall.tag/add')}" data-auth-edit="{:auth('mall.tag/edit')}" data-auth-delete="{:auth('mall.tag/delete')}" + lay-filter="currentTable"> diff --git a/app/admin/view/system/admin/index.html b/app/admin/view/system/admin/index.html index 7f319c6..5961376 100644 --- a/app/admin/view/system/admin/index.html +++ b/app/admin/view/system/admin/index.html @@ -5,6 +5,7 @@ data-auth-edit="{:auth('system.admin/edit')}" data-auth-delete="{:auth('system.admin/delete')}" data-auth-password="{:auth('system.admin/password')}" + data-auth-modify="{:auth('system.admin/modify')}" lay-filter="currentTable"> diff --git a/app/admin/view/system/auth/index.html b/app/admin/view/system/auth/index.html index 177284c..5bc071a 100644 --- a/app/admin/view/system/auth/index.html +++ b/app/admin/view/system/auth/index.html @@ -5,6 +5,7 @@ data-auth-edit="{:auth('system.auth/edit')}" data-auth-delete="{:auth('system.auth/delete')}" data-auth-authorize="{:auth('system.auth/authorize')}" + data-auth-modify="{:auth('system.auth/modify')}" lay-filter="currentTable"> diff --git a/app/admin/view/system/menu/index.html b/app/admin/view/system/menu/index.html index fcc6fd4..3d7c9a7 100644 --- a/app/admin/view/system/menu/index.html +++ b/app/admin/view/system/menu/index.html @@ -12,6 +12,7 @@ data-auth-add="{:auth('system.menu/add')}" data-auth-edit="{:auth('system.menu/edit')}" data-auth-delete="{:auth('system.menu/delete')}" + data-auth-modify="{:auth('system.menu/modify')}" lay-filter="currentTable"> diff --git a/app/admin/view/system/node/index.html b/app/admin/view/system/node/index.html index e264b14..95c3964 100644 --- a/app/admin/view/system/node/index.html +++ b/app/admin/view/system/node/index.html @@ -3,6 +3,7 @@
diff --git a/app/admin/view/system/quick/index.html b/app/admin/view/system/quick/index.html index a4798f5..81424ff 100644 --- a/app/admin/view/system/quick/index.html +++ b/app/admin/view/system/quick/index.html @@ -4,6 +4,7 @@ data-auth-add="{:auth('system.quick/add')}" data-auth-edit="{:auth('system.quick/edit')}" data-auth-delete="{:auth('system.quick/delete')}" + data-auth-modify="{:auth('system.quick/modify')}" lay-filter="currentTable"> diff --git a/public/static/plugs/easy-admin/easy-admin.js b/public/static/plugs/easy-admin/easy-admin.js index fe39b0a..e24c11a 100644 --- a/public/static/plugs/easy-admin/easy-admin.js +++ b/public/static/plugs/easy-admin/easy-admin.js @@ -1065,9 +1065,15 @@ define(["jquery", "tableSelect", "ckeditor", 'miniTheme', 'tableData', 'citypick }, switch: function (data) { var option = data.LAY_COL; + + if (!admin.checkAuth('modify', option.init.table_elem)) { + return admin.table.list(data); + } + option.filter = option.filter || option.field || null; option.checked = option.checked || 1; option.tips = option.tips || '开|关'; + var value = admin.table.returnColumnValue(data); var checked = value === option.checked ? 'checked' : ''; return laytpl('').render(data);