|
|
@@ -24,7 +24,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column type="selection" :reserve-selection="true" width="55"></el-table-column>
|
|
|
- <el-table-column label="角色编号" align="center" prop="roleId" />
|
|
|
+ <el-table-column label="角色编号" align="center" prop="id" />
|
|
|
<el-table-column label="角色名称" align="center" prop="roleName" />
|
|
|
<el-table-column label="权限字符" align="center" prop="roleKey" />
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
@@ -92,17 +92,21 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
- this.roleIds = selection.map((item) => item.roleId);
|
|
|
+ this.roleIds = selection.map((item) => item.id);
|
|
|
},
|
|
|
// 保存选中的数据编号
|
|
|
getRowKey(row) {
|
|
|
- return row.roleId;
|
|
|
+ return row.id;
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- const userId = this.form.userId;
|
|
|
const roleIds = this.roleIds.join(",");
|
|
|
- updateAuthRole({ userId: userId, roleIds: roleIds }).then((response) => {
|
|
|
+ console.log(this.form.id,roleIds,'111111')
|
|
|
+ let data = {
|
|
|
+ userId: this.form.id,
|
|
|
+ roleIds: roleIds
|
|
|
+ }
|
|
|
+ updateAuthRole(data).then((response) => {
|
|
|
this.$modal.msgSuccess("授权成功");
|
|
|
this.close();
|
|
|
});
|