修改角色管理中权限分配 新增登录日志表
修改 @Create 标识为 @since
This commit is contained in:
		@@ -1,14 +1,15 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div>
 | 
			
		||||
    <el-input disabled :value="$route.query.roleName" />
 | 
			
		||||
    <el-input :value="$route.query.roleName" disabled/>
 | 
			
		||||
    <el-tree
 | 
			
		||||
      ref="tree"
 | 
			
		||||
      style="margin: 20px 0"
 | 
			
		||||
      :data="allPermissions"
 | 
			
		||||
      :default-checked-keys="assignPermission"
 | 
			
		||||
      :props="defaultProps"
 | 
			
		||||
      default-expand-all
 | 
			
		||||
      node-key="id"
 | 
			
		||||
      show-checkbox
 | 
			
		||||
      default-expand-all
 | 
			
		||||
      :props="defaultProps"
 | 
			
		||||
      style="margin: 20px 0"
 | 
			
		||||
    />
 | 
			
		||||
    <el-button :loading="loading" type="primary" @click="save">保存</el-button>
 | 
			
		||||
    <el-button @click="$router.replace({name: 'Role'})">取消</el-button>
 | 
			
		||||
@@ -48,8 +49,11 @@ export default {
 | 
			
		||||
      */
 | 
			
		||||
    getPermissions(roleId) {
 | 
			
		||||
      this.$API.permission.toAssign(roleId).then(result => {
 | 
			
		||||
        const allPermissions = result.data
 | 
			
		||||
        const allPermissions = result.data.allPermissionList
 | 
			
		||||
        this.allPermissions = allPermissions
 | 
			
		||||
        const assignPermission = result.data.assignPermission
 | 
			
		||||
        this.assignPermission = assignPermission
 | 
			
		||||
 | 
			
		||||
        const checkedIds = this.getCheckedIds(allPermissions)
 | 
			
		||||
        // console.log('getPermissions() checkedIds', checkedIds)
 | 
			
		||||
        this.$refs.tree.setCheckedKeys(checkedIds)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user