去掉控制器方法的后缀名
This commit is contained in:
@@ -16,7 +16,7 @@ class BusinessController extends DefaultController
|
||||
public $permission = [];
|
||||
|
||||
// 商机列表
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ class ComplaintController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
// 客户权限
|
||||
$region = regionCustomer('customer_id_customer');
|
||||
@@ -78,7 +78,7 @@ class ComplaintController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -100,22 +100,22 @@ class ComplaintController extends WorkflowController
|
||||
return $this->display(['form' => $form], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
return $this->createAction('print');
|
||||
return $this->create('print');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$id = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class ContactController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_contact',
|
||||
@@ -74,7 +74,7 @@ class ContactController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_contact','id' => $id, 'action' => $action]);
|
||||
@@ -83,17 +83,17 @@ class ContactController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
@@ -101,7 +101,7 @@ class ContactController extends DefaultController
|
||||
}
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_contact',
|
||||
|
||||
@@ -15,7 +15,7 @@ class CustomerApplyController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_apply',
|
||||
@@ -85,7 +85,7 @@ class CustomerApplyController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'create')
|
||||
public function create($action = 'create')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -103,22 +103,22 @@ class CustomerApplyController extends WorkflowController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class CustomerClassController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$display = $this->access;
|
||||
|
||||
@@ -71,7 +71,7 @@ class CustomerClassController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_class', 'id' => $id]);
|
||||
@@ -80,12 +80,12 @@ class CustomerClassController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form([], [
|
||||
['text','customer_class.name','名称'],
|
||||
@@ -108,7 +108,7 @@ class CustomerClassController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$id = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class CustomerController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer',
|
||||
@@ -101,7 +101,7 @@ class CustomerController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'create')
|
||||
public function create($action = 'create')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -125,12 +125,12 @@ class CustomerController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -150,7 +150,7 @@ class CustomerController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function priceEditAction()
|
||||
public function priceEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -188,13 +188,13 @@ class CustomerController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
// 数据导入
|
||||
public function importAction()
|
||||
public function import()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
return Form::import(['table' => 'customer', 'keys' => ['code', 'username']]);
|
||||
@@ -203,7 +203,7 @@ class CustomerController extends DefaultController
|
||||
return $this->render(['tips' => $tips], 'layouts.import');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
@@ -211,7 +211,7 @@ class CustomerController extends DefaultController
|
||||
}
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form(
|
||||
['advanced' => ''], [
|
||||
|
||||
@@ -15,7 +15,7 @@ class DeliveryAddressController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_delivery_address',
|
||||
@@ -73,7 +73,7 @@ class DeliveryAddressController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_delivery_address','id' => $id, 'action' => $action]);
|
||||
@@ -82,17 +82,17 @@ class DeliveryAddressController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
@@ -100,7 +100,7 @@ class DeliveryAddressController extends DefaultController
|
||||
}
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_delivery_address',
|
||||
|
||||
@@ -18,7 +18,7 @@ class PriceController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog', 'list', 'referCustomer'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_price',
|
||||
@@ -84,7 +84,7 @@ class PriceController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_price', 'id' => $id, 'action' => $action]);
|
||||
@@ -93,17 +93,17 @@ class PriceController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function listAction()
|
||||
public function list()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if ($gets['customer_id']) {
|
||||
@@ -129,7 +129,7 @@ class PriceController extends DefaultController
|
||||
return $this->json($rows, true);
|
||||
}
|
||||
|
||||
public function referCustomerAction()
|
||||
public function referCustomer()
|
||||
{
|
||||
$search = search_form(
|
||||
['advanced' => ''], [
|
||||
@@ -179,7 +179,7 @@ class PriceController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function importAction()
|
||||
public function import()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
return Form::import(['table' => 'customer_price', 'keys' => ['customer_id', 'product_id']]);
|
||||
@@ -188,7 +188,7 @@ class PriceController extends DefaultController
|
||||
return $this->render(['tips' => $tips], 'layouts.import');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class RegionController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_region',
|
||||
@@ -79,7 +79,7 @@ class RegionController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -96,12 +96,12 @@ class RegionController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form([], [
|
||||
['text','customer_region.name','名称'],
|
||||
@@ -147,7 +147,7 @@ class RegionController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class RegionTaskController extends AuditController
|
||||
{
|
||||
public $permission = [];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_region_task',
|
||||
@@ -84,7 +84,7 @@ class RegionTaskController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'create')
|
||||
public function create($action = 'create')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -104,20 +104,20 @@ class RegionTaskController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
/**
|
||||
* 区域进度
|
||||
*/
|
||||
public function progressAction()
|
||||
public function progress()
|
||||
{
|
||||
$year = date('Y');
|
||||
$search = search_form([], [[
|
||||
@@ -293,7 +293,7 @@ class RegionTaskController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -18,7 +18,7 @@ class ReportController extends DefaultController
|
||||
public $permission = [];
|
||||
|
||||
// 客户对账单
|
||||
public function accountStatementAction()
|
||||
public function accountStatement()
|
||||
{
|
||||
$sdate = date('Y-01-01');
|
||||
$edate = date('Y-m-d');
|
||||
|
||||
@@ -15,7 +15,7 @@ class TaskController extends AuditController
|
||||
{
|
||||
public $permission = ['importExcel'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_task',
|
||||
@@ -75,7 +75,7 @@ class TaskController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'create')
|
||||
public function create($action = 'create')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make([
|
||||
@@ -94,20 +94,20 @@ class TaskController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
/**
|
||||
* 区域进度
|
||||
*/
|
||||
public function progressAction()
|
||||
public function progress()
|
||||
{
|
||||
$year = date('Y');
|
||||
$search = search_form([], [[
|
||||
@@ -311,7 +311,7 @@ class TaskController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function importExcelAction()
|
||||
public function importExcel()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$file = Request::file('file');
|
||||
@@ -358,7 +358,7 @@ class TaskController extends AuditController
|
||||
return view('importExcel');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class TaxController extends AuditController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_tax',
|
||||
@@ -81,7 +81,7 @@ class TaxController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_tax', 'id' => $id, 'action' => $action]);
|
||||
@@ -90,17 +90,17 @@ class TaxController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction('edit');
|
||||
return $this->create('edit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form(
|
||||
['advanced' => ''], [
|
||||
@@ -143,7 +143,7 @@ class TaxController extends AuditController
|
||||
}
|
||||
|
||||
// 批量编辑
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -163,7 +163,7 @@ class TaxController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class TypeController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_type',
|
||||
@@ -67,7 +67,7 @@ class TypeController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_type', 'id' => $id]);
|
||||
@@ -76,12 +76,12 @@ class TypeController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form([], [
|
||||
['text','customer_type.name','名称'],
|
||||
@@ -103,7 +103,7 @@ class TypeController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -10,7 +10,7 @@ class WidgetController extends DefaultController
|
||||
public $permission = ['birthday'];
|
||||
|
||||
// 生日提醒
|
||||
public function birthdayAction()
|
||||
public function birthday()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user