Commit 9ce4fef5 authored by 黄奎's avatar 黄奎

页面修改

parent 99cdc791
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
{{item.GroupName}}</el-tag> {{item.GroupName}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="LookGroupList" label="设为默认" width="300">
<template slot-scope="scope">
<el-switch v-model="scope.row.IsDefault" active-color="#409EFF" :active-value="1" :inactive-value="0"
@change="SetDefault(scope.row)">
</el-switch>
</template>
</el-table-column>
<el-table-column prop="CreateDate" width="200" label="加入时间"></el-table-column> <el-table-column prop="CreateDate" width="200" label="加入时间"></el-table-column>
<el-table-column prop="address" label="操作" fixed="right"> <el-table-column prop="address" label="操作" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -90,7 +97,7 @@ ...@@ -90,7 +97,7 @@
GroupId: 0, GroupId: 0,
GroupName: "", //分组名称 GroupName: "", //分组名称
GroupIdList: [], GroupIdList: [],
IsSpecial: 0, IsDefault: 0,
}, },
IsShowGroup: false, //是否显示用户分组弹窗 IsShowGroup: false, //是否显示用户分组弹窗
groupArray: [], //用户分组列表 groupArray: [], //用户分组列表
...@@ -123,6 +130,21 @@ ...@@ -123,6 +130,21 @@
} }
this.IsShowGroup = true; this.IsShowGroup = true;
}, },
//设置默认分组
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();
}
});
});
},
//保存用户分组信息 //保存用户分组信息
SaveGroup(formName) { SaveGroup(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
......
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