|
@@ -581,18 +581,18 @@ export default {
|
|
rowSelection(){
|
|
rowSelection(){
|
|
return {
|
|
return {
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
- console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
|
|
|
|
|
+ // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
|
this.selectedRowKeys=selectedRowKeys;
|
|
this.selectedRowKeys=selectedRowKeys;
|
|
this.selectedRows=selectedRows;
|
|
this.selectedRows=selectedRows;
|
|
},
|
|
},
|
|
onSelect: (record, selected, selectedRows) => {
|
|
onSelect: (record, selected, selectedRows) => {
|
|
- console.log(record, selected, selectedRows);
|
|
|
|
|
|
+ // console.log(record, selected, selectedRows);
|
|
this.modifyTableData=selectedRows;
|
|
this.modifyTableData=selectedRows;
|
|
|
|
|
|
this.selectedRows=selectedRows;
|
|
this.selectedRows=selectedRows;
|
|
},
|
|
},
|
|
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
onSelectAll: (selected, selectedRows, changeRows) => {
|
|
- console.log(selected, selectedRows, changeRows);
|
|
|
|
|
|
+ // console.log(selected, selectedRows, changeRows);
|
|
this.modifyTableData=selectedRows
|
|
this.modifyTableData=selectedRows
|
|
this.selectedRows=selectedRows;
|
|
this.selectedRows=selectedRows;
|
|
},
|
|
},
|
|
@@ -610,11 +610,11 @@ export default {
|
|
// table里的函数在上
|
|
// table里的函数在上
|
|
|
|
|
|
accountIDChange(val){
|
|
accountIDChange(val){
|
|
- console.log(val);
|
|
|
|
|
|
+ // console.log(val);
|
|
let currentData=this.treeData.filter((item)=>{
|
|
let currentData=this.treeData.filter((item)=>{
|
|
return item.value==val
|
|
return item.value==val
|
|
})
|
|
})
|
|
- console.log(currentData);
|
|
|
|
|
|
+ // console.log(currentData);
|
|
if(currentData.length>0){
|
|
if(currentData.length>0){
|
|
this.accountID=undefined;
|
|
this.accountID=undefined;
|
|
this.openID=val
|
|
this.openID=val
|
|
@@ -624,14 +624,14 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
filterOption(input, option){
|
|
filterOption(input, option){
|
|
- console.log(input, option)
|
|
|
|
|
|
+ // console.log(input, option)
|
|
return (
|
|
return (
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
);
|
|
);
|
|
},
|
|
},
|
|
//tab切换页的函数
|
|
//tab切换页的函数
|
|
callback(key) {
|
|
callback(key) {
|
|
- console.log(key);
|
|
|
|
|
|
+ // console.log(key);
|
|
this.tabkey=key;
|
|
this.tabkey=key;
|
|
|
|
|
|
// this.columns=[];
|
|
// this.columns=[];
|
|
@@ -703,7 +703,7 @@ export default {
|
|
},
|
|
},
|
|
//输入框查询事件
|
|
//输入框查询事件
|
|
onSearch(value){
|
|
onSearch(value){
|
|
- console.log('input--'+value);
|
|
|
|
|
|
+ // console.log('input--'+value);
|
|
},
|
|
},
|
|
//查询按钮事件
|
|
//查询按钮事件
|
|
search(){
|
|
search(){
|
|
@@ -755,7 +755,7 @@ export default {
|
|
},
|
|
},
|
|
//点击分页
|
|
//点击分页
|
|
sort(pagination, filters, sorter, { currentDataSource }){
|
|
sort(pagination, filters, sorter, { currentDataSource }){
|
|
- console.log(pagination, filters, sorter)
|
|
|
|
|
|
+ // console.log(pagination, filters, sorter)
|
|
// if(sorter.order == 'ascend'){
|
|
// if(sorter.order == 'ascend'){
|
|
// this.HttpPost(sorter.columnKey+'+')
|
|
// this.HttpPost(sorter.columnKey+'+')
|
|
// }else if(sorter.order == 'descend'){
|
|
// }else if(sorter.order == 'descend'){
|
|
@@ -771,7 +771,7 @@ export default {
|
|
//状态改变
|
|
//状态改变
|
|
switchChange(text,record){
|
|
switchChange(text,record){
|
|
|
|
|
|
- console.log(text,record);
|
|
|
|
|
|
+ // console.log(text,record);
|
|
let recordData=JSON.parse(JSON.stringify(record))
|
|
let recordData=JSON.parse(JSON.stringify(record))
|
|
|
|
|
|
if(this.tabkey=='group'){
|
|
if(this.tabkey=='group'){
|
|
@@ -782,7 +782,7 @@ export default {
|
|
ids:`${ids}`,
|
|
ids:`${ids}`,
|
|
status:status,
|
|
status:status,
|
|
})).then((res)=>{
|
|
})).then((res)=>{
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
this.data=[];
|
|
this.data=[];
|
|
this.refreshCampaignList({
|
|
this.refreshCampaignList({
|
|
@@ -812,7 +812,7 @@ export default {
|
|
ids:`${ids}`,
|
|
ids:`${ids}`,
|
|
status:status,
|
|
status:status,
|
|
})).then((res)=>{
|
|
})).then((res)=>{
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
this.data=[];
|
|
this.data=[];
|
|
this.refreshCreativeList({
|
|
this.refreshCreativeList({
|
|
@@ -838,7 +838,7 @@ export default {
|
|
},
|
|
},
|
|
//批量操作下的启动 删除 暂停
|
|
//批量操作下的启动 删除 暂停
|
|
optChange(value){
|
|
optChange(value){
|
|
- console.log(value)
|
|
|
|
|
|
+ // console.log(value)
|
|
this.optValue=value;
|
|
this.optValue=value;
|
|
},
|
|
},
|
|
editGroupStatus(url){
|
|
editGroupStatus(url){
|
|
@@ -953,7 +953,7 @@ export default {
|
|
},
|
|
},
|
|
//取消删除
|
|
//取消删除
|
|
cancel(e) {
|
|
cancel(e) {
|
|
- console.log(e);
|
|
|
|
|
|
+ // console.log(e);
|
|
// this.$message.error('删除成功');
|
|
// this.$message.error('删除成功');
|
|
},
|
|
},
|
|
//预算里 取消按钮点击
|
|
//预算里 取消按钮点击
|
|
@@ -968,13 +968,13 @@ export default {
|
|
},
|
|
},
|
|
//单选按钮改变事件
|
|
//单选按钮改变事件
|
|
radioChange(e) {
|
|
radioChange(e) {
|
|
- console.log('radio checked', e.target.value,this.radioValue);
|
|
|
|
|
|
+ // console.log('radio checked', e.target.value,this.radioValue);
|
|
},
|
|
},
|
|
totalbudgetChange(val){
|
|
totalbudgetChange(val){
|
|
- console.log(this.inputValue,'------',val)
|
|
|
|
|
|
+ // console.log(this.inputValue,'------',val)
|
|
},
|
|
},
|
|
budgetChange(e,record){
|
|
budgetChange(e,record){
|
|
- console.log(e.target.value,'------',record);
|
|
|
|
|
|
+ // console.log(e.target.value,'------',record);
|
|
this.xiugaiData.push(JSON.parse(JSON.stringify(record)))
|
|
this.xiugaiData.push(JSON.parse(JSON.stringify(record)))
|
|
if(this.typeValue=='预算'){
|
|
if(this.typeValue=='预算'){
|
|
if(e.target.value ){
|
|
if(e.target.value ){
|
|
@@ -1018,9 +1018,9 @@ export default {
|
|
},
|
|
},
|
|
//批量修改出价和预算的弹出框确定
|
|
//批量修改出价和预算的弹出框确定
|
|
modifyChangeOk(e) {
|
|
modifyChangeOk(e) {
|
|
- console.log(e);
|
|
|
|
|
|
+ // console.log(e);
|
|
this.offerPriceVisiable = false;
|
|
this.offerPriceVisiable = false;
|
|
- console.log(this.inputValue);
|
|
|
|
|
|
+ // console.log(this.inputValue);
|
|
if(this.modifyRulesValue=='separately'){
|
|
if(this.modifyRulesValue=='separately'){
|
|
|
|
|
|
let batchArr=[...this.xiugaiData];
|
|
let batchArr=[...this.xiugaiData];
|
|
@@ -1055,7 +1055,7 @@ export default {
|
|
},
|
|
},
|
|
batchEditHttp(type,params){
|
|
batchEditHttp(type,params){
|
|
postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
|
|
postAction(`/ctop/byteDanceAdvertisePlan/batchEdit/${type}`,params).then((res)=>{
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
if(res.result.length>0){
|
|
if(res.result.length>0){
|
|
this.modifyTableData=[]
|
|
this.modifyTableData=[]
|
|
@@ -1076,7 +1076,7 @@ export default {
|
|
},
|
|
},
|
|
//修改规则的改变
|
|
//修改规则的改变
|
|
modifyRulesChange(e){
|
|
modifyRulesChange(e){
|
|
- console.log(e.target.value)
|
|
|
|
|
|
+ // console.log(e.target.value)
|
|
this.modifyRulesValue=e.target.value
|
|
this.modifyRulesValue=e.target.value
|
|
if(e.target.value=='total'){
|
|
if(e.target.value=='total'){
|
|
this.inputValue=''
|
|
this.inputValue=''
|
|
@@ -1085,10 +1085,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//更改文字提示的父节点
|
|
//更改文字提示的父节点
|
|
- getPopupContainer(){
|
|
|
|
- console.log(this);
|
|
|
|
- return this.$el
|
|
|
|
- },
|
|
|
|
|
|
+ // getPopupContainer(){
|
|
|
|
+ // // console.log(this);
|
|
|
|
+ // return this.$el
|
|
|
|
+ // },
|
|
|
|
|
|
//点击修改广告名
|
|
//点击修改广告名
|
|
// changecampaignName(text,record){
|
|
// changecampaignName(text,record){
|
|
@@ -1096,7 +1096,7 @@ export default {
|
|
// },
|
|
// },
|
|
|
|
|
|
onCellChange(key, dataIndex, value) {
|
|
onCellChange(key, dataIndex, value) {
|
|
- console.log(key, dataIndex, value)
|
|
|
|
|
|
+ // console.log(key, dataIndex, value)
|
|
|
|
|
|
const dataSource = [...this.data];
|
|
const dataSource = [...this.data];
|
|
const target = dataSource.find(item => item.key === key);
|
|
const target = dataSource.find(item => item.key === key);
|
|
@@ -1176,7 +1176,7 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(this.data)
|
|
|
|
|
|
+ // console.log(this.data)
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -1188,12 +1188,12 @@ export default {
|
|
|
|
|
|
copyPlanOk(e) {
|
|
copyPlanOk(e) {
|
|
this.copyPlanVisiable = false;
|
|
this.copyPlanVisiable = false;
|
|
- console.log(this.copyNum,'---',this.copyGroup)
|
|
|
|
|
|
+ // console.log(this.copyNum,'---',this.copyGroup)
|
|
},
|
|
},
|
|
refreshCampaignList(params){
|
|
refreshCampaignList(params){
|
|
// this.loading=true
|
|
// this.loading=true
|
|
getAction(this.url.campaignList, params).then(res => {
|
|
getAction(this.url.campaignList, params).then(res => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.ipagination.total = res.result.total
|
|
this.ipagination.total = res.result.total
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -1204,7 +1204,7 @@ export default {
|
|
this.selectedRows=[];
|
|
this.selectedRows=[];
|
|
this.selectedRowKeys=[];
|
|
this.selectedRowKeys=[];
|
|
} else {
|
|
} else {
|
|
- console.log(res.message);
|
|
|
|
|
|
+ // console.log(res.message);
|
|
this.selectedRows=[];
|
|
this.selectedRows=[];
|
|
this.selectedRowKeys=[];
|
|
this.selectedRowKeys=[];
|
|
}
|
|
}
|
|
@@ -1214,7 +1214,7 @@ export default {
|
|
|
|
|
|
getAction(this.url.planList,params).then((res)=>{
|
|
getAction(this.url.planList,params).then((res)=>{
|
|
this.data=[]
|
|
this.data=[]
|
|
- console.log(res)
|
|
|
|
|
|
+ // console.log(res)
|
|
if(res.success){
|
|
if(res.success){
|
|
|
|
|
|
this.ipagination.total = res.result.total
|
|
this.ipagination.total = res.result.total
|
|
@@ -1224,7 +1224,7 @@ export default {
|
|
})
|
|
})
|
|
|
|
|
|
this.data = res.result.records;
|
|
this.data = res.result.records;
|
|
- console.log(this.data)
|
|
|
|
|
|
+ // console.log(this.data)
|
|
this.selectedRowKeys=[];
|
|
this.selectedRowKeys=[];
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1232,7 +1232,7 @@ export default {
|
|
|
|
|
|
refreshCreativeList(params){
|
|
refreshCreativeList(params){
|
|
getAction(this.url.creativeList, params).then(res => {
|
|
getAction(this.url.creativeList, params).then(res => {
|
|
- console.log(res);
|
|
|
|
|
|
+ // console.log(res);
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.ipagination.total = res.result.total
|
|
this.ipagination.total = res.result.total
|
|
this.loading = false;
|
|
this.loading = false;
|
|
@@ -1242,7 +1242,7 @@ export default {
|
|
this.data = res.result.records;
|
|
this.data = res.result.records;
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- console.log(res.message);
|
|
|
|
|
|
+ // console.log(res.message);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -1282,7 +1282,7 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log(this);
|
|
|
|
|
|
+
|
|
|
|
|
|
// let params = {}
|
|
// let params = {}
|
|
// // this.dateString=[moment().format("YYYY-MM-DD"),moment().format("YYYY-MM-DD")]
|
|
// // this.dateString=[moment().format("YYYY-MM-DD"),moment().format("YYYY-MM-DD")]
|