Commit 234b2c96 authored by 黄奎's avatar 黄奎

页面修改

parent 6e7b29b8
...@@ -134,7 +134,12 @@ ...@@ -134,7 +134,12 @@
SetDefault(item) { SetDefault(item) {
let that = this; let that = this;
var tipMsg = "是否设置【" + item.GroupName + "】为默认分组?"; var tipMsg = "是否设置【" + item.GroupName + "】为默认分组?";
that.Confirm(tipMsg, function () { that.$confirm(tipMsg, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
that.apipost("/api/User/SetDefaultGroup", { that.apipost("/api/User/SetDefaultGroup", {
GroupId: item.GroupId GroupId: item.GroupId
}, res => { }, res => {
...@@ -143,6 +148,13 @@ ...@@ -143,6 +148,13 @@
that.getList(); that.getList();
} }
}); });
})
.catch(() => {
if (item.IsDefault == 1) {
item.IsDefault = 0;
} else {
item.IsDefault = 1;
}
}); });
}, },
//保存用户分组信息 //保存用户分组信息
......
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