|
@@ -192,7 +192,8 @@
|
|
|
:wrapperCol="{lg: {span: 10}, sm: {span: 17} }">
|
|
|
<a-radio-group v-model="ocpxActionType" @change="showBidType">
|
|
|
<a-radio-button value="2">行为数</a-radio-button>
|
|
|
- <a-radio-button value="180" :disabled="isDisabled">激活数</a-radio-button>
|
|
|
+ <a-radio-button value="180" :disabled="activationDisabled">激活</a-radio-button>
|
|
|
+ <a-radio-button value="53" :disabled="isFormDisabled">表单转化</a-radio-button>
|
|
|
</a-radio-group>
|
|
|
</a-form-item>
|
|
|
|
|
@@ -279,7 +280,8 @@
|
|
|
cpaBid: 0,// bid_type 是 OCPC 时该字段必填
|
|
|
page: 2,// 资源位置
|
|
|
unitName: "_" + moment().format('YYYY-MM-DD_HH:mm'),//广告组名称
|
|
|
- isDisabled: true,
|
|
|
+ activationDisabled: true,
|
|
|
+ isFormDisabled: true,
|
|
|
|
|
|
|
|
|
form: this.$form.createForm(this),
|
|
@@ -302,14 +304,20 @@
|
|
|
params.accountId = this.accountId;
|
|
|
getAction(this.url.getDeepConversionUrl, params).then((res) => {
|
|
|
if (res.success) {
|
|
|
-
|
|
|
- if (res.result) {
|
|
|
- this.isDisabled = false;
|
|
|
+ if (res.result.isActivate == 1) {
|
|
|
+ this.activationDisabled = false;
|
|
|
} else {
|
|
|
- this.isDisabled = true;
|
|
|
+ this.activationDisabled = true;
|
|
|
+ }
|
|
|
+ if (res.result.isFormSubmit == 1) {
|
|
|
+ this.isFormDisabled = false;
|
|
|
+ } else {
|
|
|
+ this.isFormDisabled = true;
|
|
|
}
|
|
|
-
|
|
|
console.log(res.result)
|
|
|
+ } else {
|
|
|
+ this.activationDisabled = true;
|
|
|
+ this.isFormDisabled = true;
|
|
|
}
|
|
|
});
|
|
|
|