去掉无用的模板文件
封装ajax提示方法
This commit is contained in:
@@ -6,17 +6,6 @@ class Role extends BaseModel
|
||||
{
|
||||
protected $table = 'role';
|
||||
|
||||
static public $bys = [
|
||||
'name' => 'by',
|
||||
'items' => [
|
||||
['value' => '', 'name' => '全部'],
|
||||
['value' => 'divider'],
|
||||
['value' => 'day', 'name' => '今日创建'],
|
||||
['value' => 'week', 'name' => '本周创建'],
|
||||
['value' => 'month', 'name' => '本月创建'],
|
||||
]
|
||||
];
|
||||
|
||||
public function scopeDialog($q, $value)
|
||||
{
|
||||
return $q->whereIn('id', $value)
|
||||
|
||||
@@ -22,11 +22,11 @@ class User extends BaseModel implements
|
||||
static public $tabs = [
|
||||
'name' => 'tab',
|
||||
'items' => [
|
||||
['value' => 'user', 'url' => 'user/user/index', 'name' => '用户'],
|
||||
['value' => 'role', 'url' => 'user/role/index', 'name' => '角色'],
|
||||
['value' => 'department', 'url' => 'user/department/index', 'name' => '部门'],
|
||||
['value' => 'group', 'url' => 'user/group/index', 'name' => '用户组'],
|
||||
['value' => 'position', 'url' => 'user/position/index', 'name' => '职位'],
|
||||
['value' => 'user', 'type' => 'a', 'url' => 'user/user/index', 'name' => '用户'],
|
||||
['value' => 'role', 'type' => 'a', 'url' => 'user/role/index', 'name' => '角色'],
|
||||
['value' => 'department', 'type' => 'a', 'url' => 'user/department/index', 'name' => '部门'],
|
||||
['value' => 'group', 'type' => 'a', 'url' => 'user/group/index', 'name' => '用户组'],
|
||||
['value' => 'position', 'type' => 'a', 'url' => 'user/position/index', 'name' => '职位'],
|
||||
]
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user