save
This commit is contained in:
parent
cfb3326875
commit
1cf3572900
@ -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();
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user