From 75c9bda1621db07fdab2c8e19af8ade893892004 Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Tue, 13 Dec 2016 22:38:53 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E6=96=B0=E5=A2=9EApi=E7=9A=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/ApiFieldsManager.php | 43 +++++++++++++++++++ application/admin/controller/ApiManager.php | 30 ++++++++++--- 2 files changed, 67 insertions(+), 6 deletions(-) create mode 100644 application/admin/controller/ApiFieldsManager.php diff --git a/application/admin/controller/ApiFieldsManager.php b/application/admin/controller/ApiFieldsManager.php new file mode 100644 index 0000000..a9b9fa6 --- /dev/null +++ b/application/admin/controller/ApiFieldsManager.php @@ -0,0 +1,43 @@ + + */ + +namespace app\admin\controller; + + +class ApiFieldsManager extends Base { + + public function index(){ + + } + + public function back(){ + + } + + public function add(){ + + } + + public function backAdd(){ + + } + + public function edit(){ + + } + + public function backEdit(){ + + } + + public function del(){ + + } + + public function backDel(){ + + } +} \ No newline at end of file diff --git a/application/admin/controller/ApiManager.php b/application/admin/controller/ApiManager.php index da6b5f5..afce19f 100644 --- a/application/admin/controller/ApiManager.php +++ b/application/admin/controller/ApiManager.php @@ -39,14 +39,14 @@ class ApiManager extends Base { ], 'topButton' => [ [ - 'href' => 'AppManager/add', + 'href' => 'ApiManager/add', 'class'=> 'btn-success', 'info'=> '新增', 'icon' => 'fa fa-plus', 'confirm' => 0, ], [ - 'href' => 'AppManager/del', + 'href' => 'ApiManager/del', 'class'=> 'btn-danger ajax-delete', 'info'=> '删除', 'icon' => 'fa fa-trash', @@ -56,7 +56,7 @@ class ApiManager extends Base { 'rightButton' => [ [ 'info' => '启用', - 'href' => 'AppManager/open', + 'href' => 'ApiManager/open', 'class'=> 'btn-success ajax-put-url', 'param'=> [$this->primaryKey], 'icon' => 'fa fa-check', @@ -65,7 +65,7 @@ class ApiManager extends Base { ], [ 'info' => '禁用', - 'href' => 'AppManager/close', + 'href' => 'ApiManager/close', 'class'=> 'btn-warning ajax-put-url', 'param'=> [$this->primaryKey], 'icon' => 'fa fa-close', @@ -74,7 +74,25 @@ class ApiManager extends Base { ], [ 'info' => '编辑', - 'href' => 'AppManager/edit', + 'href' => 'ApiManager/edit', + 'class'=> 'btn-primary', + 'param'=> [$this->primaryKey], + 'icon' => 'fa fa-pencil', + 'confirm' => 0, + 'show' => '' + ], + [ + 'info' => '请求参数', + 'href' => 'ApiFieldsManager/index', + 'class'=> 'btn-primary', + 'param'=> [$this->primaryKey], + 'icon' => 'fa fa-pencil', + 'confirm' => 0, + 'show' => '' + ], + [ + 'info' => '返回参数', + 'href' => 'ApiFieldsManager/back', 'class'=> 'btn-primary', 'param'=> [$this->primaryKey], 'icon' => 'fa fa-pencil', @@ -83,7 +101,7 @@ class ApiManager extends Base { ], [ 'info' => '删除', - 'href' => 'AppManager/del', + 'href' => 'ApiManager/del', 'class'=> 'btn-danger ajax-delete', 'param'=> [$this->primaryKey], 'icon' => 'fa fa-trash',