market_api_1008_2
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<el-row :gutter="15">
|
||||
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
||||
<el-form-item label="姓名:">
|
||||
<el-input clearable v-model="where.name" placeholder="请输入" />
|
||||
<el-input clearable v-model="where.uname" placeholder="请输入" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-bind="styleResponsive ? { lg: 6, md: 12 } : { span: 6 }">
|
||||
@@ -58,7 +58,7 @@
|
||||
// 默认表单数据
|
||||
const defaultWhere = {
|
||||
status: 1,
|
||||
name: '',
|
||||
uname: '',
|
||||
mobile: '',
|
||||
item_title: ''
|
||||
};
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
fixed: 'left'
|
||||
},
|
||||
{
|
||||
prop: 'name',
|
||||
prop: 'uname',
|
||||
label: '姓名',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80
|
||||
|
||||
@@ -484,18 +484,18 @@
|
||||
consultantData: []
|
||||
},
|
||||
loading: true,
|
||||
browseAreaRank:[],
|
||||
browseBizRank:[],
|
||||
browseConsultantRank:[],
|
||||
subscribeAreaRank:[],
|
||||
subscribeBizRank:[],
|
||||
subscribeConsultantRank:[],
|
||||
watchAreaRank:[],
|
||||
watchBizRank:[],
|
||||
watchConsultantRank:[],
|
||||
orderAreaRank:[],
|
||||
orderBizRank:[],
|
||||
orderConsultantRank:[]
|
||||
browseAreaRank: [],
|
||||
browseBizRank: [],
|
||||
browseConsultantRank: [],
|
||||
subscribeAreaRank: [],
|
||||
subscribeBizRank: [],
|
||||
subscribeConsultantRank: [],
|
||||
watchAreaRank: [],
|
||||
watchBizRank: [],
|
||||
watchConsultantRank: [],
|
||||
orderAreaRank: [],
|
||||
orderBizRank: [],
|
||||
orderConsultantRank: []
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -522,8 +522,8 @@
|
||||
setPageTabTitle(data.title + '的数据统计');
|
||||
}
|
||||
//浏览人数排名-区域
|
||||
var temp,max,list;
|
||||
temp = this.statistics.areaData.sort((a, b) => b.browse - a.browse);
|
||||
var temp, max, list;
|
||||
temp = data.areaData.sort((a, b) => b.browse - a.browse);
|
||||
max = temp[0].browse || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.browseAreaRank = list.map((d) => {
|
||||
@@ -534,7 +534,7 @@
|
||||
};
|
||||
});
|
||||
//浏览人数排名-门店
|
||||
temp = this.statistics.bizData.sort((a, b) => b.browse - a.browse);
|
||||
temp = data.bizData.sort((a, b) => b.browse - a.browse);
|
||||
max = temp[0].browse || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.browseBizRank = list.map((d) => {
|
||||
@@ -545,7 +545,7 @@
|
||||
};
|
||||
});
|
||||
//浏览人数排名-顾问
|
||||
temp = this.statistics.consultantData.sort((a, b) => b.browse - a.browse);
|
||||
temp = data.consultantData.sort((a, b) => b.browse - a.browse);
|
||||
max = temp[0].browse || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.browseConsultantRank = list.map((d) => {
|
||||
@@ -555,9 +555,8 @@
|
||||
percent: (d.browse / max) * 100
|
||||
};
|
||||
});
|
||||
|
||||
//预约人数排名-区域
|
||||
temp = this.statistics.areaData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
temp = data.areaData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
max = temp[0].subscribe || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.subscribeAreaRank = list.map((d) => {
|
||||
@@ -568,7 +567,7 @@
|
||||
};
|
||||
});
|
||||
//预约人数排名-门店
|
||||
temp = this.statistics.bizData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
temp = data.bizData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
max = temp[0].subscribe || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.subscribeBizRank = list.map((d) => {
|
||||
@@ -579,7 +578,7 @@
|
||||
};
|
||||
});
|
||||
//预约人数排名-顾问
|
||||
temp = this.statistics.consultantData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
temp = data.consultantData.sort((a, b) => b.sub - a.sub);
|
||||
max = temp[0].subscribe || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.subscribeConsultantRank = list.map((d) => {
|
||||
@@ -589,9 +588,8 @@
|
||||
percent: (d.subscribe / max) * 100
|
||||
};
|
||||
});
|
||||
|
||||
//观看人数排名-区域
|
||||
temp = this.statistics.areaData.sort((a, b) => b.watch - a.watch);
|
||||
temp = data.areaData.sort((a, b) => b.watch - a.watch);
|
||||
max = temp[0].watch || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.watchAreaRank = list.map((d) => {
|
||||
@@ -602,7 +600,7 @@
|
||||
};
|
||||
});
|
||||
//观看人数排名-门店
|
||||
temp = this.statistics.bizData.sort((a, b) => b.watch - a.watch);
|
||||
temp = data.bizData.sort((a, b) => b.watch - a.watch);
|
||||
max = temp[0].watch || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.watchBizRank = list.map((d) => {
|
||||
@@ -613,7 +611,7 @@
|
||||
};
|
||||
});
|
||||
//观看人数排名-顾问
|
||||
temp = this.statistics.consultantData.sort((a, b) => b.watch - a.watch);
|
||||
temp = data.consultantData.sort((a, b) => b.watch - a.watch);
|
||||
max = temp[0].watch || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.watchConsultantRank = list.map((d) => {
|
||||
@@ -623,9 +621,8 @@
|
||||
percent: (d.watch / max) * 100
|
||||
};
|
||||
});
|
||||
|
||||
//订单数排名-区域
|
||||
temp = this.statistics.areaData.sort((a, b) => b.order - a.order);
|
||||
temp = data.areaData.sort((a, b) => b.order - a.order);
|
||||
max = temp[0].order || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.orderAreaRank = list.map((d) => {
|
||||
@@ -636,7 +633,7 @@
|
||||
};
|
||||
});
|
||||
//观看人数排名-门店
|
||||
temp = this.statistics.bizData.sort((a, b) => b.order - a.order);
|
||||
temp = data.bizData.sort((a, b) => b.order - a.order);
|
||||
max = temp[0].order || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.orderBizRank = list.map((d) => {
|
||||
@@ -647,7 +644,7 @@
|
||||
};
|
||||
});
|
||||
//观看人数排名-顾问
|
||||
temp = this.statistics.consultantData.sort((a, b) => b.order - a.order);
|
||||
temp = data.consultantData.sort((a, b) => b.order - a.order);
|
||||
max = temp[0].order || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.orderConsultantRank = list.map((d) => {
|
||||
@@ -657,7 +654,6 @@
|
||||
percent: (d.order / max) * 100
|
||||
};
|
||||
});
|
||||
|
||||
})
|
||||
.catch((e) => {
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user