fix: DTO 输入校验补全 + 编译修复 + AuthButton 类型修复
- erp-auth/config/workflow/message/plugin/health: 44 处 DTO 校验缺失修复 - erp-plugin/data_dto: utoipa derive 宏 import 修复 - erp-server/main: tracing 宏类型推断修复 - web AuthButton: AiAnalysisCard/VitalSignsTab Button 包裹在 children 内 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -69,14 +69,15 @@ export function AiAnalysisCard({
|
||||
}, []);
|
||||
|
||||
const TriggerButton = permission ? (
|
||||
<AuthButton
|
||||
code={permission}
|
||||
icon={<ThunderboltOutlined />}
|
||||
loading={state === 'loading'}
|
||||
onClick={handleStart}
|
||||
size="small"
|
||||
>
|
||||
{triggerLabel}
|
||||
<AuthButton code={permission}>
|
||||
<Button
|
||||
icon={<ThunderboltOutlined />}
|
||||
loading={state === 'loading'}
|
||||
onClick={handleStart}
|
||||
size="small"
|
||||
>
|
||||
{triggerLabel}
|
||||
</Button>
|
||||
</AuthButton>
|
||||
) : (
|
||||
<Button
|
||||
|
||||
@@ -225,14 +225,15 @@ export function VitalSignsTab({ patientId }: Props) {
|
||||
{/* 趋势图 */}
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: 8 }}>
|
||||
<AuthButton
|
||||
code="ai.analysis.manage"
|
||||
icon={<ThunderboltOutlined />}
|
||||
loading={analyzingTrend}
|
||||
onClick={handleTrendAnalysis}
|
||||
size="small"
|
||||
>
|
||||
AI 趋势分析
|
||||
<AuthButton code="ai.analysis.manage">
|
||||
<Button
|
||||
icon={<ThunderboltOutlined />}
|
||||
loading={analyzingTrend}
|
||||
onClick={handleTrendAnalysis}
|
||||
size="small"
|
||||
>
|
||||
AI 趋势分析
|
||||
</Button>
|
||||
</AuthButton>
|
||||
</div>
|
||||
<VitalSignsChart patientId={patientId} refreshKey={chartRefreshKey} />
|
||||
|
||||
Reference in New Issue
Block a user