|
@@ -545,13 +545,15 @@ export default {
|
|
|
},
|
|
|
|
|
|
batchEditStatus(params){
|
|
|
+ this.loading=true;
|
|
|
postAction('/adlab/ctopAdlabProjectDetail/edit',params).then(res=>{
|
|
|
console.log(res)
|
|
|
if(res.success){
|
|
|
this.$message.success('修改成功');
|
|
|
this.tableListHttp();
|
|
|
}else{
|
|
|
- this.$message.success('修改失败')
|
|
|
+ this.$message.success('修改失败');
|
|
|
+ this.loading=false;
|
|
|
|
|
|
}
|
|
|
this.selectedRows=[];
|
|
@@ -607,18 +609,9 @@ export default {
|
|
|
userId:this.userInfo.value.id,
|
|
|
accountId:records.accountId,
|
|
|
groupId:records.id,
|
|
|
- optStatus:records.optStatus=="DISABLED"?'ENABLED':'DISABLED'
|
|
|
+ optStatus:'DELETED'
|
|
|
})
|
|
|
- // postAction('/adlab/ctopAdlabProjectDetail/edit',params).then(res=>{
|
|
|
- // console.log(res)
|
|
|
- // record.spin=false;
|
|
|
- // if(res.success){
|
|
|
- // this.$message.success('修改成功');
|
|
|
- // record.checkedStatus=!record.checkedStatus
|
|
|
- // }else{
|
|
|
- // this.$message.success('修改失败')
|
|
|
- // }
|
|
|
- // })
|
|
|
+
|
|
|
this.batchEditStatus(params)
|
|
|
|
|
|
|