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

页面修改

parent 6e7b29b8
...@@ -134,16 +134,28 @@ ...@@ -134,16 +134,28 @@
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, "提示", {
that.apipost("/api/User/SetDefaultGroup", { confirmButtonText: "确定",
GroupId: item.GroupId cancelButtonText: "取消",
}, res => { type: "warning"
if (res.data.resultCode == 1) { })
that.Success(res.data.message); .then(() => {
that.getList(); that.apipost("/api/User/SetDefaultGroup", {
GroupId: item.GroupId
}, res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
}
});
})
.catch(() => {
if (item.IsDefault == 1) {
item.IsDefault = 0;
} else {
item.IsDefault = 1;
} }
}); });
});
}, },
//保存用户分组信息 //保存用户分组信息
SaveGroup(formName) { SaveGroup(formName) {
......
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