...
|
...
|
@@ -19,11 +19,11 @@ |
|
|
</el-col>
|
|
|
|
|
|
<!--列表-->
|
|
|
<el-table :data="users" highlight-current-row v-loading="listLoading" @selection-change="selsChange" style="width: 100%;">
|
|
|
<el-table :data="users" highlight-current-row border v-loading="listLoading" @selection-change="selsChange" style="width: 100%;">
|
|
|
<el-table-column type="selection" width="55">
|
|
|
</el-table-column>
|
|
|
<el-table-column type="index" width="60">
|
|
|
</el-table-column>
|
|
|
<!--<el-table-column type="index" width="60">-->
|
|
|
<!--</el-table-column>-->
|
|
|
<el-table-column prop="userId" label="ID" width="100" sortable>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="username" label="账号" width="120" sortable>
|
...
|
...
|
@@ -168,7 +168,7 @@ |
|
|
<el-form-item label="账号">
|
|
|
<span>{{roleEditForm.username}}</span>
|
|
|
</el-form-item>
|
|
|
<el-tree :data="roles" :props="treeDefaultProps" show-checkbox highlight-current check-strictly node-key="roleId" ref="tree" @check-change="treeHandleCheckChange">
|
|
|
<el-tree :data="roles" :props="treeDefaultProps" default-expand-all show-checkbox highlight-current check-strictly node-key="roleId" ref="tree" @check-change="treeHandleCheckChange">
|
|
|
</el-tree>
|
|
|
</el-form>
|
|
|
|
...
|
...
|
@@ -467,7 +467,7 @@ |
|
|
this.$confirm('确认提交吗?', '提示', {}).then(() => {
|
|
|
// this.editLoading = true;
|
|
|
let userId = this.roleEditForm.userId;
|
|
|
let roleIds = this.roleIds;
|
|
|
let roleIds = this.$refs.tree.getCheckedKeys();
|
|
|
let para = {userId,roleIds};
|
|
|
setUserRole(para).then((res) => {
|
|
|
if (res.status ===200) {
|
...
|
...
|
|