From db51068c5a00761c950e623331283c1be9c813b1 Mon Sep 17 00:00:00 2001 From: zhaonengzhi Date: Thu, 12 Aug 2021 21:12:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9D=83=E9=99=90?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=20=20=E4=B8=8D=E8=83=BD=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaonengzhi --- .../templates/admin/permission/list.html | 51 +++++++++---------- 1 file changed, 23 insertions(+), 28 deletions(-) diff --git a/src/main/resources/templates/admin/permission/list.html b/src/main/resources/templates/admin/permission/list.html index e259ab0..dd697d3 100644 --- a/src/main/resources/templates/admin/permission/list.html +++ b/src/main/resources/templates/admin/permission/list.html @@ -77,34 +77,29 @@ let MODULE_PATH = rootPath+"/PermissionController/"; - window.render = function () { - treetable.render({ - treeColIndex: 1, - treeSpid: 0, - treeIdName: 'id', - treePidName: 'parentId', - skin: 'line', - method: 'post', - treeDefaultClose: true, - toolbar: '#power-toolbar', - elem: '#power-table', - url: MODULE_PATH+'list', - page: false, - cols: [ - [ - {type: 'checkbox'}, - {field: 'name', minWidth: 200, title: '权限名称'}, - {field: 'icon', title: '图标', templet: '#icon'}, - {field: 'type', title: '权限类型', templet: '#power-type'}, - {field: 'visible', title: '是否可用', templet: '#power-enable'}, - {field: 'orderNum', title: '排序'}, - {title: '操作', templet: '#power-bar', width: 150, align: 'center'} - ] - ] - }); - } - - render(); + treetable.render({ + treeColIndex: 1, + treeSpid: 0, + treeIdName: 'id', + treePidName: 'pid', + skin: 'line', + method: 'post', + treeDefaultClose: true, + toolbar: '#power-toolbar', + elem: '#power-table', + url: MODULE_PATH+'list', + page: false, + cols: [[ + {type: 'checkbox'}, + {field: 'name', minWidth: 200, title: '权限名称'}, + {field: 'icon', title: '图标', templet: '#icon'}, + {field: 'type', title: '权限类型', templet: '#power-type'}, + {field: 'visible', title: '是否可用', templet: '#power-enable'}, + {field: 'orderNum', title: '排序'}, + {title: '操作', templet: '#power-bar', width: 150, align: 'center'} + ] + ] + }); form.on('submit(power-query)', function (data) { var keyword = data.field.powerName; -- Gitee From 5af5fc151d5466d7832047029c4bf9bf42ef04ae Mon Sep 17 00:00:00 2001 From: zhaonengzhi Date: Thu, 12 Aug 2021 21:21:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=A0=BC=E5=BC=8F=20Sign?= =?UTF-8?q?ed-off-by:=20zhaonengzhi=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/admin/permission/list.html | 498 ++++++++++-------- 1 file changed, 278 insertions(+), 220 deletions(-) diff --git a/src/main/resources/templates/admin/permission/list.html b/src/main/resources/templates/admin/permission/list.html index dd697d3..11bc8af 100644 --- a/src/main/resources/templates/admin/permission/list.html +++ b/src/main/resources/templates/admin/permission/list.html @@ -1,259 +1,317 @@ - - - - -
-
-
-
- -
- -
- - -
-
-
-
-
-
-
-
-
+ + + + +
+
+
+
+
- + - + - + - + - + - - - - }) - \ No newline at end of file -- Gitee