Commit 19562b44 authored by Mac's avatar Mac

修改样式

parent fda4213a
......@@ -1058,22 +1058,68 @@ export default {
let CustomerId = item.CustomerId.split('|')[0]
if(item.CustomerStatus == 2){
DisabledType =1
this.$confirm("是否加入黑名单?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.apipost(
"app_customer_DisabledCustomer",
{CustomerId:CustomerId,DisabledType:DisabledType},
res => {
if (res.data.resultCode == 1) {
this.$message.success("加入黑名单成功!");
this.getList();
}
},
err => {}
);
})
.catch(() => {
this.$message.info("已取消加入!");
});
}else if(item.CustomerStatus == 4){
DisabledType =2
this.$confirm("是否移除黑名单?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.apipost(
"app_customer_DisabledCustomer",
{CustomerId:CustomerId,DisabledType:DisabledType},
res => {
if (res.data.resultCode == 1) {
this.$message.success("移除黑名单成功!");
this.getList();
}
},
err => {}
);
})
.catch(() => {
this.$message.info("已取消移除!");
});
}
this.apipost(
"app_customer_DisabledCustomer",
{CustomerId:CustomerId,DisabledType:DisabledType},
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.getList()
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
// this.apipost(
// "app_customer_DisabledCustomer",
// {CustomerId:CustomerId,DisabledType:DisabledType},
// res => {
// if (res.data.resultCode == 1) {
// this.$message.success(res.data.message)
// this.getList()
// } else {
// this.$message.error(res.data.message);
// }
// },
// err => {}
// );
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment