|
|
@ -149,9 +149,9 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { |
|
|
|
getPageListRoles, |
|
|
|
getPermissionsRoles, |
|
|
|
savePermissionsRoles, |
|
|
@ -159,10 +159,10 @@ |
|
|
|
postCreateRoles, |
|
|
|
postUpdateRoles, |
|
|
|
postDeleteRoles, |
|
|
|
} from "@/api/wms-auth"; |
|
|
|
import permission from "@/utils/permission/index"; |
|
|
|
import searchNormal from "@/components/searchNormal/index.vue" |
|
|
|
export default { |
|
|
|
} from "@/api/wms-auth"; |
|
|
|
import permission from "@/utils/permission/index"; |
|
|
|
import searchNormal from "@/components/searchNormal/index.vue" |
|
|
|
export default { |
|
|
|
directives: { permission }, |
|
|
|
components:{ |
|
|
|
searchNormal |
|
|
@ -413,8 +413,8 @@ |
|
|
|
duration: 2000, |
|
|
|
}); |
|
|
|
this.treeLoading = false; |
|
|
|
// 如果更改的是当前用户,则页面刷新 |
|
|
|
if(this.multipleSelection[0].name == this.$store.getters.currentUserInfo.name){ |
|
|
|
// 如果当前用户的权限包含更改的权限,则页面刷新 |
|
|
|
if(this.$store.getters.currentUserInfo.roles.indexOf(this.multipleSelection[0].name) >= 0){ |
|
|
|
location.reload() |
|
|
|
} |
|
|
|
}).catch(()=>{ |
|
|
@ -490,10 +490,10 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.appMainPage { |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.appMainPage { |
|
|
|
padding: 20px; |
|
|
|
.main { |
|
|
|
|
|
|
@ -542,7 +542,6 @@ |
|
|
|
height: calc(100vh - 260px); |
|
|
|
overflow-y: auto; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
|