|
@@ -1,6 +1,6 @@
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
-.display-none-selset{
|
|
|
|
- display: none!important;
|
|
|
|
|
|
+.display-none-selset {
|
|
|
|
+ display: none !important;
|
|
}
|
|
}
|
|
.chouzhen span {
|
|
.chouzhen span {
|
|
display: inline-block;
|
|
display: inline-block;
|
|
@@ -449,9 +449,23 @@ li.chouzhen.first:before {
|
|
placeholder="按回车生成标签"
|
|
placeholder="按回车生成标签"
|
|
v-decorator="['creativeTag']"
|
|
v-decorator="['creativeTag']"
|
|
dropdownClassName="display-none-selset"
|
|
dropdownClassName="display-none-selset"
|
|
- :token-separators="[',',' ',',']"
|
|
|
|
|
|
+ :token-separators="[',', ' ', ',']"
|
|
>
|
|
>
|
|
</a-select>
|
|
</a-select>
|
|
|
|
+ <a-popconfirm @confirm="getInfo(record)">
|
|
|
|
+ <div slot="title">
|
|
|
|
+ <div>
|
|
|
|
+ 分类名称:
|
|
|
|
+ <a-input placeholder="请输入" v-model="tagName" style="display: inline-block; width: 300px" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <a-button slot="okText" type="primary" :disabled="refuseReason == ''">确定</a-button> -->
|
|
|
|
+ <!-- <a @click="setData(record)">复制</a> -->
|
|
|
|
+ <a style="margin-right: 10px" :disabled="!getData('creativeTag')">收藏</a>
|
|
|
|
+ <!-- @click="collection('creativeTag')" -->
|
|
|
|
+ </a-popconfirm>
|
|
|
|
+
|
|
|
|
+ <a @click="showCunTag('creativeTag')">收藏列表</a>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
|
|
<!-- @change="createChange" -->
|
|
<!-- @change="createChange" -->
|
|
@@ -712,7 +726,10 @@ li.chouzhen.first:before {
|
|
您的浏览器不支持 video 标签。
|
|
您的浏览器不支持 video 标签。
|
|
</video>
|
|
</video>
|
|
</a-modal>
|
|
</a-modal>
|
|
-
|
|
|
|
|
|
+ <a-modal title="收藏标题" v-model="creativeTagVisible" :width="1000" @ok="okTag">
|
|
|
|
+ <el-tree :data="optionsTag" show-checkbox node-key="id" :props="defaultProps" :check-strictly="true" ref="tree">
|
|
|
|
+ </el-tree>
|
|
|
|
+ </a-modal>
|
|
<a-modal :maskClosable="false" title="选择素材" v-model="stickerVisible" @ok="handleOkCover" :width="1000">
|
|
<a-modal :maskClosable="false" title="选择素材" v-model="stickerVisible" @ok="handleOkCover" :width="1000">
|
|
<a-radio-group v-model="stickerStylesValue" class="sticker-styles" v-if="stickerStyles.length > 0">
|
|
<a-radio-group v-model="stickerStylesValue" class="sticker-styles" v-if="stickerStyles.length > 0">
|
|
<a-radio v-for="(item, index) in stickerStyles" :key="index" :value="item.overlay_type">
|
|
<a-radio v-for="(item, index) in stickerStyles" :key="index" :value="item.overlay_type">
|
|
@@ -877,7 +894,7 @@ export default {
|
|
value: '',
|
|
value: '',
|
|
dataOne: [],
|
|
dataOne: [],
|
|
title: [],
|
|
title: [],
|
|
-
|
|
|
|
|
|
+ creativeTagVisible: false,
|
|
tags: [],
|
|
tags: [],
|
|
visibleMatemal: false,
|
|
visibleMatemal: false,
|
|
visibleVideo: false,
|
|
visibleVideo: false,
|
|
@@ -994,9 +1011,38 @@ export default {
|
|
horizontalPhoto: [],
|
|
horizontalPhoto: [],
|
|
creativeMaterialType: '1',
|
|
creativeMaterialType: '1',
|
|
postAdTrue: false,
|
|
postAdTrue: false,
|
|
|
|
+ optionsTag: [],
|
|
|
|
+ defaultProps: {
|
|
|
|
+ children: 'children',
|
|
|
|
+ label: 'label',
|
|
|
|
+ id: 'id',
|
|
|
|
+ },
|
|
|
|
+ tagName: '',
|
|
|
|
+ optionsTag: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getInfo(item) {
|
|
|
|
+ if (this.tagName == '') {
|
|
|
|
+ this.$message.error('请输入分类名称')
|
|
|
|
+ return
|
|
|
|
+ } else {
|
|
|
|
+ let params = {}
|
|
|
|
+ params.tagName = this.tagName
|
|
|
|
+ // params.campaignBudget = this.campaignBudget
|
|
|
|
+ params.tagArray = JSON.stringify(this.getData('creativeTag'))
|
|
|
|
+ params.userId = this.userInfo().id
|
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
|
+ postAction('/tag/kuaiShouCreativeTagCollection/add', params).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.$message.success('添加成功')
|
|
|
|
+ this.tagName = ''
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error(res.message)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
getCoverUrl(index, item, bestIndex) {
|
|
getCoverUrl(index, item, bestIndex) {
|
|
nowIndex = index
|
|
nowIndex = index
|
|
bestIndex = bestIndex
|
|
bestIndex = bestIndex
|
|
@@ -1113,6 +1159,62 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ showCunTag(type) {
|
|
|
|
+ this.creativeTagVisible = true
|
|
|
|
+ var params = {}
|
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
|
+ params.userId = this.userInfo().id
|
|
|
|
+ params.pageSize = 1000
|
|
|
|
+ params.pageNo = 1
|
|
|
|
+
|
|
|
|
+ getAction('/tag/kuaiShouCreativeTagCollection/list', params).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ console.log(res.result)
|
|
|
|
+ this.optionsTag = res.result.records.map((item) => {
|
|
|
|
+ return {
|
|
|
|
+ id: item.id,
|
|
|
|
+ label: item.tagName,
|
|
|
|
+ children: JSON.parse(item.tagArray).map((item) => {
|
|
|
|
+ return {
|
|
|
|
+ id: item,
|
|
|
|
+ label: item,
|
|
|
|
+ disabled: true,
|
|
|
|
+ }
|
|
|
|
+ }),
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ okTag() {
|
|
|
|
+ var data = this.$refs.tree.getCheckedKeys()
|
|
|
|
+ if (data.length > 1) {
|
|
|
|
+ this.$message.error('只能选择一个选项')
|
|
|
|
+ // this.$refs.tree.setCheckedKeys([]);
|
|
|
|
+ } else {
|
|
|
|
+ var params = {}
|
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
|
+ params.userId = this.userInfo().id
|
|
|
|
+ params.pageSize = 1000
|
|
|
|
+ params.pageNo = 1
|
|
|
|
+ params.id = data[0]
|
|
|
|
+
|
|
|
|
+ getAction('/tag/kuaiShouCreativeTagCollection/list', params).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ console.log(res.result)
|
|
|
|
+ this.form.setFieldsValue({
|
|
|
|
+ creativeTag: JSON.parse(res.result.records[0].tagArray).map((item) => {
|
|
|
|
+ return item
|
|
|
|
+ }),
|
|
|
|
+ })
|
|
|
|
+ this.creativeTagVisible = false
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error('选择出错,请稍后选择或自行手填')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
showCunTitle(index, bestIndex) {
|
|
showCunTitle(index, bestIndex) {
|
|
nowIndex = index
|
|
nowIndex = index
|
|
bestIndex = bestIndex
|
|
bestIndex = bestIndex
|
|
@@ -1531,12 +1633,12 @@ export default {
|
|
})
|
|
})
|
|
var params = Object.assign({}, values)
|
|
var params = Object.assign({}, values)
|
|
// var params = {
|
|
// var params = {
|
|
- params.dataJson= allJson.concat(dataAd)
|
|
|
|
- // ...values,
|
|
|
|
- params.creativeCategory = params.creativeCategory?params.creativeCategory.pop():null
|
|
|
|
- params.unitId= this.pansKey
|
|
|
|
- params.accountId= localStorage.getItem('accountId')
|
|
|
|
- params.content= this.content
|
|
|
|
|
|
+ params.dataJson = allJson.concat(dataAd)
|
|
|
|
+ // ...values,
|
|
|
|
+ params.creativeCategory = params.creativeCategory ? params.creativeCategory.pop() : null
|
|
|
|
+ params.unitId = this.pansKey
|
|
|
|
+ params.accountId = localStorage.getItem('accountId')
|
|
|
|
+ params.content = this.content
|
|
// }
|
|
// }
|
|
postAction('/kuaishou/batch/createCreative', params).then((res) => {
|
|
postAction('/kuaishou/batch/createCreative', params).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|