|
@@ -92,7 +92,7 @@
|
|
|
</span>
|
|
|
|
|
|
<div slot="videoU" slot-scope="test,records">
|
|
|
- <img :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'" alt="" style="width:140px" @click="openVideo(records.url)">
|
|
|
+ <img :src="records.url+'?x-oss-process=video/snapshot,t_0,m_fast'" alt="" style="width:140px" @click="openVideo(records.url)" @load="loadShow">
|
|
|
</div>
|
|
|
<span slot="ctr" slot-scope="ctr">{{ ctr | toPercentage }}</span>
|
|
|
<span
|
|
@@ -287,7 +287,7 @@ let variableCol = [
|
|
|
}
|
|
|
]
|
|
|
let length=0
|
|
|
-
|
|
|
+let show=0
|
|
|
let detailConsum = [
|
|
|
{
|
|
|
title: '客户',
|
|
@@ -350,6 +350,7 @@ let detailConsum = [
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ roleCode: localStorage.getItem('roleCode'),
|
|
|
//下拉选择框的数据
|
|
|
projectArr:[],
|
|
|
selectValue:'',
|
|
@@ -411,7 +412,7 @@ export default {
|
|
|
watch:{
|
|
|
'ipagination.current':function(n,o){
|
|
|
console.log(n,o)
|
|
|
- if(this.appId.length>0){
|
|
|
+ if(this.appId.length>0||this.roleCode=='admin'||this.roleCode=='plane'||this.roleCode=='plan'||this.roleCode=='shot'||this.roleCode=='clip'||this.roleCode=='designTeamLeader'||this.roleCode=='planeLeader'){
|
|
|
this.HttpPost()
|
|
|
}
|
|
|
|
|
@@ -454,7 +455,7 @@ export default {
|
|
|
this.totalSelect = (this.dateRange[1]._d - this.dateRange[0]._d) / (24 * 60 * 60 * 1000) + 1;
|
|
|
this.timedata=[this.dateRange[0]._i,this.dateRange[1]._i]
|
|
|
this.daysFlag = true
|
|
|
- if(this.appId.length>0){
|
|
|
+ if(this.appId.length>0||this.roleCode=='admin'||this.roleCode=='plane'||this.roleCode=='plan'||this.roleCode=='shot'||this.roleCode=='clip'||this.roleCode=='designTeamLeader'||this.roleCode=='planeLeader'){
|
|
|
this.HttpPost();
|
|
|
}else{
|
|
|
this.$message.error('请选择项目')
|
|
@@ -467,6 +468,7 @@ export default {
|
|
|
HttpPost(){
|
|
|
this.loading=true;
|
|
|
this.date=[];
|
|
|
+ show = 0
|
|
|
postAction('/toutiao/videoReportDaily/bytedanceVideoInfoListMonth', {
|
|
|
startDate: this.timedata[0],
|
|
|
endDate: this.timedata[1],
|
|
@@ -494,7 +496,7 @@ export default {
|
|
|
},
|
|
|
//查询按钮
|
|
|
searchRes() {
|
|
|
- if(this.appId.length>0){
|
|
|
+ if(this.appId.length>0||this.roleCode=='admin'||this.roleCode=='plane'||this.roleCode=='plan'||this.roleCode=='shot'||this.roleCode=='clip'||this.roleCode=='designTeamLeader'||this.roleCode=='planeLeader'){
|
|
|
this.HttpPost();
|
|
|
}else{
|
|
|
this.$message.error('请选择项目')
|
|
@@ -568,7 +570,14 @@ export default {
|
|
|
this.scrollX = 0
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ loadShow(){
|
|
|
+ show++
|
|
|
+ if(this.data.length>0){
|
|
|
+ if(show == (this.data.length*2)){
|
|
|
+ this.data = [...this.data]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//弹出框确定
|
|
|
handleOk(e) {
|
|
|
this.loading = false
|
|
@@ -756,6 +765,11 @@ export default {
|
|
|
this.totalSelect = (this.dateRange[1]._d - this.dateRange[0]._d) / (24 * 60 * 60 * 1000) + 1;
|
|
|
this.timedata=[this.dateRange[0]._i,this.dateRange[1]._i]
|
|
|
this.daysFlag = true
|
|
|
+ if(this.appId.length>0||this.roleCode=='admin'||this.roleCode=='plane'||this.roleCode=='plan'||this.roleCode=='shot'||this.roleCode=='clip'||this.roleCode=='designTeamLeader'||this.roleCode=='planeLeader'){
|
|
|
+ this.HttpPost();
|
|
|
+ }else{
|
|
|
+ this.$message.error('请选择项目')
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
}
|