|
@@ -174,7 +174,7 @@ li.chouzhen.first:before {
|
|
|
<a-layout>
|
|
|
<a-layout-content style="padding: 10px">
|
|
|
<div :style="{ marginBottom: '16px' }" style="float: right">
|
|
|
- <a-button @click="addCreative(bestIndex)" :disabled="videoCount >= 8 || listCheck">添加创意</a-button>
|
|
|
+ <a-button @click="addCreative(bestIndex)" :disabled="videoCount >= 5 || listCheck">添加创意</a-button>
|
|
|
</div>
|
|
|
<a-row style="margin-top: 50px">
|
|
|
<a-col :span="24" v-for="(item, index) of pane.list" :key="index">
|
|
@@ -332,21 +332,6 @@ li.chouzhen.first:before {
|
|
|
></a-input>
|
|
|
</a-form-item>
|
|
|
<!-- , { validator: handleConfirmValue } -->
|
|
|
- <a-form-item label="监测链接" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
- <a-input
|
|
|
- v-decorator="[
|
|
|
- 'actionbarClickUrl',
|
|
|
- {
|
|
|
- rules: [{ message: '请输入第三方监测链接' }],
|
|
|
- },
|
|
|
- ]"
|
|
|
- placeholder="请输入第三方监测链接"
|
|
|
- ></a-input>
|
|
|
- <a v-if="getData('clickTrackUrl')" @click="clickTrackUrlShow = true" style="margin-right: 10px"
|
|
|
- >收藏监测链接</a
|
|
|
- >
|
|
|
- <a @click="getClickTrackUrlList()">监测链接列表</a>
|
|
|
- </a-form-item>
|
|
|
|
|
|
<a-form-item label="创意标题" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
|
<a-input
|
|
@@ -362,8 +347,9 @@ li.chouzhen.first:before {
|
|
|
</a-form-item>
|
|
|
<checkMatemal ref="check" @showVideo="showData"></checkMatemal>
|
|
|
<a-modal :maskClosable="false" v-model="visible" title="广告创意创建情况">
|
|
|
- <div>
|
|
|
- 创建成功:{{ allForm.success.length }}条
|
|
|
+ <div style="font-size:24px">
|
|
|
+ {{ allForm.success }}
|
|
|
+ <!-- 创建成功:{{ allForm.success.length }}条
|
|
|
<div style="margin-top: 20px">
|
|
|
<p v-for="(item, index) of allForm.success" :key="index">
|
|
|
<span>名称:{{ item.creativeName }}</span>
|
|
@@ -377,8 +363,9 @@ li.chouzhen.first:before {
|
|
|
<br />
|
|
|
<span>错误信息:{{ item.failMessage }}</span>
|
|
|
</p>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
+ <div v-if="allForm.fail">失败原因:{{ allForm.fail }}</div>
|
|
|
<template slot="footer">
|
|
|
<a-button key="back" @click="handleCancel">关闭</a-button>
|
|
|
<a-button key="submit" type="primary" @click="handleOk">返回列表</a-button>
|
|
@@ -393,7 +380,7 @@ li.chouzhen.first:before {
|
|
|
>
|
|
|
<template slot="footer">
|
|
|
<a-button key="back" @click="closeImage">取消</a-button>
|
|
|
- <a-button key="submit" type="primary" @click="handleOkImage" :loading="loadingImage">确定</a-button>
|
|
|
+ <a-button type="primary" @click="handleOkImage" :loading="loadingImage">确定</a-button>
|
|
|
</template>
|
|
|
<a-form-item label class="add-image-material">
|
|
|
<uploadFile
|
|
@@ -434,7 +421,7 @@ li.chouzhen.first:before {
|
|
|
>
|
|
|
<template slot="footer">
|
|
|
<a-button key="back" @click="closeVideo">取消</a-button>
|
|
|
- <a-button key="submit" type="primary" @click="handleOkVideo" :loading="loadingVideo">确定</a-button>
|
|
|
+ <a-button type="primary" @click="handleOkVideo" :loading="loadingVideo">确定</a-button>
|
|
|
</template>
|
|
|
<a-form-item label class="add-image-material">
|
|
|
<uploadFile
|
|
@@ -457,7 +444,7 @@ li.chouzhen.first:before {
|
|
|
<a-modal :maskClosable="false" title="抽帧展示" v-model="chouzhen" :width="1000">
|
|
|
<template slot="footer">
|
|
|
<a-button key="back" @click="chouzhen = false">关闭</a-button>
|
|
|
- <a-button key="submit" type="primary" @click="handleOkChouzhen">确定</a-button>
|
|
|
+ <a-button type="primary" @click="handleOkChouzhen">确定</a-button>
|
|
|
</template>
|
|
|
<!-- <a-button type="primary" @click="onCheckAllChange">全选</a-button> -->
|
|
|
<!-- </a-checkbox> -->
|
|
@@ -612,11 +599,7 @@ li.chouzhen.first:before {
|
|
|
</a-modal>
|
|
|
<a-modal title="监测链接名称" v-model="clickTrackUrlShow">
|
|
|
<template slot="footer">
|
|
|
- <a-button
|
|
|
- key="submit"
|
|
|
- :disabled="trackUrlName == '' && !showTrackUrlNameElse"
|
|
|
- type="primary"
|
|
|
- @click="clickTrackUrlOk"
|
|
|
+ <a-button :disabled="trackUrlName == '' && !showTrackUrlNameElse" type="primary" @click="clickTrackUrlOk"
|
|
|
>确定</a-button
|
|
|
>
|
|
|
</template>
|
|
@@ -766,8 +749,8 @@ export default {
|
|
|
allForm: {
|
|
|
videoList: '',
|
|
|
imageList: [],
|
|
|
- fail: [],
|
|
|
- success: [],
|
|
|
+ fail: null,
|
|
|
+ success: null,
|
|
|
},
|
|
|
form: this.$form.createForm(this),
|
|
|
list: [],
|
|
@@ -1285,22 +1268,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleOk() {
|
|
|
- if (this.allForm.fail.length == 0) {
|
|
|
- this.remove(this.pansKey)
|
|
|
- if (localStorage.getItem('originality')) {
|
|
|
- this.$router.replace({
|
|
|
- path: '/account/originality',
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$router.replace({
|
|
|
- path: '/account/accountIndex',
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- this.visible = false
|
|
|
+ this.remove(this.pansKey)
|
|
|
+ if (localStorage.getItem('originality')) {
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/account/originality',
|
|
|
+ })
|
|
|
} else {
|
|
|
- this.visible = false
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/account/accountIndex',
|
|
|
+ })
|
|
|
}
|
|
|
+ this.visible = false
|
|
|
},
|
|
|
handleCancel(e) {
|
|
|
this.visible = false
|
|
@@ -1401,30 +1379,24 @@ export default {
|
|
|
postAction('/ctop/kuaishouProgramCreative/createProgramCreative', params).then((res) => {
|
|
|
if (res.success) {
|
|
|
this.loading = false
|
|
|
- // this.visible = true
|
|
|
- // this.allForm.fail = res.result.fail
|
|
|
- // this.allForm.success = res.result.success
|
|
|
- if (localStorage.getItem('originality')) {
|
|
|
- this.$router.replace({
|
|
|
- path: '/account/originality',
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$router.replace({
|
|
|
- path: '/account/accountIndex',
|
|
|
- })
|
|
|
- }
|
|
|
+ this.visible = true
|
|
|
+ this.allForm.success = '创建成功'
|
|
|
+ // if (localStorage.getItem('originality')) {
|
|
|
+ // this.$router.replace({
|
|
|
+ // path: '/account/originality',
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // this.$router.replace({
|
|
|
+ // path: '/account/accountIndex',
|
|
|
+ // })
|
|
|
+ // }
|
|
|
} else {
|
|
|
this.loading = false
|
|
|
this.$message.error(res.message)
|
|
|
- if (localStorage.getItem('originality')) {
|
|
|
- this.$router.replace({
|
|
|
- path: '/account/originality',
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$router.replace({
|
|
|
- path: '/account/accountIndex',
|
|
|
- })
|
|
|
- }
|
|
|
+ this.loading = false
|
|
|
+ this.visible = true
|
|
|
+ this.allForm.fail = res.message
|
|
|
+ this.allForm.success = '创建失败'
|
|
|
}
|
|
|
})
|
|
|
}
|