|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Table ref="table" :columns="columns1" :data="data1" style="margin-top: 20px;" size="small"></Table>
|
|
|
|
|
<Table :loading="tableLoading" ref="table" :columns="columns1" :data="data1" style="margin-top: 20px;" size="small"></Table>
|
|
|
|
|
<Page :total="totalSize" :current="pageNum" :page-size="pageSize" show-elevator show-total
|
|
|
|
|
placement="top" @on-change="handlePage" style="float: right;margin-top: 20px"></Page>
|
|
|
|
|
</div>
|
|
|
|
@ -144,6 +144,7 @@
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
selectDate: [],
|
|
|
|
|
tableLoading:false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted: function () {
|
|
|
|
@ -180,6 +181,7 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
generalizeOfRetail() {
|
|
|
|
|
this.tableLoading = true;
|
|
|
|
|
if(this.selectDate[0] === ""){
|
|
|
|
|
this.$Message.info("请选择日期");
|
|
|
|
|
return
|
|
|
|
@ -199,12 +201,14 @@
|
|
|
|
|
let that = this;
|
|
|
|
|
that.data1 = [];
|
|
|
|
|
IncreaseData.generalizeOfRetail(request, function (data) {
|
|
|
|
|
that.tableLoading = false;
|
|
|
|
|
data = data.data;
|
|
|
|
|
if (data.code === '0001') {
|
|
|
|
|
that.$Message.info("查询推广数据失败!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (data.code === '0000') {
|
|
|
|
|
that.tableLoading = false;
|
|
|
|
|
that.data1 = data.results.dataVOS;
|
|
|
|
|
that.totalSize = data.results.sizeNum;
|
|
|
|
|
if(that.data1){
|
|
|
|
@ -258,7 +262,7 @@
|
|
|
|
|
const { export_json_to_excel } = require('../../excel/Export2Excel');
|
|
|
|
|
const tHeader = ['序号', '零售公司名称', '总好友数', '总好友数(去重)', '新增好友数', '新增好友数(去重)','日增好友平均','日增好友平均(去重)','删除/拉黑成员客户数(累计)','拉黑率(累计)'];
|
|
|
|
|
// 属性名
|
|
|
|
|
const filterVal = ['index', 'retailCompany', 'allCustomer', 'effectiveCustomer', 'newCustomer', 'newEffectiveCustomer','avgNewCustomer','avgNewCustomer','avgNewEffectiveCustomer','delCustomer','delRate'];
|
|
|
|
|
const filterVal = ['index', 'retailCompany', 'allCustomer', 'effectiveCustomer', 'newCustomer', 'newEffectiveCustomer','avgNewCustomer','avgNewEffectiveCustomer','delCustomer','delRate'];
|
|
|
|
|
// 数据
|
|
|
|
|
//把data里的tableData存到list
|
|
|
|
|
const data = that.formatJson(filterVal, originAllData);
|
|
|
|
|