From 3efbc2a3ab28544494e9b925cc63fc03df07e7f2 Mon Sep 17 00:00:00 2001 From: bobi Date: Wed, 15 May 2019 22:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=A7=92=E8=89=B2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/permission-tree.json | 166 ++++++++++++++------------- lib/layui_plugins/okLayer/okLayer.js | 1 - lib/layui_plugins/okUtils/okUtils.js | 2 +- pages/role/role-add.html | 59 ++++++---- pages/role/role-edit.html | 59 ++++++---- pages/role/role.html | 18 ++- pages/user/user.html | 12 +- 7 files changed, 171 insertions(+), 146 deletions(-) diff --git a/data/permission-tree.json b/data/permission-tree.json index bee672b..cc98dcd 100644 --- a/data/permission-tree.json +++ b/data/permission-tree.json @@ -1,85 +1,89 @@ -[ - { +{ + "status": 1000, + "msg": "查询成功", + "data": [{ "id": "1", "name": "根目录", "isParent": true }, - { - "id": "2", - "name": "会员管理", - "isParent": true, - "parentId": "1" - }, - { - "id": "3", - "name": "用户管理", - "isParent": true, - "parentId": "2" - }, - { - "id": "4", - "name": "增加", - "isParent": false, - "parentId": "3" - }, - { - "id": "5", - "name": "修改", - "isParent": false, - "parentId": "3" - }, - { - "id": "6", - "name": "删除", - "isParent": false, - "parentId": "3" - }, - { - "id": "7", - "name": "角色管理", - "isParent": true, - "parentId": "2" - }, - { - "id": "8", - "name": "增加", - "isParent": false, - "parentId": "7" - }, - { - "id": "9", - "name": "修改", - "isParent": false, - "parentId": "7" - }, - { - "id": "10", - "name": "删除", - "isParent": false, - "parentId": "7" - }, - { - "id": "11", - "name": "权限管理", - "isParent": true, - "parentId": "2" - }, - { - "id": "12", - "name": "增加", - "isParent": false, - "parentId": "11" - }, - { - "id": "13", - "name": "修改", - "isParent": false, - "parentId": "11" - }, - { - "id": "14", - "name": "删除", - "isParent": false, - "parentId": "11" - } -] + { + "id": "2", + "name": "会员管理", + "isParent": true, + "parentId": "1" + }, + { + "id": "3", + "name": "用户管理", + "isParent": true, + "parentId": "2" + }, + { + "id": "4", + "name": "增加", + "isParent": false, + "parentId": "3" + }, + { + "id": "5", + "name": "修改", + "isParent": false, + "parentId": "3" + }, + { + "id": "6", + "name": "删除", + "isParent": false, + "parentId": "3" + }, + { + "id": "7", + "name": "角色管理", + "isParent": true, + "parentId": "2" + }, + { + "id": "8", + "name": "增加", + "isParent": false, + "parentId": "7" + }, + { + "id": "9", + "name": "修改", + "isParent": false, + "parentId": "7" + }, + { + "id": "10", + "name": "删除", + "isParent": false, + "parentId": "7" + }, + { + "id": "11", + "name": "权限管理", + "isParent": true, + "parentId": "2" + }, + { + "id": "12", + "name": "增加", + "isParent": false, + "parentId": "11" + }, + { + "id": "13", + "name": "修改", + "isParent": false, + "parentId": "11" + }, + { + "id": "14", + "name": "删除", + "isParent": false, + "parentId": "11" + } + ] + +} diff --git a/lib/layui_plugins/okLayer/okLayer.js b/lib/layui_plugins/okLayer/okLayer.js index 8155701..e4e67fa 100644 --- a/lib/layui_plugins/okLayer/okLayer.js +++ b/lib/layui_plugins/okLayer/okLayer.js @@ -23,7 +23,6 @@ layui.define(["layer"], function (exports) { layer.open({ title: title, type: 2, - shade: false, maxmin: true, shade: 0.5, anim: okLayer.animChoose(), diff --git a/lib/layui_plugins/okUtils/okUtils.js b/lib/layui_plugins/okUtils/okUtils.js index eb68c7c..12855b8 100644 --- a/lib/layui_plugins/okUtils/okUtils.js +++ b/lib/layui_plugins/okUtils/okUtils.js @@ -2,7 +2,7 @@ layui.define("layer", function (exports) { var $ = layui.jquery; var okUtils = { - isFrontendBackendSeparate: true, + isFrontendBackendSeparate: false, baseUrl: "http://localhost:8080", /** * ajax()函数二次封装 diff --git a/pages/role/role-add.html b/pages/role/role-add.html index 294113f..c0f65aa 100644 --- a/pages/role/role-add.html +++ b/pages/role/role-add.html @@ -38,6 +38,7 @@
+
    @@ -54,8 +55,15 @@