浏览代码

2024.08.25 - 又把tooltip去掉了

GuYun-D 7 月之前
父节点
当前提交
9b0ebcfec6
共有 2 个文件被更改,包括 3 次插入23 次删除
  1. 1 8
      src/views/dashboard/data/dashboard.js
  2. 2 15
      src/views/dashboard/index.vue

+ 1 - 8
src/views/dashboard/data/dashboard.js

@@ -5,14 +5,7 @@ export const statisticalArea = [
     icon: require('../../../assets/images/dashboard/member.png'),
     children: [
       { label: '会员总数', field: 'memberTotal' },
-      {
-        label: '会员同比增长率',
-        field: 'memberIncreaseRate',
-        tooltip: true,
-        format(value) {
-          return { count: value * 100 + '', unit: '%' }
-        }
-      },
+      { label: '今日新增会员数', field: 'todayMember' },
       { label: '普通会员数量', field: 'normalMemberTotal' },
       { label: '团长数量', field: 'headquarterTotal' },
       { label: '合伙人数量', field: 'partnerTotal' }

+ 2 - 15
src/views/dashboard/index.vue

@@ -26,20 +26,7 @@
           :key="item.label + index"
           :meta="item"
           :itemData="statisticalRegionData[item.itemData]"
-        >
-          <template #memberIncreaseRate>
-            <div class="memberIncreaseRate-tooltip">
-              <div class="item">
-                <div>昨日新增会员:</div>
-                <div>{{ statisticalRegionData.memberStatistics.yesterdayMember || 0 }} 个</div>
-              </div>
-              <div class="item">
-                <div>今日新增会员:</div>
-                <div>{{ statisticalRegionData.memberStatistics.todayMember || 0 }} 个</div>
-              </div>
-            </div>
-          </template>
-        </StatisticsSection>
+        ></StatisticsSection>
       </div>
     </StatisticsPanel>
 
@@ -199,7 +186,7 @@ export default {
           normalMemberTotal: 0, // 普通会员数量
           headquarterTotal: 0, // 团长数量
           partnerTotal: 0, // 合伙人数量
-          memberIncreaseRate: 0 // 会员增长率
+          todayMember: 0 // 今日新增会员数
         },
         orderStatistics: {
           // 订单统计