feat(web): 统一平台管理员判定与 AI 工作台申请预览动作接入
- authUser 抽出 resolveAuthUserAdminFlag,统一 isAdmin 解析(含 superadmin、role_codes、中英文角色名),accessControl 复用同一逻辑 - 登录态、应用外壳路由、系统状态接入统一管理员判定,LoginView 与相关 composable 配套调整 - AI 工作台申请提交改为调用新的 /application-preview-action 接口,草稿保存仍走 orchestrator;预审模型补充重叠冲突提示与阻断判断 - 同步更新 accessControl/api-request/ai 预览动作等前端测试
This commit is contained in:
@@ -559,11 +559,72 @@
|
||||
|
||||
.submit-btn:disabled,
|
||||
.sso-btn:disabled {
|
||||
opacity: .6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* 登录中:SSO 按钮置灰,登录按钮保持主色并显示 spinner */
|
||||
.sso-btn:disabled {
|
||||
opacity: .6;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.submit-btn:disabled {
|
||||
opacity: 1;
|
||||
box-shadow: 0 16px 30px rgba(var(--theme-primary-rgb, 58, 124, 165), .20);
|
||||
}
|
||||
|
||||
/*
|
||||
* 登录中表单态:用户名 / 密码 / 租户 / 记住账号 / 忘记密码全部置灰禁用,
|
||||
* 让视觉焦点集中在正在校验的登录按钮上
|
||||
*/
|
||||
.login-form.is-submitting .field input,
|
||||
.login-form.is-submitting .field select {
|
||||
background: #f1f5f9;
|
||||
border-color: #e2e8f0;
|
||||
color: #94a3b8;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.login-form.is-submitting .field input::placeholder {
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
.login-form.is-submitting .field > .mdi,
|
||||
.login-form.is-submitting .field-icon-btn,
|
||||
.login-form.is-submitting .field-select-chevron {
|
||||
color: #cbd5e1;
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.login-form.is-submitting .remember,
|
||||
.login-form.is-submitting .link-btn {
|
||||
opacity: .55;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 登录按钮内的旋转 loading */
|
||||
.submit-btn__spinner {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 2.5px solid rgba(255, 255, 255, .4);
|
||||
border-top-color: #fff;
|
||||
border-radius: 999px;
|
||||
animation: loginSubmitSpin 720ms linear infinite;
|
||||
}
|
||||
|
||||
@keyframes loginSubmitSpin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.submit-btn__spinner {
|
||||
animation-duration: 1800ms;
|
||||
}
|
||||
}
|
||||
|
||||
.divider {
|
||||
position: relative;
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user