权限问题修改
This commit is contained in:
parent
58c30a7c47
commit
93bbe815fb
|
|
@ -7,7 +7,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
table = layui.table;
|
||||
laydate = layui.laydate;
|
||||
form = layui.form;
|
||||
if ($.inArray('sysCompanyManage:add', pers) < 0) {
|
||||
if (pers && $.inArray('sysCompanyManage:add', pers) < 0) {
|
||||
document.getElementById('addDiv').remove();
|
||||
}
|
||||
//渲染table
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
table = layui.table;
|
||||
laydate = layui.laydate;
|
||||
form = layui.form;
|
||||
if ($.inArray('sysProjectContent:add', pers) < 0) {
|
||||
if (pers && $.inArray('sysProjectContent:add', pers) < 0) {
|
||||
document.getElementById('addDiv').remove();
|
||||
}
|
||||
//渲染table
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ layui.use(['table', 'layer', 'laydate', 'jquery', 'form'], function () {
|
|||
table = layui.table;
|
||||
laydate = layui.laydate;
|
||||
form = layui.form;
|
||||
if ($.inArray('sysMsgContent:add', pers) < 0) {
|
||||
if (pers && $.inArray('sysMsgContent:add', pers) < 0) {
|
||||
document.getElementById('addDiv').remove();
|
||||
}
|
||||
//渲染table
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ function checkPermission() {
|
|||
$.ajax({
|
||||
type : 'get',
|
||||
url : ctxPath + '/permissions/owns',
|
||||
contentType : "application/json; charset=utf-8",
|
||||
// contentType : "application/json; charset=utf-8",
|
||||
async : false,
|
||||
success : function(data) {
|
||||
pers = data;
|
||||
|
|
|
|||
Loading…
Reference in New Issue