This commit is contained in:
walkor 2022-12-06 15:27:39 +08:00
parent cfb3326875
commit 1cf3572900
4 changed files with 39 additions and 11 deletions

View File

@ -91,8 +91,7 @@
title: item.comment || item.field,
field: field,
hide: !item.list_show,
sort: item.enable_sort,
align: 'center',
sort: item.enable_sort
}
let control = item.control.toLowerCase();

View File

@ -36,12 +36,14 @@ function toggleSearchFormShow()
* 获取控制器详细权限并决定展示哪些按钮或dom元素
*/
layui.$(function () {
if (!window.CONTROLLER) return;
console.trace();
console.log(CONTROLLER);
//if (!window.CONTROLLER) return;
let $ = layui.$;
$.ajax({
url: "/app/admin/admin-rule/permission",
dataType: "json",
data: {controller: window.CONTROLLER},
data: {controller: CONTROLLER},
success: function (res) {
let style = '';
layui.each(res.data || [], function (k, action) {

File diff suppressed because one or more lines are too long