三面拆分③:壳参数化两台,台账随域动态生成,顶栏互跳按权亮灯
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
This commit is contained in:
@@ -25,6 +25,7 @@ import { ReportDesk } from '@features/desk-report';
|
||||
import { Ico } from '@web-shared/Ico.tsx';
|
||||
import { call } from '@web-shared/typed-fetch.ts';
|
||||
import { useChatWidth } from '@web-shared/useChatWidth.ts';
|
||||
import { SURFACE_META, canSeeSurface } from '@web-shared/gov/surfaces.ts';
|
||||
import { queryKeys } from './query.ts';
|
||||
|
||||
type ModuleKey = 'tasks' | 'approvals' | 'messages' | 'minutes' | 'report';
|
||||
@@ -123,6 +124,34 @@ export function AppShell() {
|
||||
);
|
||||
})}
|
||||
<div className="jc-rail-foot">
|
||||
{/*
|
||||
另两面的入口 —— 按授权亮灯:没有治理授权的人根本看不见,不给点了才说没权。
|
||||
两枚并排、只留章不留名:轨底还得放身份钮,竖排三件会把左轨撑出滚动条(实测)。
|
||||
*/}
|
||||
{(canSeeSurface(session.data, 'design') || canSeeSurface(session.data, 'ops')) && (
|
||||
<div className="jc-nav-user" style={{ flexDirection: 'row', gap: 6, paddingTop: 0 }}>
|
||||
{canSeeSurface(session.data, 'design') && (
|
||||
<a
|
||||
className="jc-nav-ava"
|
||||
href={SURFACE_META.design.path}
|
||||
title="设计中心 —— 定义企业怎么运转"
|
||||
style={{ width: 26, height: 26, fontSize: 11, background: 'linear-gradient(140deg,#4954e6,#232b6e)' }}
|
||||
>
|
||||
设
|
||||
</a>
|
||||
)}
|
||||
{canSeeSurface(session.data, 'ops') && (
|
||||
<a
|
||||
className="jc-nav-ava"
|
||||
href={SURFACE_META.ops.path}
|
||||
title="运营中心 —— 看企业今天跑得怎样"
|
||||
style={{ width: 26, height: 26, fontSize: 11, background: 'linear-gradient(140deg,#12b886,#0b7a5c)' }}
|
||||
>
|
||||
运
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{/* 轨底身份即登出入口 —— 会话在服务端,点它是真作废,不只是清本地 */}
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user