Update: (步骤备份)更新部门管理前端

This commit is contained in:
wojiaoyishang
2025-01-20 21:38:08 +08:00
parent 517d6f3d7f
commit 813363f0d4
6 changed files with 72 additions and 61 deletions
+5 -8
View File
@@ -47,11 +47,11 @@
</script>
<script type="text/html" id="power-bar">
{% if authorize("system:role:edit") %}
{% if authorize("system:power:edit") %}
<button class="layui-btn layui-btn-xs" lay-event="edit"><i class="pear-icon pear-icon-edit"> 编辑</i>
</button>
{% endif %}
{% if authorize("system:role:remove") %}
{% if authorize("system:power:remove") %}
<button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove"><i
class="pear-icon pear-icon-ashbin"> 删除</i>
</button>
@@ -94,19 +94,16 @@
window.render = function () {
treeTable.render({
treeColIndex: 1,
treeSpid: 0,
treeIdName: 'id',
treePidName: 'parent_id',
skin: 'line',
method: 'post',
treeDefaultClose: true,
toolbar: '#power-toolbar',
elem: '#power-table',
url: '/system/power/data',
url: MODULE_PATH + 'data',
page: false,
cols: [
[{type: 'checkbox', fixed: 'left'},
[
{type: 'checkbox', fixed: 'left'},
{field: 'id', width: 100, title: '编号'},
{field: 'name', title: '权限名称'},
{field: 'icon', title: '图标', templet: '#icon'},