|
@@ -13,12 +13,16 @@
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
<a-button type="primary" @click="exportExcel" style="margin-left: 8px">导出</a-button>
|
|
<a-button type="primary" @click="exportExcel" style="margin-left: 8px">导出</a-button>
|
|
|
|
+ <a-button type="primary" @click="backStatistics" style="float:right;margin:10px 10px 10px 0"
|
|
|
|
+ >返回公司报表</a-button
|
|
|
|
+ >
|
|
<br />
|
|
<br />
|
|
是否展示消耗为0的数据:
|
|
是否展示消耗为0的数据:
|
|
<a-radio-group buttonStyle="solid" v-model="isHasData" @change="onChageLogin" style="margin:10px">
|
|
<a-radio-group buttonStyle="solid" v-model="isHasData" @change="onChageLogin" style="margin:10px">
|
|
<a-radio-button value="1">是</a-radio-button>
|
|
<a-radio-button value="1">是</a-radio-button>
|
|
<a-radio-button value="0">否</a-radio-button>
|
|
<a-radio-button value="0">否</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
|
|
+
|
|
<a-table
|
|
<a-table
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:dataSource="dataList"
|
|
:dataSource="dataList"
|
|
@@ -70,24 +74,25 @@ const columns = [
|
|
dataIndex: 'date',
|
|
dataIndex: 'date',
|
|
key: 'date',
|
|
key: 'date',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 200
|
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
+ width: 150
|
|
},
|
|
},
|
|
-// {
|
|
|
|
-// title: '是否有数据',
|
|
|
|
-// dataIndex: 'isHasData',
|
|
|
|
-// key: 'isHasData',
|
|
|
|
-// filters: [
|
|
|
|
-// { text: '是', value: '1' },
|
|
|
|
-// { text: '否', value: '0' }
|
|
|
|
-// ],
|
|
|
|
-// onFilter: (value, record) =>
|
|
|
|
-// record.isHasData
|
|
|
|
-// .toString()
|
|
|
|
-// .toLowerCase()
|
|
|
|
-// .includes(value.toLowerCase()),
|
|
|
|
-// scopedSlots: { customRender: 'isHasData' },
|
|
|
|
-// align: 'center'
|
|
|
|
-// },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // title: '是否有数据',
|
|
|
|
+ // dataIndex: 'isHasData',
|
|
|
|
+ // key: 'isHasData',
|
|
|
|
+ // filters: [
|
|
|
|
+ // { text: '是', value: '1' },
|
|
|
|
+ // { text: '否', value: '0' }
|
|
|
|
+ // ],
|
|
|
|
+ // onFilter: (value, record) =>
|
|
|
|
+ // record.isHasData
|
|
|
|
+ // .toString()
|
|
|
|
+ // .toLowerCase()
|
|
|
|
+ // .includes(value.toLowerCase()),
|
|
|
|
+ // scopedSlots: { customRender: 'isHasData' },
|
|
|
|
+ // align: 'center'
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
title: '快手id',
|
|
title: '快手id',
|
|
dataIndex: 'kid',
|
|
dataIndex: 'kid',
|
|
@@ -247,6 +252,11 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ backStatistics() {
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ path: '/Statistics/companyStatistics'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
exportExcel() {
|
|
exportExcel() {
|
|
var weekDate = localStorage.getItem('companyDate')
|
|
var weekDate = localStorage.getItem('companyDate')
|
|
var params = {}
|
|
var params = {}
|
|
@@ -270,6 +280,7 @@ export default {
|
|
},
|
|
},
|
|
searchReset() {
|
|
searchReset() {
|
|
this.advertiserName = ''
|
|
this.advertiserName = ''
|
|
|
|
+ this.isHasData = '1'
|
|
this.searchQuery()
|
|
this.searchQuery()
|
|
},
|
|
},
|
|
searchQuery() {
|
|
searchQuery() {
|