diff --git a/src/views/sylive/activity/order/components/order-search.vue b/src/views/sylive/activity/order/components/order-search.vue index 0f84d9f..aadded5 100644 --- a/src/views/sylive/activity/order/components/order-search.vue +++ b/src/views/sylive/activity/order/components/order-search.vue @@ -9,7 +9,7 @@ - + @@ -58,7 +58,7 @@ // 默认表单数据 const defaultWhere = { status: 1, - name: '', + uname: '', mobile: '', item_title: '' }; diff --git a/src/views/sylive/activity/order/index.vue b/src/views/sylive/activity/order/index.vue index cbcfb8b..0c0818a 100644 --- a/src/views/sylive/activity/order/index.vue +++ b/src/views/sylive/activity/order/index.vue @@ -40,7 +40,7 @@ fixed: 'left' }, { - prop: 'name', + prop: 'uname', label: '姓名', showOverflowTooltip: true, minWidth: 80 diff --git a/src/views/sylive/activity/statistics/index.vue b/src/views/sylive/activity/statistics/index.vue index 3d272fc..a3100f2 100644 --- a/src/views/sylive/activity/statistics/index.vue +++ b/src/views/sylive/activity/statistics/index.vue @@ -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;