|
@@ -1266,9 +1266,16 @@ li.chouzhen.first:before {
|
|
|
"
|
|
|
>
|
|
|
<span style="color: black; margin-right: 20px; font-weight: 700">创意制作</span>
|
|
|
- <span style="margin-right: 20px">创意组数量: 1 组</span>
|
|
|
- <span style="margin-right: 20px">视频数量: 1 个</span>
|
|
|
- <a style="margin-right: 20px">清空</a>
|
|
|
+ <span style="margin-right: 20px">创意组数量: {{ materialInfo.materialList.length }} 组</span>
|
|
|
+ <span style="margin-right: 20px">视频数量: {{ checkVideo.length * materialInfo.coverNumber }} 个</span>
|
|
|
+ <a
|
|
|
+ style="margin-right: 20px"
|
|
|
+ @click="
|
|
|
+ materialInfo.materialList = []
|
|
|
+ checkVideo = []
|
|
|
+ "
|
|
|
+ >清空</a
|
|
|
+ >
|
|
|
<a-button
|
|
|
type="primary"
|
|
|
style="position: absolute; right: 20px; top: 8px"
|
|
@@ -1325,6 +1332,7 @@ li.chouzhen.first:before {
|
|
|
trigger: 'blur',
|
|
|
}"
|
|
|
style="margin-top: 60px"
|
|
|
+ v-if="materialInfo.matchingMethod == 1"
|
|
|
>
|
|
|
<a-textarea
|
|
|
class="rending"
|
|
@@ -1493,6 +1501,20 @@ import Treeselect from '@/views/modules/Statistics/components/Treeselect.vue'
|
|
|
import moment from 'moment'
|
|
|
import selectCheckAll from '@/components/formComponents/toutiaoTime'
|
|
|
import checkBoxGroup from '@/components/formComponents/checkBoxGroup'
|
|
|
+function tqFun(qcArr1) {
|
|
|
+ var tempArr = []
|
|
|
+ function bbFun(qcArr) {
|
|
|
+ for (var i = 0; i < qcArr.length; i++) {
|
|
|
+ if (qcArr[i] instanceof Array) {
|
|
|
+ bbFun(qcArr[i])
|
|
|
+ } else {
|
|
|
+ tempArr.push(qcArr[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return tempArr
|
|
|
+ }
|
|
|
+ return bbFun(qcArr1)
|
|
|
+}
|
|
|
export default {
|
|
|
name: 'GlobalHeader',
|
|
|
components: {
|
|
@@ -1655,10 +1677,10 @@ export default {
|
|
|
groupCreativity: 2, //是否设置组中创意数量 1是,2否
|
|
|
creativityNumber: 1,
|
|
|
materialList: [
|
|
|
- {
|
|
|
- name: '创意组1',
|
|
|
- photoArr: [{ photoId: '', image: {}, creativeName: '', description: '' }],
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // name: '创意组1',
|
|
|
+ // photoArr: [{ photoId: '', image: {}, creativeName: '', description: '' }],
|
|
|
+ // },
|
|
|
],
|
|
|
},
|
|
|
materialRules: {
|
|
@@ -1867,6 +1889,9 @@ export default {
|
|
|
|
|
|
//选择素材相关
|
|
|
handleOkShow() {
|
|
|
+ var dataAll = tqFun(this.checkVideoAll).concat(tqFun(this.checkVideoWai))
|
|
|
+ this.checkVideo = dataAll
|
|
|
+
|
|
|
var arrPhotoId = []
|
|
|
var count = this.materialInfo.groupCreativity == 2 ? 15 : this.materialInfo.creativityNumber
|
|
|
for (let i = 0; i < this.materialInfo.coverNumber; i++) {
|
|
@@ -1905,7 +1930,7 @@ export default {
|
|
|
this.materialInfo.materialList.push({
|
|
|
name: '创意组' + (i + 1),
|
|
|
photoArr: dataArr,
|
|
|
- active:0
|
|
|
+ active: 0,
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -1955,9 +1980,9 @@ export default {
|
|
|
this.checkVideo = []
|
|
|
this.ipagination.current = 1
|
|
|
this.time = []
|
|
|
- if (key == 0) {
|
|
|
+ if (key == 0 && this.checkVideoAll.length > 0) {
|
|
|
this.checkVideo = this.checkVideoAll[this.ipagination.current - 1]
|
|
|
- } else if (key == 1) {
|
|
|
+ } else if (key == 1 && this.checkVideoWai.length > 0) {
|
|
|
this.checkVideo = this.checkVideoWai[this.ipagination.current - 1]
|
|
|
}
|
|
|
},
|