|
@@ -35,7 +35,7 @@
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</span>
|
|
</span>
|
|
-
|
|
|
|
|
|
+
|
|
<span class="OptinItem">
|
|
<span class="OptinItem">
|
|
<!-- <a-date-picker @change="dateChange" /> -->
|
|
<!-- <a-date-picker @change="dateChange" /> -->
|
|
<a-range-picker v-model="dateValue" :disabled-date="disabledDate" style="width: 250px;" format="YYYY-MM-DD" @change="dateChange" />
|
|
<a-range-picker v-model="dateValue" :disabled-date="disabledDate" style="width: 250px;" format="YYYY-MM-DD" @change="dateChange" />
|
|
@@ -123,7 +123,7 @@
|
|
<span slot="budget" slot-scope="text,record">
|
|
<span slot="budget" slot-scope="text,record">
|
|
<editableCell :text="text" slotName='groupBudget' @change="onCellChange(record.key, 'groupBudget', $event)" />
|
|
<editableCell :text="text" slotName='groupBudget' @change="onCellChange(record.key, 'groupBudget', $event)" />
|
|
</span>
|
|
</span>
|
|
- <span slot="status" slot-scope="text,record">
|
|
|
|
|
|
+ <span slot="campaignStatus" slot-scope="text,record">
|
|
<a-switch size="default" :checked=text @change="switchChange(text,record)"/>
|
|
<a-switch size="default" :checked=text @change="switchChange(text,record)"/>
|
|
</span>
|
|
</span>
|
|
<span slot="options" slot-scope="record">
|
|
<span slot="options" slot-scope="record">
|
|
@@ -242,17 +242,16 @@ let modifyTableCol=[
|
|
const columns = [
|
|
const columns = [
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
- dataIndex: 'status',
|
|
|
|
- key: 'status',
|
|
|
|
|
|
+ dataIndex: 'campaignStatus',
|
|
|
|
+ key: 'campaignStatus',
|
|
align: 'center',
|
|
align: 'center',
|
|
- scopedSlots: { customRender: 'status' }
|
|
|
|
|
|
+ scopedSlots: { customRender: 'campaignStatus' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '广告组名称',
|
|
title: '广告组名称',
|
|
dataIndex: 'name',
|
|
dataIndex: 'name',
|
|
key: 'name',
|
|
key: 'name',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width:450,
|
|
|
|
scopedSlots: { customRender: 'name' }
|
|
scopedSlots: { customRender: 'name' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -280,7 +279,6 @@ const columns = [
|
|
dataIndex: 'budget',
|
|
dataIndex: 'budget',
|
|
key: 'budget',
|
|
key: 'budget',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width:250,
|
|
|
|
scopedSlots: { customRender: 'budget' }
|
|
scopedSlots: { customRender: 'budget' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -381,14 +379,14 @@ const ideaColumns = [
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '创意ID',
|
|
title: '创意ID',
|
|
- dataIndex: 'ideaID',
|
|
|
|
- key: 'ideID',
|
|
|
|
|
|
+ dataIndex: 'id',
|
|
|
|
+ key: 'id',
|
|
align: 'center',
|
|
align: 'center',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '广告创意',
|
|
title: '广告创意',
|
|
- dataIndex: 'ideID',
|
|
|
|
- key: 'ideaID',
|
|
|
|
|
|
+ dataIndex: 'title',
|
|
|
|
+ key: 'title',
|
|
align: 'center',
|
|
align: 'center',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -403,8 +401,6 @@ const ideaColumns = [
|
|
key: 'promotionPurpose',
|
|
key: 'promotionPurpose',
|
|
align: 'center',
|
|
align: 'center',
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
{
|
|
{
|
|
title: '投放时间',
|
|
title: '投放时间',
|
|
dataIndex: 'LaunchTime',
|
|
dataIndex: 'LaunchTime',
|
|
@@ -421,10 +417,10 @@ const ideaColumns = [
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '所属计划',
|
|
title: '所属计划',
|
|
- dataIndex: 'parentPlan',
|
|
|
|
- key: 'parentPlan',
|
|
|
|
|
|
+ dataIndex: 'planId_dictText',
|
|
|
|
+ key: 'planId_dictText',
|
|
align: 'center',
|
|
align: 'center',
|
|
- scopedSlots: { customRender: 'parentPlan' }
|
|
|
|
|
|
+ scopedSlots: { customRender: 'planId_dictText' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '所属广告组',
|
|
title: '所属广告组',
|
|
@@ -436,38 +432,6 @@ const ideaColumns = [
|
|
];
|
|
];
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-let data=[
|
|
|
|
- {
|
|
|
|
- status:true,
|
|
|
|
- campaignName:'有缘有相聚',
|
|
|
|
- advantageID:28856,
|
|
|
|
- promotionPurpose:'-',
|
|
|
|
- groupBudget:12563,
|
|
|
|
- creatTime:'2020-01-03',
|
|
|
|
- key:28856
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- status:false,
|
|
|
|
- campaignName:'有缘有相聚',
|
|
|
|
- advantageID:27856,
|
|
|
|
- promotionPurpose:'-',
|
|
|
|
- groupBudget:'不限',
|
|
|
|
- key:27856,
|
|
|
|
- creatTime:'2020-03-03'
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- status:true,
|
|
|
|
- campaignName:'有缘有相聚',
|
|
|
|
- advantageID:24856,
|
|
|
|
- promotionPurpose:'-',
|
|
|
|
- groupBudget:14563,
|
|
|
|
- creatTime:'2020-04-03',
|
|
|
|
- key:24856,
|
|
|
|
- },
|
|
|
|
-]
|
|
|
|
-
|
|
|
|
-
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
editableCell,
|
|
editableCell,
|
|
@@ -547,12 +511,14 @@ export default {
|
|
console.log(key);
|
|
console.log(key);
|
|
if(key=='plan'){
|
|
if(key=='plan'){
|
|
this.columns=planColumns;
|
|
this.columns=planColumns;
|
|
- let params = {};
|
|
|
|
- this.refreshCampaignList();
|
|
|
|
}else if(key=='group'){
|
|
}else if(key=='group'){
|
|
- this.columns=columns;
|
|
|
|
|
|
+ this.columns=columns;
|
|
|
|
+ let params = {};
|
|
|
|
+ this.refreshCampaignList();
|
|
}else if(key=='idea'){
|
|
}else if(key=='idea'){
|
|
- this.columns=ideaColumns;
|
|
|
|
|
|
+ this.columns=ideaColumns;
|
|
|
|
+ let params = {};
|
|
|
|
+ this.refreshCreativeList();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//跳转到批量页面
|
|
//跳转到批量页面
|
|
@@ -589,7 +555,7 @@ export default {
|
|
pageNo:this.ipagination.current
|
|
pageNo:this.ipagination.current
|
|
})
|
|
})
|
|
// postAction('',{
|
|
// postAction('',{
|
|
-
|
|
|
|
|
|
+
|
|
// }).then((res)=>{
|
|
// }).then((res)=>{
|
|
// console.log(res)
|
|
// console.log(res)
|
|
// })
|
|
// })
|
|
@@ -767,7 +733,17 @@ export default {
|
|
console.log(res.message);
|
|
console.log(res.message);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ refreshCreativeList(params){
|
|
|
|
+ getAction(this.url.creativeList, params).then(res => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.data = res.result.records;
|
|
|
|
+ } else {
|
|
|
|
+ console.log(res.message);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
console.log(this);
|
|
console.log(this);
|