|
|
@ -48,7 +48,12 @@ class PhoneCenterController extends BaseController |
|
|
|
public $layout = 'blue-main'; |
|
|
|
public $layout = 'blue-main'; |
|
|
|
|
|
|
|
|
|
|
|
public function actionCallRecords() { |
|
|
|
public function actionCallRecords() { |
|
|
|
return $this->render('call-records'); |
|
|
|
$request = Yii::$app->request; |
|
|
|
|
|
|
|
$company_id = $request->get('company_id',0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $this->render('call-records', [ |
|
|
|
|
|
|
|
'company_id' => $company_id |
|
|
|
|
|
|
|
]); |
|
|
|
} |
|
|
|
} |
|
|
|
public function actionCallRecordsJson(){ |
|
|
|
public function actionCallRecordsJson(){ |
|
|
|
Yii::$app->response->format = Response::FORMAT_JSON; |
|
|
|
Yii::$app->response->format = Response::FORMAT_JSON; |
|
|
@ -500,7 +505,11 @@ public function actionDownload(){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function actionUsercallIndex() { |
|
|
|
public function actionUsercallIndex() { |
|
|
|
return $this->render('usercall-index'); |
|
|
|
$request = Yii::$app->request; |
|
|
|
|
|
|
|
$company_id = $request->get('company_id',0); |
|
|
|
|
|
|
|
return $this->render('usercall-index',[ |
|
|
|
|
|
|
|
'company_id' => $company_id |
|
|
|
|
|
|
|
]); |
|
|
|
} |
|
|
|
} |
|
|
|
public function actionUsercallIndexJson(){ |
|
|
|
public function actionUsercallIndexJson(){ |
|
|
|
Yii::$app->response->format = Response::FORMAT_JSON; |
|
|
|
Yii::$app->response->format = Response::FORMAT_JSON; |
|
|
@ -541,7 +550,7 @@ public function actionDownload(){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$total = $query->count(); |
|
|
|
$total = $query->count(); |
|
|
|
|
|
|
|
|
|
|
|
$query = $query->offset($offset)->limit($limit); |
|
|
|
$query = $query->offset($offset)->limit($limit); |
|
|
|
|
|
|
|
|
|
|
|
$items = $query->all(); |
|
|
|
$items = $query->all(); |
|
|
|