From d6fc443bf7d4a66d73c760d6bce0a02dd4696205 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 22 Oct 2019 14:39:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=88=91=E7=9A=84=E9=80=9A=E8=AF=9D?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B8=AD=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=8F=AA?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=94=A8=E6=88=B7=E8=87=AA=E5=B7=B1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=A0=87=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/PhoneCenterController.php | 15 ++++++++++++--- frontend/views/phone-center/call-records.php | 3 +++ frontend/views/phone-center/usercall-index.php | 3 +++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/controllers/PhoneCenterController.php b/frontend/controllers/PhoneCenterController.php index 77ef518..47c6573 100644 --- a/frontend/controllers/PhoneCenterController.php +++ b/frontend/controllers/PhoneCenterController.php @@ -48,7 +48,12 @@ class PhoneCenterController extends BaseController public $layout = 'blue-main'; 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(){ Yii::$app->response->format = Response::FORMAT_JSON; @@ -500,7 +505,11 @@ public function actionDownload(){ } 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(){ Yii::$app->response->format = Response::FORMAT_JSON; @@ -541,7 +550,7 @@ public function actionDownload(){ } $total = $query->count(); - + $query = $query->offset($offset)->limit($limit); $items = $query->all(); diff --git a/frontend/views/phone-center/call-records.php b/frontend/views/phone-center/call-records.php index d32e8ef..2a668fe 100644 --- a/frontend/views/phone-center/call-records.php +++ b/frontend/views/phone-center/call-records.php @@ -17,10 +17,13 @@ use \common\libs\MyLib;
+ +
+
diff --git a/frontend/views/phone-center/usercall-index.php b/frontend/views/phone-center/usercall-index.php index 075f2c2..9807a2b 100644 --- a/frontend/views/phone-center/usercall-index.php +++ b/frontend/views/phone-center/usercall-index.php @@ -17,10 +17,13 @@ use \common\libs\MyLib;
+ +
+