|
@@ -18,7 +18,7 @@
|
|
|
<a-input-number id="inputNumber" v-model="consumeValue" :min="0" @change="consumeOnChange" />
|
|
|
|
|
|
<span>视频ID:</span>
|
|
|
- <a-input class="myinput" v-model="videoID" />
|
|
|
+ <a-input class="myinput" v-model="videoID" style="width:250px" />
|
|
|
</div>
|
|
|
|
|
|
<a-button type="primary" @click="searchRes">查询</a-button>
|
|
@@ -84,7 +84,7 @@
|
|
|
ref="vSummaryTable"
|
|
|
:width="tableWidth"
|
|
|
@customHeaderCell="customHeaderCell(columns)"
|
|
|
- height="100"
|
|
|
+
|
|
|
>
|
|
|
<div slot="videoU" slot-scope="test,records">
|
|
|
<img
|
|
@@ -340,6 +340,11 @@ export default {
|
|
|
searchRes() {
|
|
|
this.date = []
|
|
|
this.loading = true
|
|
|
+ this.HttpPost();
|
|
|
+ },
|
|
|
+ //网络请求table数据函数
|
|
|
+ HttpPost(){
|
|
|
+
|
|
|
postAction('/toutiao/videoReportDaily/videoInfoListTotal', {
|
|
|
startDate: this.timedata[0],
|
|
|
endDate: this.timedata[1],
|
|
@@ -359,7 +364,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
//导出报表
|
|
|
exportExcel() {
|
|
|
// var params = {}
|
|
@@ -615,7 +619,8 @@ export default {
|
|
|
|
|
|
mounted() {
|
|
|
this.columns = [...columnsFixd, ...variableCol]
|
|
|
- console.log('mounted')
|
|
|
+ // console.log('mounted')
|
|
|
+ //请求自定义列的数据
|
|
|
postAction('/toutiao/videoReportDaily/videoInfoListTotalExportExcelPermission').then(res => {
|
|
|
console.log(res)
|
|
|
if (res.success) {
|
|
@@ -626,13 +631,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ //进入页面默认展示昨天到今天的数据
|
|
|
+ this.dateRange=[moment().subtract(1,'days'),moment()]
|
|
|
+ this.timedata=[moment().subtract(1,'days').format('YYYY-MM-DD'),moment().format('YYYY-MM-DD')]
|
|
|
+ this.loading=true;
|
|
|
+ this.HttpPost();
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
-.ant-table .ant-table-fixed-left .ant-table-thead {
|
|
|
- height: 108px !important ;
|
|
|
-}
|
|
|
+// .ant-table .ant-table-fixed-left .ant-table-thead {
|
|
|
+// height: 108px !important ;
|
|
|
+// }
|
|
|
.ant-table .ant-table-thead .ant-table-header-column .ant-table-column-title {
|
|
|
// display:block;
|
|
|
white-space: normal;
|