|
@@ -501,10 +501,13 @@
|
|
|
}
|
|
|
// console.log(this.model.groupName)
|
|
|
httpAction(httpurl,this.model,method).then((res)=>{
|
|
|
- if(res.success){
|
|
|
+ if(res.code === 200){
|
|
|
this.$message.success(res.message);
|
|
|
this.$emit('ok');
|
|
|
- }else{
|
|
|
+ }else if(res.code === 400){
|
|
|
+ this.$message.warning(res.message);
|
|
|
+ this.$emit('ok');
|
|
|
+ } else {
|
|
|
this.$message.warning(res.message);
|
|
|
}
|
|
|
}).finally(() => {
|