|
|
@@ -93,6 +93,7 @@
|
|
|
<script>
|
|
|
import * as echarts from 'echarts'
|
|
|
import { orgMy, orgStatsOverview, orgStatsFamilies, orgStatsActive, orgStatsRevenue, orgStatsTrend } from '@/api/org'
|
|
|
+import { adminColor, DIMENSION_COLORS } from '@/utils/colorTokens'
|
|
|
|
|
|
export default {
|
|
|
name: 'OrgDashboard',
|
|
|
@@ -206,9 +207,9 @@ export default {
|
|
|
xAxis: { type: 'category', data: days, axisLabel: { interval: 0, rotate: 30 } },
|
|
|
yAxis: { type: 'value' },
|
|
|
series: [
|
|
|
- { name: '任务完成', type: 'line', smooth: true, data: tasks, itemStyle: { color: '#1677FF' } },
|
|
|
- { name: '打卡', type: 'line', smooth: true, data: checkins, itemStyle: { color: '#10B981' } },
|
|
|
- { name: '报告上传', type: 'line', smooth: true, data: reports, itemStyle: { color: '#F59E0B' } }
|
|
|
+ { name: '任务完成', type: 'line', smooth: true, data: tasks, itemStyle: { color: adminColor('primary') } },
|
|
|
+ { name: '打卡', type: 'line', smooth: true, data: checkins, itemStyle: { color: DIMENSION_COLORS.action } },
|
|
|
+ { name: '报告上传', type: 'line', smooth: true, data: reports, itemStyle: { color: DIMENSION_COLORS.wealth } }
|
|
|
]
|
|
|
})
|
|
|
},
|
|
|
@@ -224,9 +225,9 @@ export default {
|
|
|
xAxis: { type: 'category', data: days, axisLabel: { interval: 0, rotate: 30 } },
|
|
|
yAxis: { type: 'value' },
|
|
|
series: [
|
|
|
- { name: '订单金额', type: 'bar', stack: 'total', data: orderAmt, itemStyle: { color: '#1677FF' } },
|
|
|
- { name: '会员订阅', type: 'bar', stack: 'total', data: subAmt, itemStyle: { color: '#10B981' } },
|
|
|
- { name: '佣金支出', type: 'bar', stack: 'total', data: commission, itemStyle: { color: '#F59E0B' } }
|
|
|
+ { name: '订单金额', type: 'bar', stack: 'total', data: orderAmt, itemStyle: { color: adminColor('primary') } },
|
|
|
+ { name: '会员订阅', type: 'bar', stack: 'total', data: subAmt, itemStyle: { color: DIMENSION_COLORS.action } },
|
|
|
+ { name: '佣金支出', type: 'bar', stack: 'total', data: commission, itemStyle: { color: DIMENSION_COLORS.wealth } }
|
|
|
]
|
|
|
})
|
|
|
},
|
|
|
@@ -245,9 +246,9 @@ export default {
|
|
|
{ type: 'value', name: '收入(元)', position: 'right' }
|
|
|
],
|
|
|
series: [
|
|
|
- { name: '活跃成员数', type: 'line', smooth: true, yAxisIndex: 0, data: active, itemStyle: { color: '#1677FF' } },
|
|
|
- { name: '订单数', type: 'line', smooth: true, yAxisIndex: 0, data: orders, itemStyle: { color: '#10B981' } },
|
|
|
- { name: '收入(元)', type: 'line', smooth: true, yAxisIndex: 1, data: income, itemStyle: { color: '#F59E0B' } }
|
|
|
+ { name: '活跃成员数', type: 'line', smooth: true, yAxisIndex: 0, data: active, itemStyle: { color: adminColor('primary') } },
|
|
|
+ { name: '订单数', type: 'line', smooth: true, yAxisIndex: 0, data: orders, itemStyle: { color: DIMENSION_COLORS.action } },
|
|
|
+ { name: '收入(元)', type: 'line', smooth: true, yAxisIndex: 1, data: income, itemStyle: { color: DIMENSION_COLORS.wealth } }
|
|
|
]
|
|
|
})
|
|
|
}
|