|
@@ -81,16 +81,17 @@
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<div v-if="showDian">
|
|
<div v-if="showDian">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优化目标">
|
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="优化目标">
|
|
- <a-radio-group buttonStyle="solid" v-decorator="['bidType', { initialValue: 2 }]">
|
|
|
|
- <a-radio-button :value="2">点击数</a-radio-button>
|
|
|
|
- <a-radio-button :value="10">转化数</a-radio-button>
|
|
|
|
- </a-radio-group>
|
|
|
|
|
|
+ <a-select v-decorator="['bidType', { initialValue: 2 }]" mode="multiple">
|
|
|
|
+ <a-select-option :value="2">点击数</a-select-option>
|
|
|
|
+ <a-select-option :value="10">OCPM</a-select-option>
|
|
|
|
+ <a-select-option :value="6">OCPC</a-select-option>
|
|
|
|
+ </a-select>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
<a-form-item
|
|
<a-form-item
|
|
label="转化目标"
|
|
label="转化目标"
|
|
:labelCol="labelCol"
|
|
:labelCol="labelCol"
|
|
:wrapperCol="wrapperCol"
|
|
:wrapperCol="wrapperCol"
|
|
- v-show="getFormFieldValue('bidType') == 10"
|
|
|
|
|
|
+ v-show="getFormFieldValue('bidType').indexOf(10) > -1 || getFormFieldValue('bidType').indexOf(6) > -1"
|
|
>
|
|
>
|
|
<a-select v-decorator="['ocpxActionType', { initialValue: 2 }]" mode="multiple">
|
|
<a-select v-decorator="['ocpxActionType', { initialValue: 2 }]" mode="multiple">
|
|
<a-select-option :value="2">行为数</a-select-option>
|
|
<a-select-option :value="2">行为数</a-select-option>
|
|
@@ -243,10 +244,8 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- handleBlur() {
|
|
|
|
- },
|
|
|
|
- handleFocus() {
|
|
|
|
- },
|
|
|
|
|
|
+ handleBlur() {},
|
|
|
|
+ handleFocus() {},
|
|
filterOption(input, option) {
|
|
filterOption(input, option) {
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
},
|
|
},
|
|
@@ -310,7 +309,12 @@ export default {
|
|
this.model.maxBid = this.model.maxBid ? this.model.maxBid / 1000 : 0
|
|
this.model.maxBid = this.model.maxBid ? this.model.maxBid / 1000 : 0
|
|
this.model.maxDeepCpaBid = this.model.maxDeepCpaBid ? this.model.maxDeepCpaBid / 1000 : 0
|
|
this.model.maxDeepCpaBid = this.model.maxDeepCpaBid ? this.model.maxDeepCpaBid / 1000 : 0
|
|
if (record.mediaId == '2' || record.mediaId == '4') {
|
|
if (record.mediaId == '2' || record.mediaId == '4') {
|
|
- this.model.bidType = this.model.bidType == null ? 2 : this.model.bidType
|
|
|
|
|
|
+ this.model.bidType =
|
|
|
|
+ this.model.bidType == null
|
|
|
|
+ ? [2]
|
|
|
|
+ : typeof JSON.parse(this.model.bidType) == Array
|
|
|
|
+ ? JSON.parse(this.model.bidType)
|
|
|
|
+ : [this.model.bidType]
|
|
this.model.ocpxActionType = this.model.ocpxActionType == null ? [2] : JSON.parse(this.model.ocpxActionType)
|
|
this.model.ocpxActionType = this.model.ocpxActionType == null ? [2] : JSON.parse(this.model.ocpxActionType)
|
|
}
|
|
}
|
|
this.visible = true
|
|
this.visible = true
|
|
@@ -363,7 +367,6 @@ export default {
|
|
// this.resId = record.responsibleId
|
|
// this.resId = record.responsibleId
|
|
// this.shejiId = record.designResponsibleId
|
|
// this.shejiId = record.designResponsibleId
|
|
getAction('/sys/user/getAllUserListV1', '').then((res) => {
|
|
getAction('/sys/user/getAllUserListV1', '').then((res) => {
|
|
-
|
|
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.options = res.result
|
|
this.options = res.result
|
|
}
|
|
}
|
|
@@ -407,7 +410,9 @@ export default {
|
|
formData.designResponsibleId = values.designResponsibleId
|
|
formData.designResponsibleId = values.designResponsibleId
|
|
formData.userId = formData.userId ? formData.userId : that.userInfo().id
|
|
formData.userId = formData.userId ? formData.userId : that.userInfo().id
|
|
if (this.showDian) {
|
|
if (this.showDian) {
|
|
- formData.ocpxActionType = formData.bidType == 2 ? JSON.stringify([0]) : JSON.stringify(formData.ocpxActionType)
|
|
|
|
|
|
+ formData.ocpxActionType =
|
|
|
|
+ formData.bidType == 2 ? JSON.stringify([0]) : JSON.stringify(formData.ocpxActionType)
|
|
|
|
+ formData.bidType = JSON.stringify(formData.bidType)
|
|
}
|
|
}
|
|
httpAction(httpurl, formData, method)
|
|
httpAction(httpurl, formData, method)
|
|
.then((res) => {
|
|
.then((res) => {
|