|
@@ -629,7 +629,7 @@ export default {
|
|
|
|
|
|
}else if(key=='idea'){
|
|
|
let params = {};
|
|
|
- // this.refreshCreativeList();
|
|
|
+ this.refreshCreativeList();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -687,6 +687,14 @@ export default {
|
|
|
})
|
|
|
}else if(this.tabkey=='idea'){
|
|
|
this.columns=ideaColumns;
|
|
|
+ this.refreshCreativeList({
|
|
|
+ accountId:this.accountID,
|
|
|
+ name:this.optionId,
|
|
|
+ status:this.statusValue,
|
|
|
+ startDate:this.dateString[0],
|
|
|
+ endDate:this.dateString[1],
|
|
|
+ pageNo:this.ipagination.current
|
|
|
+ })
|
|
|
}
|
|
|
}else{
|
|
|
this.$message.error('请选择账户后重试')
|
|
@@ -813,6 +821,7 @@ export default {
|
|
|
//批量操作的确定按钮
|
|
|
isOkHandle(){
|
|
|
this.selectDisable=true;
|
|
|
+ console.log(0)
|
|
|
if(this.optValue){
|
|
|
if(this.optValue=='pause'){
|
|
|
if(this.tabkey=='group'){
|
|
@@ -820,11 +829,13 @@ export default {
|
|
|
this.editGroupStatus()
|
|
|
|
|
|
}else if(this.tabkey=='plan'){
|
|
|
+ console.log(0)
|
|
|
if(this.selectedRowKeys.length>0){
|
|
|
this.selectedRows.forEach((item)=>{
|
|
|
item.toutiaoStatus='AD_STATUS_DISABLE'
|
|
|
})
|
|
|
}
|
|
|
+ console.log(0)
|
|
|
this.batchEditHttp('status',this.selectedRows)
|
|
|
}else if(this.tabkey=='idea'){
|
|
|
|
|
@@ -972,14 +983,11 @@ export default {
|
|
|
|
|
|
this.modifyTableData=[];
|
|
|
this.selectedRowKeys=[]
|
|
|
- // console.log(this.rowSelection)
|
|
|
- // this.rowSelection.onChange('',[]);
|
|
|
- // this.rowSelection.onSelect({},false,[]);
|
|
|
- // this.rowSelection.onSelectAll([],[],[]);
|
|
|
+
|
|
|
|
|
|
},
|
|
|
batchEditHttp(type,params){
|
|
|
- postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/"${type}"`,params).then((res)=>{
|
|
|
+ postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
|
|
|
console.log(res);
|
|
|
if(res.success){
|
|
|
if(res.result.length>0){
|
|
@@ -994,6 +1002,8 @@ export default {
|
|
|
pageNo:this.ipagination.current
|
|
|
})
|
|
|
}
|
|
|
+ this.optValue=undefined;
|
|
|
+ this.selectedRowKeys=[]
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1149,7 +1159,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- refreshCreativeList(){
|
|
|
+ refreshCreativeList(params){
|
|
|
getAction(this.url.creativeList, params).then(res => {
|
|
|
console.log(res);
|
|
|
if (res.success) {
|
|
@@ -1161,7 +1171,7 @@ export default {
|
|
|
this.data = res.result.records;
|
|
|
|
|
|
} else {
|
|
|
- console.log(res.message);
|
|
|
+ console.log(res.message);
|
|
|
}
|
|
|
})
|
|
|
},
|