1.优化运维管理中渠道列表选择渠道的筛选错误问题

2.优化渠道运维管理目录菜单权限
This commit is contained in:
2026-05-19 15:31:04 +08:00
parent 5628af683f
commit 37c0035bfc
9 changed files with 115 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ use plugin\saiadmin\basic\think\BaseModel;
* @property $status 登录状态
* @property $message 提示消息
* @property $login_time 登录时间
* @property $dept_id 所属渠道
* @property $remark 备注
* @property $created_by 创建者
* @property $updated_by 更新者
@@ -47,4 +48,14 @@ class SystemLoginLog extends BaseModel
$query->whereTime('login_time', 'between', $value);
}
/**
* 渠道搜索
*/
public function searchDeptIdAttr($query, $value): void
{
if ($value !== '' && $value !== null && $value > 0) {
$query->where('dept_id', '=', $value);
}
}
}