|
@@ -45,9 +45,9 @@
|
|
<a-form-item label="转化类型" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
<a-form-item label="转化类型" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" v-if="campaignType == '3'">
|
|
:wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" v-if="campaignType == '3'">
|
|
<a-radio-group buttonStyle="solid"
|
|
<a-radio-group buttonStyle="solid"
|
|
- v-decorator="['urlType', { rules: [{ required: true, message: '请选择目标应用' }], initialValue: '1' }]">
|
|
|
|
- <a-radio-button value="1">淘宝商品</a-radio-button>
|
|
|
|
- <a-radio-button value="2">淘客商品</a-radio-button>
|
|
|
|
|
|
+ v-decorator="['urlType', { rules: [{ required: true, message: '请选择目标应用' }], initialValue: 1 }]">
|
|
|
|
+ <a-radio-button :value="1">淘宝商品</a-radio-button>
|
|
|
|
+ <a-radio-button :value="2">淘客商品</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item :label="campaignType == '3' ? ' ' : '链接'" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
<a-form-item :label="campaignType == '3' ? ' ' : '链接'" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
@@ -161,16 +161,16 @@
|
|
<a-form-item label="场景广告位" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
<a-form-item label="场景广告位" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
|
|
:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }">
|
|
<!-- v-decorator="['speed', { initialValue: '1' }]" -->
|
|
<!-- v-decorator="['speed', { initialValue: '1' }]" -->
|
|
- <a-radio-group buttonStyle="solid" v-decorator="['sceneId', { initialValue: '1' }]">
|
|
|
|
- <a-radio-button value="1">优选广告位</a-radio-button>
|
|
|
|
- <a-radio-button value="2">按场景选择广告位</a-radio-button>
|
|
|
|
|
|
+ <a-radio-group buttonStyle="solid" v-decorator="['sceneId', { initialValue: 1 }]">
|
|
|
|
+ <a-radio-button :value="1">优选广告位</a-radio-button>
|
|
|
|
+ <a-radio-button :value="2">按场景选择广告位</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
<!-- getData('speed') == '2' -->
|
|
<!-- getData('speed') == '2' -->
|
|
<br>
|
|
<br>
|
|
|
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
<a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
- :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label" v-if="getData('sceneId') == '2'">
|
|
|
|
|
|
+ :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label" v-if="getData('sceneId') == 2">
|
|
<a-checkbox-group :defaultValue="[7]" v-model="allForm.sceneId">
|
|
<a-checkbox-group :defaultValue="[7]" v-model="allForm.sceneId">
|
|
<a-checkbox :value="7">信息流广告</a-checkbox>
|
|
<a-checkbox :value="7">信息流广告</a-checkbox>
|
|
<a-checkbox :value="6">上下滑大屏广告</a-checkbox>
|
|
<a-checkbox :value="6">上下滑大屏广告</a-checkbox>
|
|
@@ -435,7 +435,7 @@
|
|
this.allForm.group[index].showTipCheck = false
|
|
this.allForm.group[index].showTipCheck = false
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (this.allForm.group[index].cpaBid < 5 || this.allForm.group[index].cpaBid > this.maxBid) {
|
|
|
|
|
|
+ if (this.allForm.group[index].cpaBid < 1 || this.allForm.group[index].cpaBid > this.maxBid) {
|
|
this.allForm.group[index].showTipCheck = true
|
|
this.allForm.group[index].showTipCheck = true
|
|
} else {
|
|
} else {
|
|
this.allForm.group[index].showTipCheck = false
|
|
this.allForm.group[index].showTipCheck = false
|
|
@@ -584,11 +584,10 @@
|
|
}
|
|
}
|
|
// dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
|
|
// dataJson.useAppMarket = dataJson.useAppMarket==0?false:true
|
|
dataJson.dayBudget = dataJson.dayBudget / 1000
|
|
dataJson.dayBudget = dataJson.dayBudget / 1000
|
|
- dataJson.sceneId = JSON.parse(dataJson.sceneId)[0] == '1' ? '1' : '2'
|
|
|
|
|
|
+ dataJson.sceneId = JSON.parse(dataJson.sceneId)[0] == 1 ? 1 : 2
|
|
this.allForm.useAppMarket = dataJson.useAppMarket ? (dataJson.useAppMarket == 0 ? false : true) : false
|
|
this.allForm.useAppMarket = dataJson.useAppMarket ? (dataJson.useAppMarket == 0 ? false : true) : false
|
|
- this.allForm.sceneId = JSON.parse(dataJson.sceneId)[0] == '1' ? [7] : JSON.parse(res.result.baseInfo
|
|
|
|
|
|
+ this.allForm.sceneId = dataJson.sceneId == 1 ? [7] : JSON.parse(res.result.baseInfo
|
|
.sceneId)
|
|
.sceneId)
|
|
- console.log(this.allForm.sceneId)
|
|
|
|
this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
|
|
this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
|
|
this.allForm.time = dataJson.endTime ? '2' : '1'
|
|
this.allForm.time = dataJson.endTime ? '2' : '1'
|
|
this.timeRange = [moment(dataJson.beginTime), moment(dataJson.endTime)]
|
|
this.timeRange = [moment(dataJson.beginTime), moment(dataJson.endTime)]
|
|
@@ -725,7 +724,7 @@
|
|
postAction('/kuaishou/batch/copyUnitUpdate', param).then(res => {
|
|
postAction('/kuaishou/batch/copyUnitUpdate', param).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
if (res.result.failInfo.length > 0) {
|
|
if (res.result.failInfo.length > 0) {
|
|
- this.form.setFieldsValue(pick(param, ['sceneId']))
|
|
|
|
|
|
+ // this.form.setFieldsValue(pick(param, ['sceneId']))
|
|
this.loading = false
|
|
this.loading = false
|
|
this.visibleData = res.result
|
|
this.visibleData = res.result
|
|
this.visibleFail = true
|
|
this.visibleFail = true
|
|
@@ -771,7 +770,7 @@
|
|
postAction('/kuaishou/batch/copyUnitUpdate', params).then(res => {
|
|
postAction('/kuaishou/batch/copyUnitUpdate', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
if (res.result.failInfo.length > 0) {
|
|
if (res.result.failInfo.length > 0) {
|
|
- this.form.setFieldsValue(pick(params, ['sceneId']))
|
|
|
|
|
|
+ // this.form.setFieldsValue(pick(params, ['sceneId']))
|
|
this.loading = false
|
|
this.loading = false
|
|
this.visibleData = res.result
|
|
this.visibleData = res.result
|
|
this.visibleFail = true
|
|
this.visibleFail = true
|
|
@@ -831,7 +830,7 @@
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
},
|
|
},
|
|
prevStep() {
|
|
prevStep() {
|
|
- this.$emit('prevStep', this.campaignId ? this.campaignId : localStorage.getItem('campaignId'))
|
|
|
|
|
|
+ this.$emit('prevStep', this.campaignId ? this.campaignId : localStorage.getItem('advertisingGroupKey'))
|
|
},
|
|
},
|
|
getMould() {
|
|
getMould() {
|
|
let params = {}
|
|
let params = {}
|
|
@@ -863,25 +862,10 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // getPeople(e) {
|
|
|
|
- // console.log(e.target.value)
|
|
|
|
- // if (e.target.value == 3) {
|
|
|
|
- // getAction('/kuaishou/batch/getPopulationList', { accountId: localStorage.getItem('accountId') }).then(res => {
|
|
|
|
- // if (res.success) {
|
|
|
|
- // this.data = res.result.map((item, index) => {
|
|
|
|
- // return {
|
|
|
|
- // ...item,
|
|
|
|
- // key: index
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
getCampaignList() {
|
|
getCampaignList() {
|
|
var params = {}
|
|
var params = {}
|
|
params.accountId = localStorage.getItem('accountId')
|
|
params.accountId = localStorage.getItem('accountId')
|
|
- params.campaignId = this.campaignId ? this.campaignId : localStorage.getItem('campaignId')
|
|
|
|
|
|
+ params.campaignId = this.campaignId ? this.campaignId : localStorage.getItem('advertisingGroupKey')
|
|
getAction('/kuaishou/batch/getCampaignList', params).then(res => {
|
|
getAction('/kuaishou/batch/getCampaignList', params).then(res => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.campaignType = res.result.records[0].campaignType
|
|
this.campaignType = res.result.records[0].campaignType
|