added rahimi dashboard
This commit is contained in:
@@ -275,47 +275,6 @@ export function useDashboardPage() {
|
||||
?? (order.sts === 2 ? 'موفق' : order.sts === 1 ? 'باز' : 'ناموفق')
|
||||
}
|
||||
|
||||
const financeChartOptions = computed(() => {
|
||||
const sood = finance.value?.fullPriceSood ?? 0
|
||||
const karmozd = finance.value?.fullPriceKarmozd ?? finance.value?.fullPriceKaermozd ?? 0
|
||||
const gifts = finance.value?.GiftsPrise ?? 0
|
||||
const total = finance.value?.totalTradingProfit ?? sood + karmozd
|
||||
|
||||
return {
|
||||
...chartSurfaceOptions(),
|
||||
chart: { type: 'donut', fontFamily: 'inherit', offsetY: 4, foreColor: chartSurfaceOptions().chart.foreColor },
|
||||
labels: ['سود اختلاف قیمت', 'کارمزد معامله', 'ارزش هدایا (گرم)'],
|
||||
colors: ['#10b981', '#f59e0b', '#8b5cf6'],
|
||||
legend: {
|
||||
position: 'bottom',
|
||||
fontSize: '12px',
|
||||
horizontalAlign: 'center',
|
||||
offsetY: 6,
|
||||
itemMargin: { horizontal: 12, vertical: 4 },
|
||||
},
|
||||
dataLabels: { enabled: false },
|
||||
plotOptions: {
|
||||
pie: {
|
||||
donut: {
|
||||
size: '68%',
|
||||
labels: {
|
||||
show: true,
|
||||
total: {
|
||||
show: true,
|
||||
label: 'جمع سود معاملات',
|
||||
formatter: () => `${formatDashboardAmount(total)} ${DASHBOARD_RIAL_UNIT}`,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
y: { formatter: (v: number) => `${formatDashboardAmount(v)} ${DASHBOARD_RIAL_UNIT}` },
|
||||
},
|
||||
series: [sood, karmozd, gifts],
|
||||
}
|
||||
})
|
||||
|
||||
const flowChartOptions = computed(() => {
|
||||
const mobile = isMobile.value
|
||||
const surface = chartSurfaceOptions()
|
||||
@@ -628,7 +587,6 @@ export function useDashboardPage() {
|
||||
directionClass,
|
||||
stsClass,
|
||||
stsLabel,
|
||||
financeChartOptions,
|
||||
flowChartOptions,
|
||||
flowChartHeight,
|
||||
peakHoursChartOptions,
|
||||
|
||||
Reference in New Issue
Block a user