refactor department

This commit is contained in:
2020-10-09 13:55:53 +07:00
parent 31675d0a28
commit 5538d74b1b
7 changed files with 73 additions and 34 deletions

View File

@@ -1,13 +0,0 @@
<?php
namespace app\helpers;
class AreaGrid extends CommonGrid {
public static function pid($departmentArray) {
return function($model) use ($departmentArray) {
return isset($departmentArray[$model->pid]) ? $departmentArray[$model->pid] : "";
};
}
}

View File

@@ -1,13 +0,0 @@
<?php
namespace app\helpers;
class DepartmentGrid extends CommonGrid {
public static function pid($departmentArray) {
return function($model) use ($departmentArray) {
return isset($departmentArray[$model->pid]) ? $departmentArray[$model->pid] : "";
};
}
}