完善事件权限管理

This commit is contained in:
2024-06-26 00:48:05 +08:00
parent 4d5d6fd006
commit e97763bfab
6 changed files with 161 additions and 8 deletions
@@ -68,8 +68,6 @@
cardView: false, //是否显示详细视图
detailView: false, //是否显示父子表
columns: [{
checkbox: true
}, {
field: 'EventName',
title: '事件名称'
}, {
@@ -80,8 +78,22 @@
title: '排序'
}, {
field: 'IsDisable',
title: '是否禁用'
}, ]
title: '是否禁用',
formatter: function (value, row, index) {
if (value == 0) {
return '<span class="label label-primary">启用</span>';
} else {
return '<span class="label label-danger">禁用</span>';
}
}
},
{
field: 'Id',
title: '操作',
formatter: 'actionFormatter',
width: 140
}
]
});
};
@@ -96,7 +108,12 @@
};
return oTableInit;
};
function actionFormatter(value, row, index) {
return [
'<a href="javascript:;" class="btn btn-xs btn-primary" title="编辑" onclick="top.showDialog(\'eidtEventKey\', \'编辑事件权限详情\', \'/AdminCP/Permission/EditEventKey/' + value + '\', 0, 0)"><i class="fa fa-edit"></i> 编辑</a>',
'<a href="javascript:;" class="btn btn-xs btn-danger m-l-xs" title="删除" onclick="doDel(\'/AdminCP/Permission/DelEventKey\',' + value + ');"><i class="fa fa-close"></i> 删除</a>',
].join('');
}
var ButtonInit = function () {
var oInit = new Object();