From 9e1dd9f05297e066da1b8bba3ffe67dca43b53f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Fri, 4 Jan 2019 16:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E8=8D=A3=E8=AA=89=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E3=80=81=E6=95=99=E5=B8=88=E8=8D=A3=E8=AA=89=E5=86=8C?= =?UTF-8?q?=E5=BC=80=E5=A7=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/model/Admin.php | 2 + application/index/view/index/index.html | 4 +- application/rongyu/controller/DwRongyu.php | 41 +- application/rongyu/controller/JsRongyu.php | 258 +++++++- application/rongyu/model/DwRongyu.php | 30 +- application/rongyu/model/JsRongyu.php | 77 ++- application/rongyu/validate/DwRongyu.php | 13 +- application/rongyu/validate/JsRongyu.php | 29 + application/rongyu/view/dw_rongyu/create.html | 11 +- .../rongyu/view/dw_rongyu/createall.html | 600 ++++++++++++++++++ application/rongyu/view/dw_rongyu/edit.html | 2 +- application/rongyu/view/dw_rongyu/index.html | 14 +- application/rongyu/view/js_rongyu/create.html | 77 +++ .../rongyu/view/js_rongyu/createall.html | 600 ++++++++++++++++++ application/rongyu/view/js_rongyu/edit.html | 77 +++ application/rongyu/view/js_rongyu/index.html | 195 ++++++ config/template.php | 4 + .../migrations/20181221041509_js_rongyu.php | 6 +- .../20181221041523_js_rongyu_info.php | 4 +- route/rongyu.php | 4 +- 20 files changed, 2003 insertions(+), 45 deletions(-) create mode 100644 application/rongyu/validate/JsRongyu.php create mode 100644 application/rongyu/view/dw_rongyu/createall.html create mode 100644 application/rongyu/view/js_rongyu/create.html create mode 100644 application/rongyu/view/js_rongyu/createall.html create mode 100644 application/rongyu/view/js_rongyu/edit.html create mode 100644 application/rongyu/view/js_rongyu/index.html diff --git a/application/admin/model/Admin.php b/application/admin/model/Admin.php index 16d82d7d..9c41b543 100644 --- a/application/admin/model/Admin.php +++ b/application/admin/model/Admin.php @@ -60,6 +60,7 @@ class Admin extends Base // 获取角色id $list = $admin->authgroup()->column('group_id'); + $str = ''; // 将角色id转换成数组 foreach ($list as $key => $value) { $key == 0 ? $str =$value : $str = $str.','.$value; @@ -75,6 +76,7 @@ class Admin extends Base // 获取角色id $group = $this->get($this->getAttr('id'))->append(['groupids']); + $str = ''; // 查询角色名称 $grouplist= db('AuthGroup')->where('id','in',$group->groupids)->column('title'); // 重组角色名 diff --git a/application/index/view/index/index.html b/application/index/view/index/index.html index b1886414..dd190871 100644 --- a/application/index/view/index/index.html +++ b/application/index/view/index/index.html @@ -52,9 +52,9 @@