feat: 优化完成
This commit is contained in:
@@ -7,7 +7,7 @@ import { Button } from "@/components/ui/button"
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
||||
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs"
|
||||
import { LineChartComponent, BarChartComponent, PieChartComponent } from "@/app/components/common/Charts"
|
||||
import { LineChart, BarChart, TrendChart } from "@/app/components/Charts"
|
||||
import { toast } from "@/components/ui/use-toast"
|
||||
|
||||
export default function PaymentStatsPage() {
|
||||
@@ -153,7 +153,7 @@ export default function PaymentStatsPage() {
|
||||
</TabsList>
|
||||
|
||||
<TabsContent value="overview" className="space-y-4">
|
||||
<LineChartComponent
|
||||
<LineChart
|
||||
title="支付趋势"
|
||||
description="本周支付笔数和金额趋势"
|
||||
data={lineChartData}
|
||||
@@ -161,7 +161,7 @@ export default function PaymentStatsPage() {
|
||||
height={250}
|
||||
/>
|
||||
|
||||
<BarChartComponent
|
||||
<BarChart
|
||||
title="付款码对比"
|
||||
description="各付款码支付情况对比"
|
||||
data={barChartData}
|
||||
@@ -176,7 +176,7 @@ export default function PaymentStatsPage() {
|
||||
<CardTitle>支付趋势分析</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<LineChartComponent data={lineChartData} config={lineChartConfig} height={300} />
|
||||
<LineChart data={lineChartData} config={lineChartConfig} height={300} />
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
@@ -194,7 +194,7 @@ export default function PaymentStatsPage() {
|
||||
</TabsContent>
|
||||
|
||||
<TabsContent value="distribution" className="space-y-4">
|
||||
<PieChartComponent
|
||||
<LineChart
|
||||
title="支付方式分布"
|
||||
description="各支付方式占比"
|
||||
data={pieChartData}
|
||||
|
||||
Reference in New Issue
Block a user