dev
曾超新 5 years ago
parent d6fc443bf7
commit 2b83c3f821
  1. 8
      frontend/controllers/PhoneCenterController.php
  2. 4
      frontend/views/phone-center/call-records.php
  3. 4
      frontend/views/phone-center/usercall-index.php

@ -49,10 +49,10 @@ class PhoneCenterController extends BaseController
public function actionCallRecords() { public function actionCallRecords() {
$request = Yii::$app->request; $request = Yii::$app->request;
$company_id = $request->get('company_id',0); $company_type = $request->get('company_type',0);
return $this->render('call-records', [ return $this->render('call-records', [
'company_id' => $company_id 'company_type' => $company_type
]); ]);
} }
public function actionCallRecordsJson(){ public function actionCallRecordsJson(){
@ -506,9 +506,9 @@ public function actionDownload(){
public function actionUsercallIndex() { public function actionUsercallIndex() {
$request = Yii::$app->request; $request = Yii::$app->request;
$company_id = $request->get('company_id',0); $company_type = $request->get('company_type',0);
return $this->render('usercall-index',[ return $this->render('usercall-index',[
'company_id' => $company_id 'company_id' => $company_type
]); ]);
} }
public function actionUsercallIndexJson(){ public function actionUsercallIndexJson(){

@ -17,8 +17,8 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" class="form-inline" onsubmit="return search();">
<input type="hidden" name="company_id" value="<?=$company_id?>"> <input type="hidden" name="company_type" value="<?=$company_type?>">
<?php if($company_id == 3) { ?> <?php if($company_type == 3) { ?>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="username">工号</label> <label for="username">工号</label>
<input type="text" id="username" name="username" class="form-control"> <input type="text" id="username" name="username" class="form-control">

@ -17,8 +17,8 @@ use \common\libs\MyLib;
</div> </div>
<div class="ibox-content"> <div class="ibox-content">
<form role="form" class="form-inline" onsubmit="return search();"> <form role="form" class="form-inline" onsubmit="return search();">
<input type="hidden" name="company_id" id="company_id" value="<?=$company_id?>"> <input type="hidden" name="company_type" id="company_type" value="<?=$company_type?>">
<?php if($company_id == 3) { ?> <?php if($company_type == 3) { ?>
<div class="form-group" style="margin-bottom: 8px;"> <div class="form-group" style="margin-bottom: 8px;">
<label for="username">坐席人员</label> <label for="username">坐席人员</label>
<input type="text" id="caller" name="caller" class="form-control"> <input type="text" id="caller" name="caller" class="form-control">

Loading…
Cancel
Save