权限问题修改

This commit is contained in:
cwchen 2025-05-22 09:52:12 +08:00
parent 58c30a7c47
commit 93bbe815fb
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;