作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

bug修改

... ... @@ -150,9 +150,10 @@ class Company extends Api
* @ApiMethod (POST)
*
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="status", type="string", required=false, description="0=未审核,1=已通过")
* @ApiParams (name="page", type="inter", required=false, description="当前页(默认1)")
* @ApiParams (name="page_num", type="inter", required=false, description="每页显示数据个数(默认10)")
* @ApiParams (name="status", type="string", required=false, description="0=未审核,1=已通过")
* @ApiParams (name="keyword", type="string", required=false, description="关键字")
*
* @ApiReturn({
"code": 1,
... ... @@ -173,11 +174,16 @@ class Company extends Api
*/
public function companyUser()
{
$status = $this->request->param('status','0');
$page = $this->request->param('page', 1, 'intval');
$page_num = $this->request->param('page_num', 10, 'intval');
$status = $this->request->param('status','0');
$keyword = $this->request->param('keyword');
$where['status'] = $status;
if(!empty($keyword)){
$where['name'] = ['like','%'.$keyword.'%'];
}
$data = CompanyUser::where('company_id',$this->company_id)
->where('status',$status)
->where($where)
->paginate($page_num,false,['page'=>$page])
->each(function($v){
$v['createtime'] = date('Y.m.d',$v['createtime']);
... ...
... ... @@ -17050,12 +17050,6 @@
</thead>
<tbody>
<tr>
<td>status</td>
<td>string</td>
<td></td>
<td>0=未审核,1=已通过</td>
</tr>
<tr>
<td>page</td>
<td>inter</td>
<td></td>
... ... @@ -17067,6 +17061,18 @@
<td></td>
<td>每页显示数据个数(默认10)</td>
</tr>
<tr>
<td>status</td>
<td>string</td>
<td></td>
<td>0=未审核,1=已通过</td>
</tr>
<tr>
<td>keyword</td>
<td>string</td>
<td></td>
<td>关键字</td>
</tr>
</tbody>
</table>
</div>
... ... @@ -17097,10 +17103,6 @@
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/mobile/company/companyUser" method="POST" name="form12" id="form12">
<div class="form-group">
<label class="control-label" for="status">status</label>
<input type="string" class="form-control input-sm" id="status" placeholder="0=未审核,1=已通过" name="status">
</div>
<div class="form-group">
<label class="control-label" for="page">page</label>
<input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page">
</div>
... ... @@ -17109,6 +17111,14 @@
<input type="inter" class="form-control input-sm" id="page_num" placeholder="每页显示数据个数(默认10)" name="page_num">
</div>
<div class="form-group">
<label class="control-label" for="status">status</label>
<input type="string" class="form-control input-sm" id="status" placeholder="0=未审核,1=已通过" name="status">
</div>
<div class="form-group">
<label class="control-label" for="keyword">keyword</label>
<input type="string" class="form-control input-sm" id="keyword" placeholder="关键字" name="keyword">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="12">提交</button>
<button type="reset" class="btn btn-info" rel="12">重置</button>
</div>
... ... @@ -20265,7 +20275,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-10-17 13:22:37 </div>
Generated on 2020-10-17 13:37:30 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">企智帮</a>
</div>
... ...