|
@@ -298,7 +298,7 @@
|
|
|
<a-form-item
|
|
|
:wrapperCol="{ span: 20 }"
|
|
|
style="text-align: center">
|
|
|
- <a-button htmlType="submit" type="primary">提交</a-button>
|
|
|
+ <a-button htmlType="submit" type="primary" :loading="loading">提交</a-button>
|
|
|
<a-button style="margin-left: 8px">保存</a-button>
|
|
|
</a-form-item>
|
|
|
</a-form>
|
|
@@ -336,6 +336,7 @@
|
|
|
showMode: '2', // 1 轮播 2 优选
|
|
|
bidType: '2',
|
|
|
showBid: true,
|
|
|
+ loading: false,
|
|
|
bid: 0,// bid_type 为 CPC/eCPC 出价
|
|
|
ocpxActionType: '2',// 2行为数 180 激活数
|
|
|
showOcpxActionType: false,
|
|
@@ -415,7 +416,7 @@
|
|
|
this.showOcpxActionType = true;
|
|
|
this.showCpaBid = true;
|
|
|
|
|
|
- if(this.ocpxActionType == '180' && this.deepConversionTypes.length > 0){
|
|
|
+ if (this.ocpxActionType == '180' && this.deepConversionTypes.length > 0) {
|
|
|
this.showDeepConversionType = true;
|
|
|
this.showDeepConversionBid = true;
|
|
|
|
|
@@ -491,6 +492,7 @@
|
|
|
e.preventDefault()
|
|
|
this.form.validateFields((err, values) => {
|
|
|
if (!err) {
|
|
|
+ this.loading = true;
|
|
|
console.log('Received values of form: ', values);
|
|
|
console.log('预算金额: ', this.dayBudget);
|
|
|
console.log('投放方式: ', this.speed);
|
|
@@ -516,11 +518,6 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
- console.log('资源位置: ', this.sceneId);
|
|
|
- console.log('创意制作防水: ', this.unitType);
|
|
|
- console.log('深度转化目标: ', this.deepConversionType);
|
|
|
- console.log('深度转化目标出价: ', this.deepConversionBid);
|
|
|
- console.log('广告组名称: ', this.unitName);
|
|
|
let params = {};
|
|
|
params.dayBudget = this.dayBudget * 1000;
|
|
|
params.speed = this.speed;
|
|
@@ -560,8 +557,10 @@
|
|
|
postAction(this.url.insertTemplateUrl, params).then((res) => {
|
|
|
console.log(res)
|
|
|
if (res.success) {
|
|
|
+ this.loading = false;
|
|
|
alert("广告组模板创建成功");
|
|
|
} else {
|
|
|
+ this.loading = false;
|
|
|
alert(res.message);
|
|
|
}
|
|
|
});
|