This commit is contained in:
1 parent
e5a8fbd85a
commit
ecaaae4518
2 files changed
+3
-5
No files matched your search
@@ -135,9 +135,7 @@ const cfu = {
|
||||
},
|
||||
// 食堂喜好分析饼图提示格式化
|
||||
canteenPieTooltip: function (item, category, index, opts) {
|
||||
return `分类:${item.classifyName || ""}/br/购买总次数:${item.payCount}/br/购买总金额:${
|
||||
Number(item.totalPrice) / 100.0
|
||||
}元/br/购买总次数:${item.timeCount}`
|
||||
return `分类:${item.classifyName || ""}/br/购买总数量:${item.payCount}/br/购买总金额:${Number(item.totalPrice) / 100.0}元`
|
||||
},
|
||||
// 食堂喜好分析折现图提示格式化
|
||||
canteenAreaTooltip: function (item, category, index, opts) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<crud-layout title="详情" mainIsScroll bg="/static/page/blue-bg.png">
|
||||
<tm-sheet :margin="[0, 20]">
|
||||
<view class="prefix_title mb-15rpx">菜品分类购买次数占比图</view>
|
||||
<view class="prefix_title mb-15rpx">菜品分类购买数量占比图</view>
|
||||
<view class="w-full h-600rpx">
|
||||
<qiun-data-charts type="pie" :opts="pieChartOpts" :chartData="pieChartData" tooltipFormat="canteenPieTooltip" />
|
||||
</view>
|
||||
@@ -22,7 +22,7 @@
|
||||
<view class="w-80rpx text-center text-24rpx font-bold text-gray-600">排名</view>
|
||||
<view class="flex-1 px-16rpx text-24rpx font-bold text-gray-600">菜品名称</view>
|
||||
<view class="w-120rpx text-center text-24rpx font-bold text-gray-600">分类</view>
|
||||
<view class="w-160rpx text-center text-24rpx font-bold text-gray-600">购买次数</view>
|
||||
<view class="w-160rpx text-center text-24rpx font-bold text-gray-600">购买数量</view>
|
||||
</view>
|
||||
|
||||
<view
|
||||
|
||||
Reference in new issue
Block a user