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 $ip 请求IP地址
* @property $ip_location IP所属地
* @property $request_data 请求数据
* @property $dept_id 所属渠道
* @property $remark 备注
* @property $created_by 创建者
* @property $updated_by 更新者
@@ -39,4 +40,14 @@ class SystemOperLog extends BaseModel
protected $table = 'sa_system_oper_log';
/**
* 渠道搜索
*/
public function searchDeptIdAttr($query, $value): void
{
if ($value !== '' && $value !== null && $value > 0) {
$query->where('dept_id', '=', $value);
}
}
}