|
@@ -62,7 +62,7 @@
|
|
</span>
|
|
</span>
|
|
<span class="optionBtn">
|
|
<span class="optionBtn">
|
|
<a-button type='primary' @click="search" class="searchBtn">查询</a-button>
|
|
<a-button type='primary' @click="search" class="searchBtn">查询</a-button>
|
|
- <a-button type='default' @click="reset">重置</a-button>
|
|
|
|
|
|
+ <!-- <a-button type='default' @click="reset">重置</a-button> -->
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="tableArea">
|
|
<div class="tableArea">
|
|
@@ -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.stop="switchChange(text,record)"/>
|
|
|
|
|
|
+ <a-switch size="default" :checked=text @change="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.stop="switchChange(text,record)"/>
|
|
|
|
|
|
+ <a-switch size="default" :checked=text @change="switchChange(text,record)"/>
|
|
</span>
|
|
</span>
|
|
- <span slot="status" slot-scope="text,record">
|
|
|
|
- <a-switch size="default" :checked=text @change.stop="switchChange(text,record)"/>
|
|
|
|
|
|
+ <span slot="planStatus" slot-scope="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">
|
|
<a href="javascript:;" style="margin-right:10px">编辑</a>
|
|
<a href="javascript:;" style="margin-right:10px">编辑</a>
|
|
@@ -342,10 +342,10 @@ const columns = [
|
|
const planColumns = [
|
|
const planColumns = [
|
|
{
|
|
{
|
|
title: '状态',
|
|
title: '状态',
|
|
- dataIndex: 'status',
|
|
|
|
- key: 'status',
|
|
|
|
|
|
+ dataIndex: 'planStatus',
|
|
|
|
+ key: 'planStatus',
|
|
align: 'center',
|
|
align: 'center',
|
|
- scopedSlots: { customRender: 'status' }
|
|
|
|
|
|
+ scopedSlots: { customRender: 'planStatus' }
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
// title: '操作',
|
|
// title: '操作',
|
|
@@ -734,7 +734,6 @@ export default {
|
|
//重置按钮事件
|
|
//重置按钮事件
|
|
reset(){
|
|
reset(){
|
|
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
//状态改变
|
|
//状态改变
|
|
switchChange(text,record){
|
|
switchChange(text,record){
|
|
@@ -821,7 +820,7 @@ export default {
|
|
})
|
|
})
|
|
let status=''
|
|
let status=''
|
|
if(this.optValue=='pause'){
|
|
if(this.optValue=='pause'){
|
|
- status='disabled'
|
|
|
|
|
|
+ status='disable'
|
|
}else if(this.optValue=='open'){
|
|
}else if(this.optValue=='open'){
|
|
status='enable'
|
|
status='enable'
|
|
}else if(this.optValue=='delete'){
|
|
}else if(this.optValue=='delete'){
|
|
@@ -835,25 +834,27 @@ export default {
|
|
console.log(res);
|
|
console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
this.$message.success(res.message)
|
|
this.$message.success(res.message)
|
|
- this.data=[];
|
|
|
|
- this.refreshCampaignList({
|
|
|
|
- accountId:this.accountID,
|
|
|
|
- name:this.optionId,
|
|
|
|
- status:this.statusValue,
|
|
|
|
- startDate:this.dateString[0],
|
|
|
|
- endDate:this.dateString[1],
|
|
|
|
- pageNo:this.ipagination.current
|
|
|
|
- })
|
|
|
|
- this.selectedRows=[];
|
|
|
|
- this.selectedRowKeys=[];
|
|
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(res.message)
|
|
}
|
|
}
|
|
|
|
+ this.data=[];
|
|
|
|
+ this.refreshCampaignList({
|
|
|
|
+ accountId:this.accountID,
|
|
|
|
+ name:this.optionId,
|
|
|
|
+ status:this.statusValue,
|
|
|
|
+ startDate:this.dateString[0],
|
|
|
|
+ endDate:this.dateString[1],
|
|
|
|
+ pageNo:this.ipagination.current
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//批量操作的确定按钮
|
|
//批量操作的确定按钮
|
|
isOkHandle(){
|
|
isOkHandle(){
|
|
this.selectDisable=true;
|
|
this.selectDisable=true;
|
|
|
|
|
|
- if(this.optValue){
|
|
|
|
|
|
+ if(this.optValue&&this.selectedRowKeys.length>0){
|
|
|
|
|
|
if(this.optValue=='pause'){
|
|
if(this.optValue=='pause'){
|
|
if(this.tabkey=='group'){
|
|
if(this.tabkey=='group'){
|
|
@@ -889,9 +890,11 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ this.selectedRows=[];
|
|
|
|
+ this.selectedRowKeys=[];
|
|
|
|
+ this.optValue=undefined;
|
|
}
|
|
}
|
|
- this.selectedRows=[];
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
//确定删除
|
|
//确定删除
|
|
confirm(e) {
|
|
confirm(e) {
|
|
@@ -1078,23 +1081,17 @@ export default {
|
|
console.log(res);
|
|
console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
this.data=dataSource
|
|
this.data=dataSource
|
|
- this.$message.success({
|
|
|
|
- content:res.message,
|
|
|
|
- duration:2
|
|
|
|
- })
|
|
|
|
|
|
+ this.$message.success(res.message)
|
|
}else{
|
|
}else{
|
|
- this.$message.error({
|
|
|
|
- content:res.message,
|
|
|
|
- duration:2
|
|
|
|
- })
|
|
|
|
|
|
+ this.$message.error(res.message)
|
|
this.data=[];
|
|
this.data=[];
|
|
this.refreshCampaignList({
|
|
this.refreshCampaignList({
|
|
- accountId:this.accountID,
|
|
|
|
- name:this.optionId,
|
|
|
|
- status:this.statusValue,
|
|
|
|
- startDate:this.dateString[0],
|
|
|
|
- endDate:this.dateString[1],
|
|
|
|
- pageNo:this.ipagination.current
|
|
|
|
|
|
+ accountId:this.accountID,
|
|
|
|
+ name:this.optionId,
|
|
|
|
+ status:this.statusValue,
|
|
|
|
+ startDate:this.dateString[0],
|
|
|
|
+ endDate:this.dateString[1],
|
|
|
|
+ pageNo:this.ipagination.current
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1126,9 +1123,16 @@ export default {
|
|
console.log(res);
|
|
console.log(res);
|
|
if(res.success){
|
|
if(res.success){
|
|
this.data = dataSource;
|
|
this.data = dataSource;
|
|
- this.$message.success({
|
|
|
|
- content:'修改成功!',
|
|
|
|
- duration:2
|
|
|
|
|
|
+ this.$message.success('修改成功!')
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ this.getplanList({
|
|
|
|
+ accountId:this.accountID,
|
|
|
|
+ name:this.optionId,
|
|
|
|
+ status:this.statusValue,
|
|
|
|
+ startDate:this.dateString[0],
|
|
|
|
+ endDate:this.dateString[1],
|
|
|
|
+ pageNo:this.ipagination.current
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1163,9 +1167,12 @@ export default {
|
|
item.key=item.id
|
|
item.key=item.id
|
|
})
|
|
})
|
|
this.data = res.result.records;
|
|
this.data = res.result.records;
|
|
-
|
|
|
|
|
|
+ this.selectedRows=[];
|
|
|
|
+ this.selectedRowKeys=[];
|
|
} else {
|
|
} else {
|
|
console.log(res.message);
|
|
console.log(res.message);
|
|
|
|
+ this.selectedRows=[];
|
|
|
|
+ this.selectedRowKeys=[];
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|