From b0a07f87feee75a19c26619d5d656c417f4d4771 Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Wed, 9 Nov 2016 18:18:51 +0800 Subject: [PATCH] =?UTF-8?q?added=20=E6=96=B0=E5=A2=9E=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=94=9F=E6=88=90=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Menu.php | 26 +++-- application/admin/view/index/index.html | 94 ++++++++++++----- public/admin/static/js/template.js | 10 +- public/admin/static/js/template/form.js | 130 +++++++++++++++++++++--- 4 files changed, 211 insertions(+), 49 deletions(-) diff --git a/application/admin/controller/Menu.php b/application/admin/controller/Menu.php index 13f66cf..6415a79 100644 --- a/application/admin/controller/Menu.php +++ b/application/admin/controller/Menu.php @@ -121,9 +121,9 @@ class Menu extends Base { $form = [ 'tempType' => 'add', 'formAttr' => [ - 'target' => '', - 'formId' => '', - 'backUrl' => '', + 'target' => url('Menu/add'), + 'formId' => 'add-menu-form', + 'backUrl' => url('Menu/index'), ], 'formList' => [ [ @@ -153,7 +153,10 @@ class Menu extends Base { 'attr' => [ 'name' => 'level', 'value' => '', - 'options' => [] + 'options' => [ + '普通认证', + 'Log记录' + ] ] ], [ @@ -163,7 +166,10 @@ class Menu extends Base { 'attr' => [ 'name' => 'type', 'value' => '', - 'options' => [] + 'options' => [ + '模块类功能', + '方法类功能' + ] ] ], [ @@ -173,7 +179,10 @@ class Menu extends Base { 'attr' => [ 'name' => 'hide', 'value' => '', - 'options' => [] + 'options' => [ + '显示菜单', + '隐藏菜单', + ] ] ], [ @@ -183,7 +192,10 @@ class Menu extends Base { 'attr' => [ 'name' => 'recommend', 'value' => '', - 'options' => [] + 'options' => [ + '普通模块', + '推荐模块' + ] ] ], [ diff --git a/application/admin/view/index/index.html b/application/admin/view/index/index.html index 759869a..6f9edd3 100644 --- a/application/admin/view/index/index.html +++ b/application/admin/view/index/index.html @@ -1,32 +1,78 @@ {extend name="public/base" /} {block name="content"} -