|
@@ -69,11 +69,15 @@
|
|
<a-switch v-model="record.showSwich" @change="onChangeSwitch(record)" />
|
|
<a-switch v-model="record.showSwich" @change="onChangeSwitch(record)" />
|
|
</span>
|
|
</span>
|
|
<span slot="actionTwo" slot-scope="text, record">
|
|
<span slot="actionTwo" slot-scope="text, record">
|
|
- <a @click="editOriginality(record)">编辑</a>
|
|
|
|
|
|
+ <a @click="editOriginality(record)" :disabled="record.creativeMaterialType+''=='4'">编辑</a>
|
|
</span>
|
|
</span>
|
|
<span slot="status" slot-scope="text">{{ text | status }}</span>
|
|
<span slot="status" slot-scope="text">{{ text | status }}</span>
|
|
<span slot="putStatus" slot-scope="text">{{ text | putStatus }}</span>
|
|
<span slot="putStatus" slot-scope="text">{{ text | putStatus }}</span>
|
|
- <img slot="coverUrl" slot-scope="text" :src="text" alt="" style="width: 100px" />
|
|
|
|
|
|
+ <div slot="coverUrl" slot-scope="text,record">
|
|
|
|
+ <img v-if="record.creativeMaterialType+''=='4'" :src="JSON.parse(record.materialUrl)[0]" alt="" style="width: 100px" />
|
|
|
|
+ <img v-else :src="text" alt="" style="width: 100px" />
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<span slot="captions" slot-scope="text">
|
|
<span slot="captions" slot-scope="text">
|
|
<span v-for="(item, index) of JSON.parse(text)" :key="index">{{ item }}</span>
|
|
<span v-for="(item, index) of JSON.parse(text)" :key="index">{{ item }}</span>
|
|
</span>
|
|
</span>
|
|
@@ -427,33 +431,38 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
editOriginality(item) {
|
|
editOriginality(item) {
|
|
this.creativeId = item.creativeId
|
|
this.creativeId = item.creativeId
|
|
|
|
+ if (item.creativeMaterialType + '' == '4') {
|
|
|
|
+ this.image.coverUrl = JSON.parse(item.materialUrl)
|
|
|
|
|
|
- getAction('/kuaishou/batch/getActionBarText', {
|
|
|
|
- campaignId: localStorage.getItem('campaignId'),
|
|
|
|
- }).then((res) => {
|
|
|
|
- if (res.success) {
|
|
|
|
- this.appList = res.result
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- getAction('/kuaishou/batch/getVideoDetail', {
|
|
|
|
- photoId: item.photoId,
|
|
|
|
- }).then((res) => {
|
|
|
|
- if (res.success) {
|
|
|
|
- console.log(res)
|
|
|
|
- this.video.url = res.result.url
|
|
|
|
- this.video.photoId = res.result.photoId
|
|
|
|
|
|
+ this.visible = true
|
|
|
|
+ } else {
|
|
|
|
+ getAction('/kuaishou/batch/getActionBarText', {
|
|
|
|
+ campaignId: localStorage.getItem('campaignId'),
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.appList = res.result
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ getAction('/kuaishou/batch/getVideoDetail', {
|
|
|
|
+ photoId: item.photoId,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ console.log(res)
|
|
|
|
+ this.video.url = res.result.url
|
|
|
|
+ this.video.photoId = res.result.photoId
|
|
|
|
|
|
- this.image.coverUrl = item.coverUrl
|
|
|
|
- this.image.imageToken = item.imageToken
|
|
|
|
|
|
+ this.image.coverUrl = item.coverUrl
|
|
|
|
+ this.image.imageToken = item.imageToken
|
|
|
|
|
|
- this.visible = true
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.form.setFieldsValue(
|
|
|
|
- pick(item, ['clickTrackUrl', 'actionBarText', 'creativeName', 'description', 'creativeMaterialType'])
|
|
|
|
- )
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.visible = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.form.setFieldsValue(
|
|
|
|
+ pick(item, ['clickTrackUrl', 'actionBarText', 'creativeName', 'description', 'creativeMaterialType'])
|
|
|
|
+ )
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
handleOk() {
|
|
handleOk() {
|
|
this.handleSubmit()
|
|
this.handleSubmit()
|