fix(效能分析): 自然天/工作日切换按钮移至各视图顶部,全选长图也能看到
- 人员视图、轨迹流转 tab 内容顶部各加切换按钮 - 全选所有人导致图很长时,按钮固定在视图顶部不被挤出屏幕
This commit is contained in:
@ -739,7 +739,19 @@ export default function AnalyticsDashboard() {
|
|||||||
),
|
),
|
||||||
children: (
|
children: (
|
||||||
<div className="rounded-xl bg-white p-4 shadow-sm">
|
<div className="rounded-xl bg-white p-4 shadow-sm">
|
||||||
<h3 className="mb-2 text-sm font-semibold text-gray-700">人员视图(单台设备耗时 · 点击柱子查看备注)</h3>
|
<div className="mb-2 flex items-center justify-between">
|
||||||
|
<h3 className="text-sm font-semibold text-gray-700">人员视图(单台设备耗时 · 点击柱子查看备注)</h3>
|
||||||
|
<Radio.Group
|
||||||
|
value={totalDaysMode}
|
||||||
|
onChange={e => setTotalDaysMode(e.target.value)}
|
||||||
|
size="small"
|
||||||
|
optionType="button"
|
||||||
|
buttonStyle="solid"
|
||||||
|
>
|
||||||
|
<Radio.Button value="natural">自然天</Radio.Button>
|
||||||
|
<Radio.Button value="workdays">工作日</Radio.Button>
|
||||||
|
</Radio.Group>
|
||||||
|
</div>
|
||||||
{capabilityLoading && !capability ? (
|
{capabilityLoading && !capability ? (
|
||||||
<div className="flex h-[420px] items-center justify-center">
|
<div className="flex h-[420px] items-center justify-center">
|
||||||
<Loader2 className="h-8 w-8 animate-spin text-blue-500" />
|
<Loader2 className="h-8 w-8 animate-spin text-blue-500" />
|
||||||
@ -774,7 +786,19 @@ export default function AnalyticsDashboard() {
|
|||||||
),
|
),
|
||||||
children: (
|
children: (
|
||||||
<div className="rounded-xl bg-white p-4 shadow-sm">
|
<div className="rounded-xl bg-white p-4 shadow-sm">
|
||||||
<h3 className="mb-2 text-sm font-semibold text-gray-700">轨迹流转(按人区间 · 并行任务并排显示)</h3>
|
<div className="mb-2 flex items-center justify-between">
|
||||||
|
<h3 className="text-sm font-semibold text-gray-700">轨迹流转(按人区间 · 并行任务并排显示)</h3>
|
||||||
|
<Radio.Group
|
||||||
|
value={totalDaysMode}
|
||||||
|
onChange={e => setTotalDaysMode(e.target.value)}
|
||||||
|
size="small"
|
||||||
|
optionType="button"
|
||||||
|
buttonStyle="solid"
|
||||||
|
>
|
||||||
|
<Radio.Button value="natural">自然天</Radio.Button>
|
||||||
|
<Radio.Button value="workdays">工作日</Radio.Button>
|
||||||
|
</Radio.Group>
|
||||||
|
</div>
|
||||||
{flowLoading && !flow ? (
|
{flowLoading && !flow ? (
|
||||||
<div className="flex h-[380px] items-center justify-center">
|
<div className="flex h-[380px] items-center justify-center">
|
||||||
<Loader2 className="h-8 w-8 animate-spin text-blue-500" />
|
<Loader2 className="h-8 w-8 animate-spin text-blue-500" />
|
||||||
|
|||||||
Reference in New Issue
Block a user