diff --git a/src/api/sylive/activity/index.js b/src/api/sylive/activity/index.js
index ff843fd..f6351aa 100644
--- a/src/api/sylive/activity/index.js
+++ b/src/api/sylive/activity/index.js
@@ -68,30 +68,6 @@ export async function listActivity(params) {
return Promise.reject(new Error(res.data.message));
}
-/**
- * 根据id查询活动机构数据统计
- * @param id 活动id
- */
-export async function getActivityStatistics(id) {
- const res = await request.get('/sylive/activity/statistics/' + id);
- if (res.data.code === 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
-}
-
-/**
- * 根据id查询活动团队数据统计
- * @param id 活动id
- */
-export async function getActivityStatisticsTeam(id) {
- const res = await request.get('/sylive/activity/statistics_team/' + id);
- if (res.data.code === 0) {
- return res.data.data;
- }
- return Promise.reject(new Error(res.data.message));
-}
-
/**
* 添加活动
* @param data 活动信息
@@ -223,3 +199,55 @@ export async function getActivitystoreBarchart(params) {
}
return Promise.reject(new Error(res.data.message));
}
+
+/**
+ * 根据id查询活动机构数据统计
+ * @param id 活动id
+ */
+export async function getActivityStatistics(id) {
+ const res = await request.get('/sylive/statistics/biz/' + id);
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
+
+/**
+ * 根据id查询活动团队数据统计
+ * @param id 活动id
+ */
+export async function getActivityStatisticsTeam(id) {
+ const res = await request.get('/sylive/statistics/team/' + id);
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
+
+/**
+ * 分页查询门店统计
+ * @param params 查询条件
+ */
+export async function pageStatisticsBiz(params) {
+ const res = await request.get('/sylive/statistics/page_biz', {
+ params
+ });
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
+
+/**
+ * 分页查询顾问统计
+ * @param params 查询条件
+ */
+export async function pageStatisticsConsultant(params) {
+ const res = await request.get('/sylive/statistics/page_consultant', {
+ params
+ });
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
diff --git a/src/views/sylive/activity/statistics-team/index.vue b/src/views/sylive/activity/statistics-team/index.vue
index 26b519a..af60dce 100644
--- a/src/views/sylive/activity/statistics-team/index.vue
+++ b/src/views/sylive/activity/statistics-team/index.vue
@@ -84,7 +84,6 @@
body-style="padding: 11px;"
class="workplace-table-card"
>
-
{{ item.value }}
@@ -117,6 +117,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -130,7 +131,6 @@
body-style="padding: 11px;"
class="workplace-table-card"
>
-
{{ item.value }}
@@ -163,6 +164,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -176,7 +178,6 @@
body-style="padding: 11px;"
class="workplace-table-card"
>
-
{{ item.value }}
@@ -209,6 +211,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -222,7 +225,6 @@
body-style="padding: 11px;"
class="workplace-table-card"
>
-
{{ item.value }}
@@ -255,6 +258,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
diff --git a/src/views/sylive/activity/statistics/components/biz-table.vue b/src/views/sylive/activity/statistics/components/biz-table.vue
new file mode 100644
index 0000000..b96a04a
--- /dev/null
+++ b/src/views/sylive/activity/statistics/components/biz-table.vue
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sylive/activity/statistics/components/consultant-table.vue b/src/views/sylive/activity/statistics/components/consultant-table.vue
new file mode 100644
index 0000000..4cb8f33
--- /dev/null
+++ b/src/views/sylive/activity/statistics/components/consultant-table.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/sylive/activity/statistics/index.vue b/src/views/sylive/activity/statistics/index.vue
index 5ed0181..f140518 100644
--- a/src/views/sylive/activity/statistics/index.vue
+++ b/src/views/sylive/activity/statistics/index.vue
@@ -97,6 +97,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -116,6 +117,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -135,6 +137,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -161,6 +164,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -180,6 +184,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -199,6 +204,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -225,6 +231,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -244,6 +251,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -263,6 +271,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -289,6 +298,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -308,6 +318,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -327,6 +338,7 @@
:stroke-width="10"
:show-text="false"
:percentage="item.percent"
+ v-if="!isNaN(parseInt(item.percent))"
/>
{{ item.value }}
@@ -397,114 +409,8 @@
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -520,14 +426,14 @@
import VChart from 'vue-echarts';
import 'echarts-wordcloud';
import { echartsMixin } from '@/utils/echarts-mixin';
+ import BizTable from './components/biz-table.vue';
+ import ConsultantTable from './components/consultant-table.vue';
use([CanvasRenderer, TooltipComponent, FunnelChart]);
export default {
name: 'SyliveActivityStatistics',
- components: {
- VChart
- },
+ components: { VChart, BizTable, ConsultantTable },
mixins: [echartsMixin(['funnelChart'])],
data() {
return {
@@ -872,11 +778,9 @@
/* 人数分布排名 */
.monitor-user-count-item {
margin-bottom: 8px;
-
:deep(.el-progress-bar__outer) {
background: none;
}
-
.ele-cell-content {
padding-right: 10px;
}