|
@@ -41,13 +41,13 @@
|
|
<a-select-option value=" " >
|
|
<a-select-option value=" " >
|
|
不限
|
|
不限
|
|
</a-select-option>
|
|
</a-select-option>
|
|
- <a-select-option value="CAMPAIGN_STATUS_ENABLE" >
|
|
|
|
|
|
+ <a-select-option value="ENABLE" >
|
|
启用
|
|
启用
|
|
</a-select-option>
|
|
</a-select-option>
|
|
- <a-select-option value="CAMPAIGN_STATUS_DISABLE" >
|
|
|
|
|
|
+ <a-select-option value="DISABLE" >
|
|
暂停
|
|
暂停
|
|
</a-select-option>
|
|
</a-select-option>
|
|
- <a-select-option value="CAMPAIGN_STATUS_DELETE">
|
|
|
|
|
|
+ <a-select-option value="DELETE">
|
|
删除
|
|
删除
|
|
</a-select-option>
|
|
</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
@@ -146,13 +146,13 @@
|
|
<editableCell :text="text" slotName='bid' @change="onCellChange(record.key, 'bid', $event)" />
|
|
<editableCell :text="text" slotName='bid' @change="onCellChange(record.key, 'bid', $event)" />
|
|
</span>
|
|
</span>
|
|
<span slot="campaignStatus" 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.stop="switchChange(text,record)"/>
|
|
</span>
|
|
</span>
|
|
<span slot="createStatus" slot-scope="text,record">
|
|
<span slot="createStatus" slot-scope="text,record">
|
|
- <a-switch size="default" :checked=text @change="switchChange(text,record)"/>
|
|
|
|
|
|
+ <a-switch size="default" :checked=text @change.stop="switchChange(text,record)"/>
|
|
</span>
|
|
</span>
|
|
<span slot="status" slot-scope="text,record">
|
|
<span slot="status" slot-scope="text,record">
|
|
- <a-switch size="default" :checked=text @change="switchChange(text,record)"/>
|
|
|
|
|
|
+ <a-switch size="default" :checked=text @change.stop="switchChange(text,record)"/>
|
|
</span>
|
|
</span>
|
|
<!-- <span slot="options" slot-scope="record">
|
|
<!-- <span slot="options" slot-scope="record">
|
|
<a href="javascript:;" style="margin-right:10px">编辑</a>
|
|
<a href="javascript:;" style="margin-right:10px">编辑</a>
|
|
@@ -455,8 +455,8 @@ const ideaColumns = [
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '账户',
|
|
title: '账户',
|
|
- dataIndex: 'accountName',
|
|
|
|
- key: 'promotionPurpose',
|
|
|
|
|
|
+ dataIndex: 'accountId_dictText',
|
|
|
|
+ key: 'accountId_dictText',
|
|
align: 'center',
|
|
align: 'center',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -568,6 +568,10 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 点击跳转
|
|
|
|
+ goNextPage(){
|
|
|
|
+
|
|
|
|
+ },
|
|
// table里的函数
|
|
// table里的函数
|
|
|
|
|
|
// table里的函数在上
|
|
// table里的函数在上
|
|
@@ -609,7 +613,6 @@ export default {
|
|
if(this.accountID){
|
|
if(this.accountID){
|
|
this.tabkey=key;
|
|
this.tabkey=key;
|
|
this.loading=true
|
|
this.loading=true
|
|
- this.columns=[];
|
|
|
|
if(key=='group'){
|
|
if(key=='group'){
|
|
let params = {};
|
|
let params = {};
|
|
this.refreshCampaignList({
|
|
this.refreshCampaignList({
|
|
@@ -632,7 +635,14 @@ export default {
|
|
|
|
|
|
}else if(key=='idea'){
|
|
}else if(key=='idea'){
|
|
let params = {};
|
|
let params = {};
|
|
- this.refreshCreativeList();
|
|
|
|
|
|
+ this.refreshCreativeList({
|
|
|
|
+ accountId:this.accountID,
|
|
|
|
+ name:this.optionId,
|
|
|
|
+ status:this.statusValue,
|
|
|
|
+ startDate:this.dateString[0],
|
|
|
|
+ endDate:this.dateString[1],
|
|
|
|
+ pageNo:this.ipagination.current
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -760,33 +770,8 @@ export default {
|
|
}else{
|
|
}else{
|
|
recordData.toutiaoStatus='AD_STATUS_DELIVERY_OK'
|
|
recordData.toutiaoStatus='AD_STATUS_DELIVERY_OK'
|
|
}
|
|
}
|
|
- // console.log(recordData)
|
|
|
|
- // postAction('/ctop/byteDanceAdvertisePlan/edit',recordData).then((res)=>{
|
|
|
|
- // console.log(res);
|
|
|
|
- // if(res.success){
|
|
|
|
- // record.status=!text;
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
this.batchEditHttp('status',[recordData])
|
|
this.batchEditHttp('status',[recordData])
|
|
- // postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
|
|
|
|
- // console.log(res);
|
|
|
|
- // if(res.success){
|
|
|
|
- // if(res.result.length>0){
|
|
|
|
- // this.modifyTableData=[]
|
|
|
|
- // this.modifyTableData=res.result
|
|
|
|
- // this.getplanList({
|
|
|
|
- // accountId:this.accountID,
|
|
|
|
- // name:this.optionId,
|
|
|
|
- // status:this.statusValue,
|
|
|
|
- // startDate:this.dateString[0],
|
|
|
|
- // endDate:this.dateString[1],
|
|
|
|
- // pageNo:this.ipagination.current
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // this.optValue=undefined;
|
|
|
|
- // this.selectedRowKeys=[]
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
|
|
+
|
|
}else if(this.tabkey=='idea'){
|
|
}else if(this.tabkey=='idea'){
|
|
let ids=record.id;
|
|
let ids=record.id;
|
|
let status=text?'disable':'enable';
|
|
let status=text?'disable':'enable';
|
|
@@ -806,6 +791,8 @@ export default {
|
|
endDate:this.dateString[1],
|
|
endDate:this.dateString[1],
|
|
pageNo:this.ipagination.current
|
|
pageNo:this.ipagination.current
|
|
})
|
|
})
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(res.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -1078,7 +1065,7 @@ export default {
|
|
const dataSource = [...this.data];
|
|
const dataSource = [...this.data];
|
|
const target = dataSource.find(item => item.key === key);
|
|
const target = dataSource.find(item => item.key === key);
|
|
if (target) {
|
|
if (target) {
|
|
-
|
|
|
|
|
|
+ target[dataIndex] = value;
|
|
console.log(target)
|
|
console.log(target)
|
|
//单独修改预算
|
|
//单独修改预算
|
|
if(this.tabkey=='group'){
|
|
if(this.tabkey=='group'){
|
|
@@ -1090,8 +1077,7 @@ export default {
|
|
}).then((res)=>{
|
|
}).then((res)=>{
|
|
console.log(res);
|
|
console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
- // this.data = dataSource;
|
|
|
|
- target[dataIndex] = value;
|
|
|
|
|
|
+ this.data=dataSource
|
|
this.$message.success({
|
|
this.$message.success({
|
|
content:res.message,
|
|
content:res.message,
|
|
duration:2
|
|
duration:2
|
|
@@ -1101,7 +1087,7 @@ export default {
|
|
content:res.message,
|
|
content:res.message,
|
|
duration:2
|
|
duration:2
|
|
})
|
|
})
|
|
- this.data=[];
|
|
|
|
|
|
+ this.data=[];
|
|
this.refreshCampaignList({
|
|
this.refreshCampaignList({
|
|
accountId:this.accountID,
|
|
accountId:this.accountID,
|
|
name:this.optionId,
|
|
name:this.optionId,
|
|
@@ -1135,12 +1121,11 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
- }else if(this.tabkey=='plan'){
|
|
|
|
|
|
+ }else if(this.tabkey=='plan'){
|
|
postAction('/ctop/byteDanceAdvertisePlan/edit',target).then((res)=>{
|
|
postAction('/ctop/byteDanceAdvertisePlan/edit',target).then((res)=>{
|
|
console.log(res);
|
|
console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
- // this.data = dataSource;
|
|
|
|
- target[dataIndex] = value;
|
|
|
|
|
|
+ this.data = dataSource;
|
|
this.$message.success({
|
|
this.$message.success({
|
|
content:'修改成功!',
|
|
content:'修改成功!',
|
|
duration:2
|
|
duration:2
|