用户通时记录查询时间,添加初始时间为当天

dev
曾超新 5 years ago
parent 91334bfffe
commit 5bae32ec51
  1. 12
      frontend/controllers/PhoneCenterController.php
  2. 4
      frontend/views/phone-center/usercall-index.php

@ -541,17 +541,7 @@ public function actionDownload(){
} }
$total = $query->count(); $total = $query->count();
// foreach($items as $value){
// $car_data= CarT::findOne(['id'=>$value->car_id]);
// $value->car_no=$car_data->car_no;
// $value->save();
// }
// dd($items);
// die;
$query = $query->offset($offset)->limit($limit); $query = $query->offset($offset)->limit($limit);
$items = $query->all(); $items = $query->all();

@ -24,9 +24,9 @@ use \common\libs\MyLib;
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="datepicker">通话时间</label> <label for="datepicker">通话时间</label>
<div class="input-group" id="datepicker"> <div class="input-group" id="datepicker">
<input type="text" class="form-control" id="begin_date" name="begin_date" value="" autocomplete="off" /> <input type="text" class="form-control" id="begin_date" name="begin_date" value="<?=date('Y-m-d')?>" autocomplete="off" />
<span class="input-group-addon"></span> <span class="input-group-addon"></span>
<input type="text" class="form-control" id="end_date" name="end_date" value="" autocomplete="off" /> <input type="text" class="form-control" id="end_date" name="end_date" value="<?=date('Y-m-d')?>" autocomplete="off" />
</div> </div>
</div> </div>
<button type="submit" class="btn btn-primary">搜索</button> <button type="submit" class="btn btn-primary">搜索</button>

Loading…
Cancel
Save