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

页面修改

parent 6e7b29b8
......@@ -134,16 +134,28 @@
SetDefault(item) {
let that = this;
var tipMsg = "是否设置【" + item.GroupName + "】为默认分组?";
that.Confirm(tipMsg, function () {
that.apipost("/api/User/SetDefaultGroup", {
GroupId: item.GroupId
}, res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getList();
that.$confirm(tipMsg, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
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) {
......
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