|
@@ -126,6 +126,8 @@ th div {
|
|
size="middle"
|
|
size="middle"
|
|
:scroll="{ x: 1900 }"
|
|
:scroll="{ x: 1900 }"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
|
+ :pagination="ipagination"
|
|
|
|
+ @change="pageChange"
|
|
>
|
|
>
|
|
<span slot="fengmianClickRate" slot-scope="text">{{ text | getBo }}</span>
|
|
<span slot="fengmianClickRate" slot-scope="text">{{ text | getBo }}</span>
|
|
<span slot="convertClickRate" slot-scope="text">{{ text | getBo }}</span>
|
|
<span slot="convertClickRate" slot-scope="text">{{ text | getBo }}</span>
|
|
@@ -148,10 +150,11 @@ import axios from 'axios'
|
|
import lifting from './components/lifting'
|
|
import lifting from './components/lifting'
|
|
import timeCheck from './components/timeCheck'
|
|
import timeCheck from './components/timeCheck'
|
|
import Treeselect from './components/Treeselect.vue'
|
|
import Treeselect from './components/Treeselect.vue'
|
|
-
|
|
|
|
|
|
+import { JeecgListMixin } from '@/mixins/ipagination'
|
|
import { getAction, postAction, postFile, downFilePost } from '@/api/manage'
|
|
import { getAction, postAction, postFile, downFilePost } from '@/api/manage'
|
|
import { mapGetters } from 'vuex'
|
|
import { mapGetters } from 'vuex'
|
|
|
|
|
|
|
|
+
|
|
var length = 0
|
|
var length = 0
|
|
var active = 1
|
|
var active = 1
|
|
|
|
|
|
@@ -313,6 +316,7 @@ export default {
|
|
timeCheck,
|
|
timeCheck,
|
|
Treeselect
|
|
Treeselect
|
|
},
|
|
},
|
|
|
|
+ mixins: [JeecgListMixin],
|
|
data: function() {
|
|
data: function() {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
@@ -438,8 +442,10 @@ export default {
|
|
params.endDate = moment(this.startValue[1]._d).format('YYYY-MM-DD')
|
|
params.endDate = moment(this.startValue[1]._d).format('YYYY-MM-DD')
|
|
break
|
|
break
|
|
}
|
|
}
|
|
|
|
+ params.page=this.ipagination.current;
|
|
|
|
+ params.pageSize=10;
|
|
this.params = params
|
|
this.params = params
|
|
- postAction('/report/kuaishouReportDailyAgentSum/companyReport', params).then(res => {
|
|
|
|
|
|
+ postAction('/agent/kuaiShouDailyAgent/companyReport', params).then(res => {
|
|
this.loading = false
|
|
this.loading = false
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.dataTable = res.result.map((item, index) => {
|
|
this.dataTable = res.result.map((item, index) => {
|
|
@@ -447,12 +453,14 @@ export default {
|
|
...item,
|
|
...item,
|
|
key: index
|
|
key: index
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ this.ipagination.total=res.total;
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- postAction('/report/kuaishouReportDailyAgentSum/companyReportSum', params).then(res => {
|
|
|
|
|
|
+ postAction('/agent/kuaiShouDailyAgent/companyReportSum', params).then(res => {
|
|
if (res.result) {
|
|
if (res.result) {
|
|
this.allData = [
|
|
this.allData = [
|
|
{ value: res.result.costCampaignCount, label: '有消费计划数' },
|
|
{ value: res.result.costCampaignCount, label: '有消费计划数' },
|
|
@@ -466,8 +474,8 @@ export default {
|
|
{ value: res.result.fengmianClickCount, label: '封⾯点击数' },
|
|
{ value: res.result.fengmianClickCount, label: '封⾯点击数' },
|
|
{ value: res.result.sucaiShowCount, label: '素材曝光数' },
|
|
{ value: res.result.sucaiShowCount, label: '素材曝光数' },
|
|
{ value: res.result.convertCount, label: '⾏为数' },
|
|
{ value: res.result.convertCount, label: '⾏为数' },
|
|
- { value: res.result.fengmianClickRate.toFixed(2) + '%', label: '封⾯点击率' },
|
|
|
|
- { value: res.result.convertClickRate.toFixed(2) + '%', label: '转化点击率' }
|
|
|
|
|
|
+ { value: (res.result.fengmianClickRate*100).toFixed(2) + '%', label: '封⾯点击率' },
|
|
|
|
+ { value: (res.result.convertClickRate*100).toFixed(2) + '%', label: '转化点击率' }
|
|
]
|
|
]
|
|
// {
|
|
// {
|
|
// costCampaignCount: 0, // 有消费计划数
|
|
// costCampaignCount: 0, // 有消费计划数
|
|
@@ -516,7 +524,12 @@ export default {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
path: '/Statistics/companyDetail'
|
|
path: '/Statistics/companyDetail'
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ pageChange(pagination, filters, sorter, { currentDataSource }){
|
|
|
|
+ this.ipagination.current=pagination.current;
|
|
|
|
+ this.getCompanyReport(this.active)
|
|
|
|
+ },
|
|
|
|
+
|
|
},
|
|
},
|
|
watch: {},
|
|
watch: {},
|
|
distoryed() {},
|
|
distoryed() {},
|