Commit 2caa2ded authored by hujun's avatar hujun

职称

parent e9accad5
...@@ -761,6 +761,9 @@ class Broker extends Basic ...@@ -761,6 +761,9 @@ class Broker extends Basic
*/ */
public function agentPositionList() public function agentPositionList()
{ {
if (!$this->request->isAjax()) {
return view('professionalListCon');
}
$msg = ""; $msg = "";
$code = 200; $code = 200;
$data = []; $data = [];
...@@ -771,7 +774,7 @@ class Broker extends Basic ...@@ -771,7 +774,7 @@ class Broker extends Basic
if (isset($this->params['position']) && $this->params['position'] != -1) { if (isset($this->params['position']) && $this->params['position'] != -1) {
$where['position'] = $this->params['position']; $where['position'] = $this->params['position'];
} else { } else {
$where['position'] = ['<>', 5]; $where['position'] = ['<>', 5];
} }
if (!empty($this->params['name'])) { if (!empty($this->params['name'])) {
...@@ -785,7 +788,7 @@ class Broker extends Basic ...@@ -785,7 +788,7 @@ class Broker extends Basic
try { try {
$m_agent = new AAgents(); $m_agent = new AAgents();
$m_store = new AStore(); $m_store = new AStore();
$list = $m_agent->getList($pageNo, $pageSize, 'id desc', 'id,phone,name,position,store_id,level', $where); $list = $m_agent->getList($pageNo, $pageSize, 'id desc', 'id,phone,name,position,store_id,level', '',$where);
foreach ($list as $k=>$v) { foreach ($list as $k=>$v) {
$list[$k]['store_name'] = $m_store->getStoreKeyById('store_name', ['id'=>$v['store_id']]); $list[$k]['store_name'] = $m_store->getStoreKeyById('store_name', ['id'=>$v['store_id']]);
......
<?php
namespace app\index\controller;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/11/12
* Time: 15:48
*/
use app\index\extend\Basic;
class ProfessionalList extends Basic
{
public function ProfessionalListCon()
{
if (!$this->request->isAjax()) {
return view('professionalList/professionalListCon');
}
}
}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
...@@ -306,7 +306,6 @@ Route::group('index', [ ...@@ -306,7 +306,6 @@ Route::group('index', [
'performancesubsidiaryList' => ['index/PerformanceSubsidiary/performancesubsidiaryList', ['method' => 'POST|GET']],//业绩明细liu 'performancesubsidiaryList' => ['index/PerformanceSubsidiary/performancesubsidiaryList', ['method' => 'POST|GET']],//业绩明细liu
'pkList' => ['index/PkList/pkList', ['method' => 'POST|GET']],//pk榜 liu 'pkList' => ['index/PkList/pkList', ['method' => 'POST|GET']],//pk榜 liu
'professionalList' => ['index/ProfessionalList/ProfessionalListCon', ['method' => 'POST|GET']],//职称列表 liu
'myCollectionUserList' => ['index/myCollectionUser/myCollectionUserList', ['method' => 'POST|GET']],//我收藏的客户liu 'myCollectionUserList' => ['index/myCollectionUser/myCollectionUserList', ['method' => 'POST|GET']],//我收藏的客户liu
'myCollectionShopList' => ['index/myCollectionShop/myCollectionShopList', ['method' => 'POST|GET']],//我收藏的客户liu 'myCollectionShopList' => ['index/myCollectionShop/myCollectionShopList', ['method' => 'POST|GET']],//我收藏的客户liu
'dayAchievementsReport' => ['index/PerformanceReport/dayAchievementsReportList', ['method' => 'POST|GET']],//日报liu 'dayAchievementsReport' => ['index/PerformanceReport/dayAchievementsReportList', ['method' => 'POST|GET']],//日报liu
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment