update control logs
This commit is contained in:
@@ -10,24 +10,24 @@ use app\models\CaptureLogs;
|
||||
/**
|
||||
* CaptureLogsSearch represents the model behind the search form of `app\models\CaptureLogs`.
|
||||
*/
|
||||
class CaptureLogsSearch extends CaptureLogs
|
||||
{
|
||||
class CaptureLogsSearch extends CaptureLogs {
|
||||
|
||||
public $staff_name;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
public function rules() {
|
||||
return [
|
||||
[['id', 'time', 'status'], 'integer'],
|
||||
[['image', 'remark'], 'safe'],
|
||||
[['id', 'time', 'status'], 'integer'],
|
||||
[['image', 'remark', 'staff_name'], 'safe'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function scenarios()
|
||||
{
|
||||
public function scenarios() {
|
||||
// bypass scenarios() implementation in the parent class
|
||||
return Model::scenarios();
|
||||
}
|
||||
@@ -39,9 +39,9 @@ class CaptureLogsSearch extends CaptureLogs
|
||||
*
|
||||
* @return ActiveDataProvider
|
||||
*/
|
||||
public function search($params)
|
||||
{
|
||||
public function search($params) {
|
||||
$query = CaptureLogs::find();
|
||||
$query->joinWith("listManagement");
|
||||
|
||||
// add conditions that should always apply here
|
||||
|
||||
@@ -65,8 +65,9 @@ class CaptureLogsSearch extends CaptureLogs
|
||||
]);
|
||||
|
||||
$query->andFilterWhere(['like', 'image', $this->image])
|
||||
->andFilterWhere(['like', 'remark', $this->remark]);
|
||||
->andFilterWhere(['like', 'remark', $this->remark]);
|
||||
|
||||
return $dataProvider;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user