Skip to content

Commit

Permalink
修复前端table判断操作栏是否有权限的异常情况。
Browse files Browse the repository at this point in the history
修复因layui更新css版本号没变更的问题。
修复商城模块分类的鉴权规则有误的问题。
  • Loading branch information
99php committed Jun 12, 2020
1 parent 1df5bc1 commit b48b211
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/admin/view/mall/cate/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="layuimini-container">
<div class="layuimini-main">
<table id="currentTable" class="layui-table layui-hide"
data-auth-add="{:auth('goods.cate/add')}"
data-auth-edit="{:auth('goods.cate/edit')}"
data-auth-delete="{:auth('goods.cate/delete')}"
data-auth-add="{:auth('mall.cate/add')}"
data-auth-edit="{:auth('mall.cate/edit')}"
data-auth-delete="{:auth('mall.cate/delete')}"
lay-filter="currentTable">
</table>
</div>
Expand Down
2 changes: 1 addition & 1 deletion public/static/admin/css/public.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import url("../../plugs/layui-v2.5.5/css/layui.css");
@import url("../../plugs/layui-v2.5.6/css/layui.css");
@import url("../../plugs/font-awesome-4.7.0/css/font-awesome.min.css");
@import url("../css/iconfont.css");

Expand Down
8 changes: 4 additions & 4 deletions public/static/plugs/easy-admin/easy-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
for (dk in data) {
var col = data[dk];
var operat = col[col.length - 1].operat;
var check = false;
if (operat !== undefined) {
var check = false;
for (key in operat) {
var item = operat[key];
if (typeof item === 'string') {
Expand All @@ -399,9 +399,9 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
}
}
}
}
if (!check) {
data[dk].pop()
if (!check) {
data[dk].pop()
}
}
}
return data;
Expand Down

0 comments on commit b48b211

Please sign in to comment.