|
@@ -859,76 +859,113 @@
|
|
@cancel="cancelAll"
|
|
@cancel="cancelAll"
|
|
:width="1000"
|
|
:width="1000"
|
|
>
|
|
>
|
|
- <a-tabs type="card" @change="callback" v-model="active" class="check-video">
|
|
|
|
- <div slot="tabBarExtraContent">
|
|
|
|
- 当前选择数量
|
|
|
|
- {{ sumContent + '/' + (getData('createType')=='0'?getData('createCount'):getData('createCount')*15) }}
|
|
|
|
- <a-button type="primary" @click="tongbu()" :loading="tongbuLoading" style="margin-left:10px">
|
|
|
|
- 刷新素材</a-button
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <a-tab-pane :tab="item.label" v-for="item of tab" :key="item.value">
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
- <a-col :span="9">
|
|
|
|
- <a-form-item label="日期选择" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
- <a-range-picker name="buildTime" v-model="time" />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="9">
|
|
|
|
- <a-form-item label="唯一标识" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
- <a-input placeholder="请输入唯一标识,多个以,隔开" v-model="md5Str"/>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="4">
|
|
|
|
- <a-button style="position: relative;top: 4px;" @click="selectAllVideo">
|
|
|
|
- 全选
|
|
|
|
- </a-button>
|
|
|
|
- <a-button type="primary" style="position: relative;top: 4px;margin-left:5px" @click="searchVideo">
|
|
|
|
- 搜索
|
|
|
|
- </a-button>
|
|
|
|
- </a-col>
|
|
|
|
-
|
|
|
|
- <!-- <a-col :span="12">
|
|
|
|
- <a-form-item label="筛选条件" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
- <a-select v-model="orderBy" style="width: 100%">
|
|
|
|
- <a-select-option value="time"> 按时间排序 </a-select-option>
|
|
|
|
- <a-select-option value="cost"> 按消耗排序</a-select-option>
|
|
|
|
- </a-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col> -->
|
|
|
|
- </a-row>
|
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
+ <a-col :span="8">
|
|
|
|
+ <a-form-item label="类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-radio-group v-model="mediaDimension" style="width: 300px">
|
|
|
|
+ <a-radio-button value="a">按时间查询</a-radio-button>
|
|
|
|
+ <a-radio-button value="b">按消耗查询</a-radio-button>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="8" v-if="mediaDimension == 'a'">
|
|
|
|
+ <a-form-item label="日期选择" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-range-picker name="buildTime" v-model="time" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="8" v-else>
|
|
|
|
+ <a-form-item label="消耗时间" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-select v-model="costType" placeholder="请选择消耗时间" style="width: 100%">
|
|
|
|
+ <a-select-option :value="1">昨天</a-select-option>
|
|
|
|
+ <a-select-option :value="2">近七天</a-select-option>
|
|
|
|
+ <a-select-option :value="3">近14天</a-select-option>
|
|
|
|
+ <a-select-option :value="4">近一个月</a-select-option>
|
|
|
|
+ <a-select-option :value="5">近三个月</a-select-option>
|
|
|
|
+ <a-select-option :value="6">近半年</a-select-option>
|
|
|
|
+ <a-select-option :value="7">近一年</a-select-option>
|
|
|
|
+ <a-select-option :value="8">全部</a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="8">
|
|
|
|
+ <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ 当前选择数量
|
|
|
|
+ {{ sumContent + '/' + (getData('createType')=='0'?getData('createCount'):getData('createCount')*15) }}
|
|
|
|
+ <a-button type="primary" @click="tongbu()" :loading="tongbuLoading" style="margin-left:10px" v-if="mediaDimension == 'a'">
|
|
|
|
+ 刷新素材</a-button>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ </a-row>
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
+ <a-col :span="8">
|
|
|
|
+ <a-form-item label="视频ID" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-input placeholder="请输入视频ID" v-model="photoId"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="8">
|
|
|
|
+ <a-form-item label="视频名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-input placeholder="请输入视频名称" v-model="photoName"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <!-- <a-col :span="8" v-if="mediaDimension == 'a'">
|
|
|
|
+ <a-form-item label="唯一标识" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-input placeholder="请输入唯一标识,多个以,隔开" v-model="md5Str"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col> -->
|
|
|
|
+ <a-col :span="4">
|
|
|
|
+ <a-button style="position: relative;top: 4px;" @click="selectAllVideo">
|
|
|
|
+ 全选
|
|
|
|
+ </a-button>
|
|
|
|
+ <a-button type="primary" style="position: relative;top: 4px;margin-left:5px" @click="searchVideo">
|
|
|
|
+ 搜索
|
|
|
|
+ </a-button>
|
|
|
|
+ </a-col>
|
|
|
|
+
|
|
|
|
+ <!-- <a-col :span="12">
|
|
|
|
+ <a-form-item label="筛选条件" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
|
+ <a-select v-model="orderBy" style="width: 100%">
|
|
|
|
+ <a-select-option value="time"> 按时间排序 </a-select-option>
|
|
|
|
+ <a-select-option value="cost"> 按消耗排序</a-select-option>
|
|
|
|
+ </a-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col> -->
|
|
|
|
+ </a-row>
|
|
|
|
|
|
- <ul v-if="dataSource.length > 0" style="overflow: auto; padding-left: 0">
|
|
|
|
- <a-checkbox-group v-model="checkVideo" style="width: 100%" @change="setData">
|
|
|
|
- <li v-for="(item, index) of dataSource" :key="index" class="chouzhen" style="height: 400px">
|
|
|
|
- <!-- <video class="video" :src="item.url" controls="controls" style="width:100%">
|
|
|
|
- 您的浏览器不支持 video 标签。
|
|
|
|
- </video> -->
|
|
|
|
- <a-checkbox
|
|
|
|
- :value="item.photoId"
|
|
|
|
- style="width: 100%; position: absolute; z-index: 100; right: 0; top: 0"
|
|
|
|
- >
|
|
|
|
- <img :src="item.coverUrl" alt="" style="width: 90%; margin-bottom: 30px" />
|
|
|
|
|
|
+ <ul v-if="dataSource.length > 0" style="overflow: auto; padding-left: 0">
|
|
|
|
+ <a-checkbox-group v-model="checkVideo" style="width: 100%" @change="setData">
|
|
|
|
+ <li v-for="(item, index) of dataSource" :key="index" class="chouzhen" style="height: 400px">
|
|
|
|
+ <!-- <video class="video" :src="item.url" controls="controls" style="width:100%">
|
|
|
|
+ 您的浏览器不支持 video 标签。
|
|
|
|
+ </video> -->
|
|
|
|
+ <a-checkbox
|
|
|
|
+ :value="item.photoId"
|
|
|
|
+ style="width: 100%; position: absolute; z-index: 100; right: 0; top: 0"
|
|
|
|
+ >
|
|
|
|
+ <img :src="item.coverUrl" alt="" style="width: 90%; margin-bottom: 30px" />
|
|
|
|
+ <div>
|
|
<div style="width: 100%; text-align: center">
|
|
<div style="width: 100%; text-align: center">
|
|
- {{ item.statDate ? '时间:' + item.statDate.split(' ')[0] : '消耗:' + item.charge }}
|
|
|
|
|
|
+ {{ item.statDate&&item.channelType == 0 ?
|
|
|
|
+ '内部 ' + item.statDate.split(' ')[0]:item.statDate&&item.channelType == 1 ?
|
|
|
|
+ '素造 ' + item.statDate.split(' ')[0]: item.charge&&item.channelType == 0?
|
|
|
|
+ '内部 ' + item.charge :'素造 ' + item.charge}}
|
|
</div>
|
|
</div>
|
|
- </a-checkbox>
|
|
|
|
- <a @click="matemalVideo(item, index)" style="position: absolute; z-index: 100; right: 56px; bottom: 5px"
|
|
|
|
- >查看视频</a
|
|
|
|
- >
|
|
|
|
- </li>
|
|
|
|
- </a-checkbox-group>
|
|
|
|
- </ul>
|
|
|
|
- <div v-else style="width: 100%; height: 400px; display: flex; justify-content: center; align-items: center">
|
|
|
|
- <img
|
|
|
|
- src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1575627350102&di=02972956f2243933bffc0d85099adbfe&imgtype=jpg&src=http%3A%2F%2Fimg0.imgtn.bdimg.com%2Fit%2Fu%3D1095310825%2C1528244349%26fm%3D214%26gp%3D0.jpg"
|
|
|
|
- alt=""
|
|
|
|
- v-if="!loadingVideoList"
|
|
|
|
- />
|
|
|
|
- <img v-else src="@/views/modules/material/loading.gif" />
|
|
|
|
- </div>
|
|
|
|
- </a-tab-pane>
|
|
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ <a @click="matemalVideo(item, index)" style="position: absolute; z-index: 100; right: 56px; bottom: 5px"
|
|
|
|
+ >查看视频</a
|
|
|
|
+ >
|
|
|
|
+ </li>
|
|
|
|
+ </a-checkbox-group>
|
|
|
|
+ </ul>
|
|
|
|
+ <div v-else style="width: 100%; height: 400px; display: flex; justify-content: center; align-items: center">
|
|
|
|
+ <img
|
|
|
|
+ src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1575627350102&di=02972956f2243933bffc0d85099adbfe&imgtype=jpg&src=http%3A%2F%2Fimg0.imgtn.bdimg.com%2Fit%2Fu%3D1095310825%2C1528244349%26fm%3D214%26gp%3D0.jpg"
|
|
|
|
+ alt=""
|
|
|
|
+ v-if="!loadingVideoList"
|
|
|
|
+ />
|
|
|
|
+ <img v-else src="@/views/modules/material/loading.gif" />
|
|
|
|
+ </div>
|
|
<!-- <a-button slot="tabBarExtraContent" type="primary" @click="tongbu()" :loading="tongbuLoading">
|
|
<!-- <a-button slot="tabBarExtraContent" type="primary" @click="tongbu()" :loading="tongbuLoading">
|
|
刷新素材</a-button
|
|
刷新素材</a-button
|
|
> -->
|
|
> -->
|
|
@@ -1201,6 +1238,9 @@ export default {
|
|
return {
|
|
return {
|
|
showNumber:false,
|
|
showNumber:false,
|
|
md5Str:'',
|
|
md5Str:'',
|
|
|
|
+ photoId:'',
|
|
|
|
+ photoName:'',
|
|
|
|
+ costType: 1,
|
|
uriCheck: false,
|
|
uriCheck: false,
|
|
templateLoading: false,
|
|
templateLoading: false,
|
|
dataOne: [],
|
|
dataOne: [],
|
|
@@ -1256,7 +1296,7 @@ export default {
|
|
},
|
|
},
|
|
ipagination: {
|
|
ipagination: {
|
|
current: 1,
|
|
current: 1,
|
|
- pageSize: 5,
|
|
|
|
|
|
+ pageSize: 10,
|
|
// pageSizeOptions: ['10', '20', '30'],
|
|
// pageSizeOptions: ['10', '20', '30'],
|
|
showTotal: (total, range) => {
|
|
showTotal: (total, range) => {
|
|
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
|
return range[0] + '-' + range[1] + ' 共' + total + '条'
|
|
@@ -1273,6 +1313,7 @@ export default {
|
|
showVideo: true,
|
|
showVideo: true,
|
|
videoList: [],
|
|
videoList: [],
|
|
orderBy: 'time',
|
|
orderBy: 'time',
|
|
|
|
+ mediaDimension: 'a',
|
|
visibleMatemal: false,
|
|
visibleMatemal: false,
|
|
loadingVideoList: false,
|
|
loadingVideoList: false,
|
|
checkVideo: [],
|
|
checkVideo: [],
|
|
@@ -1401,22 +1442,35 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
searchVideo() {
|
|
searchVideo() {
|
|
- var params = {}
|
|
|
|
|
|
+ let url = '/kuaishou/kuaiShouVideoGet/getBatchV2VideoList'
|
|
|
|
+ let params = {}
|
|
|
|
+ // localStorage.getItem('campaignAccountId')
|
|
params.accountId = localStorage.getItem('campaignAccountId')
|
|
params.accountId = localStorage.getItem('campaignAccountId')
|
|
- params.materialType = this.creativeMaterialType
|
|
|
|
params.pageSize = this.ipagination.pageSize
|
|
params.pageSize = this.ipagination.pageSize
|
|
- params.pageNo = 1
|
|
|
|
|
|
+ params.pageNo = this.ipagination.current
|
|
params.status = 0
|
|
params.status = 0
|
|
- params.channelType = this.channelType
|
|
|
|
- params.orderBy = this.orderBy
|
|
|
|
- params.signatures = this.md5Str
|
|
|
|
- if (this.time.length > 0) {
|
|
|
|
- // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
|
|
|
|
- // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
|
|
|
|
- params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
|
- params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
|
|
|
+ params.photoId = this.photoId
|
|
|
|
+ params.photoName = this.photoName
|
|
|
|
+ if(this.mediaDimension == 'a'){
|
|
|
|
+ url = '/kuaishou/kuaiShouVideoGet/getBatchV2VideoList'
|
|
|
|
+ // params.signatures = this.md5Str
|
|
|
|
+ if (this.time.length > 0) {
|
|
|
|
+ // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
|
|
|
|
+ // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
|
|
|
|
+ params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
|
+ params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
|
+ }
|
|
|
|
+ }else if(this.mediaDimension == 'b'){
|
|
|
|
+ url = '/kuaishou/kuaiShouVideoGet/getVideoListByCostType'
|
|
|
|
+ params.costType = this.costType
|
|
}
|
|
}
|
|
- this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
|
|
+ // params.materialType = this.creativeMaterialType
|
|
|
|
+
|
|
|
|
+ // params.channelType = this.channelType
|
|
|
|
+ // params.orderBy = this.orderBy
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ this.showVideoList(url, params)
|
|
},
|
|
},
|
|
tongbu() {
|
|
tongbu() {
|
|
this.tongbuLoading = true
|
|
this.tongbuLoading = true
|
|
@@ -1426,22 +1480,7 @@ export default {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
this.tongbuLoading = false
|
|
this.tongbuLoading = false
|
|
- var params = {}
|
|
|
|
- params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
- params.materialType = this.creativeMaterialType
|
|
|
|
- params.pageSize = this.ipagination.pageSize
|
|
|
|
- params.pageNo = 1
|
|
|
|
- params.status = 0
|
|
|
|
- params.channelType = this.channelType
|
|
|
|
- params.orderBy = this.orderBy
|
|
|
|
- params.signatures = this.md5Str
|
|
|
|
- if (this.time.length > 0) {
|
|
|
|
- // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
|
|
|
|
- // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
|
|
|
|
- params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
|
- params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
|
- }
|
|
|
|
- this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
|
|
+ this.searchVideo()
|
|
} else {
|
|
} else {
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|
|
this.tongbuLoading = false
|
|
this.tongbuLoading = false
|
|
@@ -1753,13 +1792,13 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- for (let i = 0; i < this.checkVideoWai.length; i++) {
|
|
|
|
- for (let j = 0; j < this.checkVideoWai[i].length; j++) {
|
|
|
|
- if (this.checkVideoWai[i][j] == item.photoId) {
|
|
|
|
- this.checkVideoWai[i] = this.checkVideo
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ // for (let i = 0; i < this.checkVideoWai.length; i++) {
|
|
|
|
+ // for (let j = 0; j < this.checkVideoWai[i].length; j++) {
|
|
|
|
+ // if (this.checkVideoWai[i][j] == item.photoId) {
|
|
|
|
+ // this.checkVideoWai[i] = this.checkVideo
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
this.sumContent = this.checkVideo.length
|
|
this.sumContent = this.checkVideo.length
|
|
// var deleteIndexAll = this.checkVideoAll.findIndex((c) => c == item.photoId)
|
|
// var deleteIndexAll = this.checkVideoAll.findIndex((c) => c == item.photoId)
|
|
// this.checkVideoAll.splice(deleteIndexAll, 1)
|
|
// this.checkVideoAll.splice(deleteIndexAll, 1)
|
|
@@ -1789,17 +1828,17 @@ export default {
|
|
this.checkVideo = this.dataSource.map((item) => {
|
|
this.checkVideo = this.dataSource.map((item) => {
|
|
return item.photoId
|
|
return item.photoId
|
|
})
|
|
})
|
|
- if (this.active == 0) {
|
|
|
|
|
|
+ // if (this.active == 0) {
|
|
for (let i = 0; i < this.ipagination.current; i++) {
|
|
for (let i = 0; i < this.ipagination.current; i++) {
|
|
this.checkVideoAll.push([])
|
|
this.checkVideoAll.push([])
|
|
}
|
|
}
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
- } else if (this.active == 1) {
|
|
|
|
- for (let i = 0; i < this.ipagination.current; i++) {
|
|
|
|
- this.checkVideoWai.push([])
|
|
|
|
- }
|
|
|
|
- this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
- }
|
|
|
|
|
|
+ // } else if (this.active == 1) {
|
|
|
|
+ // for (let i = 0; i < this.ipagination.current; i++) {
|
|
|
|
+ // this.checkVideoWai.push([])
|
|
|
|
+ // }
|
|
|
|
+ // this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
+ // }
|
|
var sum = 0
|
|
var sum = 0
|
|
for (let i = 0; i < this.checkVideoAll.length; i++) {
|
|
for (let i = 0; i < this.checkVideoAll.length; i++) {
|
|
sum += this.checkVideoAll[i].length
|
|
sum += this.checkVideoAll[i].length
|
|
@@ -1812,13 +1851,11 @@ export default {
|
|
if (sum > this.getData('createCount')) {
|
|
if (sum > this.getData('createCount')) {
|
|
this.$message.error('最多选择' + this.getData('createCount') + '个素材')
|
|
this.$message.error('最多选择' + this.getData('createCount') + '个素材')
|
|
this.checkVideo = []
|
|
this.checkVideo = []
|
|
- this.sumContent = this.sumContent - 5
|
|
|
|
|
|
+ this.sumContent = this.sumContent - 10
|
|
|
|
|
|
- if (this.active == 0) {
|
|
|
|
|
|
+ // if (this.active == 0) {
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
- } else if (this.active == 1) {
|
|
|
|
- this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (sum > this.getData('createCount') * 15) {
|
|
if (sum > this.getData('createCount') * 15) {
|
|
@@ -1826,26 +1863,26 @@ export default {
|
|
this.checkVideo = []
|
|
this.checkVideo = []
|
|
this.sumContent = this.sumContent - 15
|
|
this.sumContent = this.sumContent - 15
|
|
|
|
|
|
- if (this.active == 0) {
|
|
|
|
|
|
+ // if (this.active == 0) {
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
- } else if (this.active == 1) {
|
|
|
|
- this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
- }
|
|
|
|
|
|
+ // } else if (this.active == 1) {
|
|
|
|
+ // this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
setData(data) {
|
|
setData(data) {
|
|
- if (this.active == 0) {
|
|
|
|
|
|
+ // if (this.active == 0) {
|
|
for (let i = 0; i < this.ipagination.current; i++) {
|
|
for (let i = 0; i < this.ipagination.current; i++) {
|
|
this.checkVideoAll.push([])
|
|
this.checkVideoAll.push([])
|
|
}
|
|
}
|
|
this.checkVideoAll[this.ipagination.current - 1] = data
|
|
this.checkVideoAll[this.ipagination.current - 1] = data
|
|
- } else if (this.active == 1) {
|
|
|
|
- for (let i = 0; i < this.ipagination.current; i++) {
|
|
|
|
- this.checkVideoWai.push([])
|
|
|
|
- }
|
|
|
|
- this.checkVideoWai[this.ipagination.current - 1] = data
|
|
|
|
- }
|
|
|
|
|
|
+ // } else if (this.active == 1) {
|
|
|
|
+ // for (let i = 0; i < this.ipagination.current; i++) {
|
|
|
|
+ // this.checkVideoWai.push([])
|
|
|
|
+ // }
|
|
|
|
+ // this.checkVideoWai[this.ipagination.current - 1] = data
|
|
|
|
+ // }
|
|
|
|
|
|
var sum = 0
|
|
var sum = 0
|
|
for (let i = 0; i < this.checkVideoAll.length; i++) {
|
|
for (let i = 0; i < this.checkVideoAll.length; i++) {
|
|
@@ -1861,22 +1898,22 @@ export default {
|
|
this.$message.error('最多选择' + this.getData('createCount') + '个素材')
|
|
this.$message.error('最多选择' + this.getData('createCount') + '个素材')
|
|
this.checkVideo.pop()
|
|
this.checkVideo.pop()
|
|
this.sumContent--
|
|
this.sumContent--
|
|
- if (this.active == 0) {
|
|
|
|
|
|
+ // if (this.active == 0) {
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
- } else if (this.active == 1) {
|
|
|
|
- this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
- }
|
|
|
|
|
|
+ // } else if (this.active == 1) {
|
|
|
|
+ // this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
if (sum > this.getData('createCount') * 15) {
|
|
if (sum > this.getData('createCount') * 15) {
|
|
this.$message.error('最多选择' + this.getData('createCount') * 15 + '个素材')
|
|
this.$message.error('最多选择' + this.getData('createCount') * 15 + '个素材')
|
|
this.checkVideo.pop()
|
|
this.checkVideo.pop()
|
|
this.sumContent--
|
|
this.sumContent--
|
|
- if (this.active == 0) {
|
|
|
|
|
|
+ // if (this.active == 0) {
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
this.checkVideoAll[this.ipagination.current - 1] = this.checkVideo
|
|
- } else if (this.active == 1) {
|
|
|
|
- this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
- }
|
|
|
|
|
|
+ // } else if (this.active == 1) {
|
|
|
|
+ // this.checkVideoWai[this.ipagination.current - 1] = this.checkVideo
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1888,38 +1925,33 @@ export default {
|
|
this.showVideo = false
|
|
this.showVideo = false
|
|
this.checkVideo = []
|
|
this.checkVideo = []
|
|
}
|
|
}
|
|
- this.active = 0
|
|
|
|
- this.time = []
|
|
|
|
- this.channelType = 0
|
|
|
|
|
|
+ // this.active = 0
|
|
|
|
+ // this.time = []
|
|
|
|
+ // this.channelType = 0
|
|
this.creativeMaterialType = this.getData('creativeMaterialType')
|
|
this.creativeMaterialType = this.getData('creativeMaterialType')
|
|
|
|
+ this.searchVideo()
|
|
|
|
+
|
|
|
|
+ // this.getAction('/kuaishou/kuaiShouVideoGet/getBatchV2VideoList', {accountId:10168379}).then(res=>{
|
|
|
|
+ // console.log(res)
|
|
|
|
+ // })
|
|
|
|
+ // this.getAction('/kuaishou/kuaiShouVideoGet/getVideoListByCostType', {accountId:10168379,costType:1}).then(res=>{
|
|
|
|
+ // console.log(res)
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
getDataSource(page, pageSize) {
|
|
getDataSource(page, pageSize) {
|
|
- if (this.active == 0) {
|
|
|
|
- this.checkVideo = this.checkVideoAll[page - 1]
|
|
|
|
- } else if (this.active == 1) {
|
|
|
|
- this.checkVideo = this.checkVideoWai[page - 1]
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
this.ipagination.current = page
|
|
this.ipagination.current = page
|
|
- var params = {}
|
|
|
|
- params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
- params.materialType = this.creativeMaterialType
|
|
|
|
- params.pageSize = this.ipagination.pageSize
|
|
|
|
- params.pageNo = page
|
|
|
|
- params.channelType = this.channelType
|
|
|
|
- params.status = 0
|
|
|
|
- params.orderBy = this.orderBy
|
|
|
|
- params.signatures = this.md5Str
|
|
|
|
- if (this.time.length > 0) {
|
|
|
|
- // params.startDate = moment(this.time[0]).format('YYYY-MM-DD')
|
|
|
|
- // params.endDate = moment(this.time[1]).format('YYYY-MM-DD')
|
|
|
|
- params.startDate = moment(this.time[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
|
- params.endDate = moment(this.time[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
|
- }
|
|
|
|
- this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
|
|
+ this.searchVideo()
|
|
},
|
|
},
|
|
cancelAll() {
|
|
cancelAll() {
|
|
// this.checkVideoAll = []
|
|
// this.checkVideoAll = []
|
|
// this.checkVideoWei = []
|
|
// this.checkVideoWei = []
|
|
|
|
+ this.ipagination.current = 1
|
|
|
|
+ this.mediaDimension = 'a'
|
|
|
|
+ this.time = []
|
|
|
|
+ this.costType = 1
|
|
|
|
+ this.photoId = ''
|
|
|
|
+ this.photoName = ''
|
|
this.visibleMatemal = false
|
|
this.visibleMatemal = false
|
|
this.md5Str = ""
|
|
this.md5Str = ""
|
|
},
|
|
},
|
|
@@ -1933,6 +1965,7 @@ export default {
|
|
if (i == this.checkVideo.length - 1) {
|
|
if (i == this.checkVideo.length - 1) {
|
|
this.showVideo = true
|
|
this.showVideo = true
|
|
this.visibleMatemal = false
|
|
this.visibleMatemal = false
|
|
|
|
+ this.cancelAll()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -2541,32 +2574,33 @@ export default {
|
|
// this.checkVideo = [...new Set(n)]
|
|
// this.checkVideo = [...new Set(n)]
|
|
},
|
|
},
|
|
time(n, o) {
|
|
time(n, o) {
|
|
- if (n.length > 0) {
|
|
|
|
- var params = {}
|
|
|
|
- params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
- params.materialType = this.creativeMaterialType
|
|
|
|
- params.pageSize = this.ipagination.pageSize
|
|
|
|
- params.pageNo = 1
|
|
|
|
- params.status = 0
|
|
|
|
- params.channelType = this.channelType
|
|
|
|
- params.startDate = moment(n[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
|
- params.endDate = moment(n[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
|
- params.orderBy = this.orderBy
|
|
|
|
- params.signatures = this.md5Str
|
|
|
|
- this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
- } else {
|
|
|
|
- var params = {}
|
|
|
|
- params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
- params.materialType = this.creativeMaterialType
|
|
|
|
- params.pageSize = this.ipagination.pageSize
|
|
|
|
- params.pageNo = 1
|
|
|
|
- params.status = 0
|
|
|
|
- params.channelType = this.channelType
|
|
|
|
- params.orderBy = this.orderBy
|
|
|
|
- params.signatures = this.md5Str
|
|
|
|
- this.ipagination.current = 1
|
|
|
|
- this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
- }
|
|
|
|
|
|
+ this.searchVideo()
|
|
|
|
+ // if (n.length > 0) {
|
|
|
|
+ // var params = {}
|
|
|
|
+ // params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
+ // params.materialType = this.creativeMaterialType
|
|
|
|
+ // params.pageSize = this.ipagination.pageSize
|
|
|
|
+ // params.pageNo = 1
|
|
|
|
+ // params.status = 0
|
|
|
|
+ // params.channelType = this.channelType
|
|
|
|
+ // params.startDate = moment(n[0]).format('YYYY-MM-DD') + ' 00:00:00'
|
|
|
|
+ // params.endDate = moment(n[1]).format('YYYY-MM-DD') + ' 23:59:59'
|
|
|
|
+ // params.orderBy = this.orderBy
|
|
|
|
+ // params.signatures = this.md5Str
|
|
|
|
+ // this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
+ // } else {
|
|
|
|
+ // var params = {}
|
|
|
|
+ // params.accountId = localStorage.getItem('campaignAccountId')
|
|
|
|
+ // params.materialType = this.creativeMaterialType
|
|
|
|
+ // params.pageSize = this.ipagination.pageSize
|
|
|
|
+ // params.pageNo = 1
|
|
|
|
+ // params.status = 0
|
|
|
|
+ // params.channelType = this.channelType
|
|
|
|
+ // params.orderBy = this.orderBy
|
|
|
|
+ // params.signatures = this.md5Str
|
|
|
|
+ // this.ipagination.current = 1
|
|
|
|
+ // this.showVideoList('/kuaishou/kuaiShouVideoGet/getVideoList', params)
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
@@ -2584,13 +2618,6 @@ export default {
|
|
this.addGroup()
|
|
this.addGroup()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- this.getAction('/kuaishou/kuaiShouVideoGet/getBatchV2VideoList', {accountId:localStorage.getItem('campaignAccountId')}).then(res=>{
|
|
|
|
- console.log(res)
|
|
|
|
- })
|
|
|
|
- this.getAction('/kuaishou/kuaiShouVideoGet/getVideoListByCostType', {accountId:localStorage.getItem('campaignAccountId'),costType:1}).then(res=>{
|
|
|
|
- console.log(res)
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
getAction('/kuaishou/batch/getWhiteList', {
|
|
getAction('/kuaishou/batch/getWhiteList', {
|
|
accountId: localStorage.getItem('campaignAccountId'),
|
|
accountId: localStorage.getItem('campaignAccountId'),
|
|
}).then((res) => {
|
|
}).then((res) => {
|