save
This commit is contained in:
parent
cfb3326875
commit
1cf3572900
@ -91,8 +91,7 @@
|
|||||||
title: item.comment || item.field,
|
title: item.comment || item.field,
|
||||||
field: field,
|
field: field,
|
||||||
hide: !item.list_show,
|
hide: !item.list_show,
|
||||||
sort: item.enable_sort,
|
sort: item.enable_sort
|
||||||
align: 'center',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let control = item.control.toLowerCase();
|
let control = item.control.toLowerCase();
|
||||||
|
@ -36,12 +36,14 @@ function toggleSearchFormShow()
|
|||||||
* 获取控制器详细权限,并决定展示哪些按钮或dom元素
|
* 获取控制器详细权限,并决定展示哪些按钮或dom元素
|
||||||
*/
|
*/
|
||||||
layui.$(function () {
|
layui.$(function () {
|
||||||
if (!window.CONTROLLER) return;
|
console.trace();
|
||||||
|
console.log(CONTROLLER);
|
||||||
|
//if (!window.CONTROLLER) return;
|
||||||
let $ = layui.$;
|
let $ = layui.$;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/app/admin/admin-rule/permission",
|
url: "/app/admin/admin-rule/permission",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: {controller: window.CONTROLLER},
|
data: {controller: CONTROLLER},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
let style = '';
|
let style = '';
|
||||||
layui.each(res.data || [], function (k, action) {
|
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