生产管理系统 - 页面上样式、刷新等内容的规范

This commit is contained in:
2025-11-05 17:48:09 +08:00
parent 1fb128ede5
commit 279bbe8536
7 changed files with 17 additions and 120 deletions

View File

@@ -136,12 +136,7 @@ export default function EnterpriseManagement() {
dispatch({ type: 'SET_PAGINATION', payload: { page } });
};
const handleRefresh = () => {
dispatch({ type: 'REFRESH_DATA' });
loadEnterprises(true);
toast.success('数据已刷新');
};
const handleView = (enterprise: Enterprise) => {
dispatch({ type: 'SET_SELECTED_ENTERPRISE', payload: enterprise });
dispatch({ type: 'TOGGLE_VIEW_DIALOG', payload: true });
@@ -241,10 +236,6 @@ export default function EnterpriseManagement() {
<Plus className="w-4 h-4 mr-2" />
</Button>
<Button variant="outline" size="sm" onClick={handleRefresh} disabled={state.loading}>
<RefreshCw className={`w-4 h-4 mr-1 ${state.loading ? 'animate-spin' : ''}`} />
</Button>
</div>
</div>
</Card>