Thêm nút chọn tất cả
This commit is contained in:
@@ -93,7 +93,7 @@ class AssignController extends Controller {
|
||||
public function actionSetSchedule() {
|
||||
if (Yii::$app->request->post()) {
|
||||
$post = Yii::$app->request->post();
|
||||
if ($post['currentDepartment'] !== "" && count($post["staffs"]) >= Yii::$app->params["pageSize"]) {
|
||||
if ($post['all'] == "true") {
|
||||
$model = new Department();
|
||||
$childs = $model->departmentChilds($post["currentDepartment"]);
|
||||
$lists = Staff::find()->andWhere(["IN", "department_id", $childs])->all();
|
||||
|
||||
Reference in New Issue
Block a user