|
@@ -45,7 +45,7 @@
|
|
<creat-application ref="application" />
|
|
<creat-application ref="application" />
|
|
</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 } }" 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' }]">
|
|
v-decorator="['urlType', { rules: [{ required: true, message: '请选择目标应用' }], initialValue: '1' }]">
|
|
<a-radio-button value="1">淘宝商品</a-radio-button>
|
|
<a-radio-button value="1">淘宝商品</a-radio-button>
|
|
@@ -672,18 +672,38 @@
|
|
this.checkedTrue = e.target.checked
|
|
this.checkedTrue = e.target.checked
|
|
},
|
|
},
|
|
addGroup() {
|
|
addGroup() {
|
|
- this.allForm.group.push({
|
|
|
|
- bidType: 10,
|
|
|
|
- bid: '',
|
|
|
|
- cpaBid: '',
|
|
|
|
- showTipCheck: false,
|
|
|
|
- deepConversionBidCheck: false,
|
|
|
|
- unitName: '',
|
|
|
|
- unitNameCheck: false,
|
|
|
|
- deepConversionType: '',
|
|
|
|
- deepConversionBid: '',
|
|
|
|
- ocpxActionType:this.campaignType == '2' && this.allForm.groupTypeData.isActivate == '1' ? 180 : 2,
|
|
|
|
- })
|
|
|
|
|
|
+ if(this.campaignType=='2'||this.campaignType==2){
|
|
|
|
+ if(this.getData('appId')){
|
|
|
|
+ this.allForm.group.push({
|
|
|
|
+ bidType: 10,
|
|
|
|
+ bid: '',
|
|
|
|
+ cpaBid: '',
|
|
|
|
+ showTipCheck: false,
|
|
|
|
+ deepConversionBidCheck: false,
|
|
|
|
+ unitName: '',
|
|
|
|
+ unitNameCheck: false,
|
|
|
|
+ deepConversionType: '',
|
|
|
|
+ deepConversionBid: '',
|
|
|
|
+ ocpxActionType:this.campaignType == '2' && this.allForm.groupTypeData.isActivate == '1' ? 180 : 2,
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error('请选择目标应用之后添加广告组')
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.allForm.group.push({
|
|
|
|
+ bidType: 10,
|
|
|
|
+ bid: '',
|
|
|
|
+ cpaBid: '',
|
|
|
|
+ showTipCheck: false,
|
|
|
|
+ deepConversionBidCheck: false,
|
|
|
|
+ unitName: '',
|
|
|
|
+ unitNameCheck: false,
|
|
|
|
+ deepConversionType: '',
|
|
|
|
+ deepConversionBid: '',
|
|
|
|
+ ocpxActionType:this.campaignType == '2' && this.allForm.groupTypeData.isActivate == '1' ? 180 : 2,
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
resData(index) {
|
|
resData(index) {
|
|
this.allForm.group[index].bid = ''
|
|
this.allForm.group[index].bid = ''
|
|
@@ -974,6 +994,16 @@
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
// this.$refs.population.getAppList(value)
|
|
// this.$refs.population.getAppList(value)
|
|
|
|
+ this.allForm.group = []
|
|
|
|
+ getAction('/kuaishou/batch/getIsActivate', {
|
|
|
|
+ accountId: localStorage.getItem('accountId'),
|
|
|
|
+ appId:this.getData('appId'),
|
|
|
|
+ campaignType:2
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.allForm.groupTypeData = res.result
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
handleChangeMould(value) {
|
|
handleChangeMould(value) {
|
|
if (value) {
|
|
if (value) {
|
|
@@ -1044,7 +1074,19 @@
|
|
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
|
|
- console.log(this.campaignType)
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(this.campaignType!=2){
|
|
|
|
+ getAction('/kuaishou/batch/getIsActivate', {
|
|
|
|
+ accountId: localStorage.getItem('accountId'),
|
|
|
|
+ campaignType:this.campaignType
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.allForm.groupTypeData = res.result
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ // console.log(this.campaignType)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -1062,13 +1104,8 @@
|
|
this.getAppList()
|
|
this.getAppList()
|
|
this.getCampaignList()
|
|
this.getCampaignList()
|
|
this.getMould()
|
|
this.getMould()
|
|
- getAction('/kuaishou/batch/getIsActivate', {
|
|
|
|
- accountId: localStorage.getItem('accountId')
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.success) {
|
|
|
|
- this.allForm.groupTypeData = res.result
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
getAction('/kuaishou/batch/getWhiteList',{
|
|
getAction('/kuaishou/batch/getWhiteList',{
|
|
accountId:localStorage.getItem('accountId')
|
|
accountId:localStorage.getItem('accountId')
|