|
@@ -92,7 +92,7 @@
|
|
|
<!-- <router-link :to="{ path: '/inquiry/list', query: { timeType: 'thisWeek' } }">-->
|
|
|
<div class="fr">
|
|
|
<p class="title">本周询盘数</p>
|
|
|
- <p class="theme-color">{{ filter_Null_format(currentWeekEnquiryCount) }}</p>
|
|
|
+ <p class="theme-color">{{ formatNumber(currentWeekEnquiryCount) }}</p>
|
|
|
</div>
|
|
|
<!-- </router-link>-->
|
|
|
</a-spin>
|
|
@@ -104,7 +104,7 @@
|
|
|
<!-- <router-link :to="{ path: '/inquiry/list', query: { timeType: 'thisMonth' } }">-->
|
|
|
<div class="fr">
|
|
|
<p class="title">本月询盘数</p>
|
|
|
- <p class="theme-color">{{ filter_Null_format(currentMonthEnquiryCount) }}</p>
|
|
|
+ <p class="theme-color">{{ formatNumber(currentMonthEnquiryCount) }}</p>
|
|
|
</div>
|
|
|
<!-- </router-link>-->
|
|
|
</a-spin>
|
|
@@ -116,7 +116,7 @@
|
|
|
<a-spin :spinning="coreInfoLoading">
|
|
|
<div class="fr">
|
|
|
<p class="title">累计询盘数</p>
|
|
|
- <p class="theme-color">{{ filter_Null_format(totalEnquiryCount) }}</p>
|
|
|
+ <p class="theme-color">{{ formatNumber(totalEnquiryCount) }}</p>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
</div>
|
|
@@ -127,7 +127,7 @@
|
|
|
<a-spin :spinning="coreInfoLoading">
|
|
|
<div class="fr">
|
|
|
<p class="title">本周流量</p>
|
|
|
- <p>{{ filter_Null_format(thisWeekData.totalUsers) }}</p>
|
|
|
+ <p>{{ formatNumber(thisWeekData.totalUsers) }}</p>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
</div>
|
|
@@ -137,7 +137,7 @@
|
|
|
<a-spin :spinning="coreInfoLoading">
|
|
|
<div class="fr">
|
|
|
<p class="title">本月流量</p>
|
|
|
- <p>{{ filter_Null_format(thisMonthData.totalUsers) }}</p>
|
|
|
+ <p>{{ formatNumber(thisMonthData.totalUsers) }}</p>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
</div>
|
|
@@ -147,7 +147,7 @@
|
|
|
<a-spin :spinning="coreInfoLoading">
|
|
|
<div class="fr">
|
|
|
<p class="title">累计流量</p>
|
|
|
- <p>{{ filter_Null_format(allTimeData.totalUsers) }}</p>
|
|
|
+ <p>{{ formatNumber(allTimeData.totalUsers) }}</p>
|
|
|
</div>
|
|
|
</a-spin>
|
|
|
</div>
|
|
@@ -186,7 +186,7 @@
|
|
|
<div class="wrap">
|
|
|
<div class="fr">
|
|
|
<p class="title">日均访问量</p>
|
|
|
- <p style="font-size: 25px">{{ averageVisit }}</p>
|
|
|
+ <p style="font-size: 25px">{{ formatNumber(averageVisit) }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-col>
|
|
@@ -202,7 +202,7 @@
|
|
|
<div class="wrap">
|
|
|
<div class="fr">
|
|
|
<p class="title">访客平均访问页面数</p>
|
|
|
- <p style="font-size: 25px">{{ averageVisitPage }}</p>
|
|
|
+ <p style="font-size: 25px">{{ formatNumber(averageVisitPage) }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-col>
|
|
@@ -496,6 +496,14 @@
|
|
|
}
|
|
|
chartsLoading.value = false;
|
|
|
};
|
|
|
+
|
|
|
+ // 添加格式化数字的函数
|
|
|
+ function formatNumber(num) {
|
|
|
+ if (num === '' || num === null || num === undefined) {
|
|
|
+ return '--';
|
|
|
+ }
|
|
|
+ return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style lang="less">
|