提交 fce142e4 编写于 作者: kai.wang's avatar kai.wang

增加添加机构错误提示

上级 1a29b943
...@@ -603,8 +603,12 @@ export default { ...@@ -603,8 +603,12 @@ export default {
type: this.checked === false ? 0 : 1 type: this.checked === false ? 0 : 1
}; };
moSaveAll(req) moSaveAll(req)
.then(() => { .then(res => {
this.$emit('addOrg') if (res.code == "000000") {
this.$emit('addOrg');
}else {
this.$message(res.message);
}
}) })
.catch(() => { .catch(() => {
this.$message.error('保存失败,请重试'); this.$message.error('保存失败,请重试');
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册