|
@ -149,9 +149,9 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
getPageListRoles, |
|
|
getPageListRoles, |
|
|
getPermissionsRoles, |
|
|
getPermissionsRoles, |
|
|
savePermissionsRoles, |
|
|
savePermissionsRoles, |
|
@ -159,10 +159,10 @@ |
|
|
postCreateRoles, |
|
|
postCreateRoles, |
|
|
postUpdateRoles, |
|
|
postUpdateRoles, |
|
|
postDeleteRoles, |
|
|
postDeleteRoles, |
|
|
} from "@/api/wms-auth"; |
|
|
} from "@/api/wms-auth"; |
|
|
import permission from "@/utils/permission/index"; |
|
|
import permission from "@/utils/permission/index"; |
|
|
import searchNormal from "@/components/searchNormal/index.vue" |
|
|
import searchNormal from "@/components/searchNormal/index.vue" |
|
|
export default { |
|
|
export default { |
|
|
directives: { permission }, |
|
|
directives: { permission }, |
|
|
components:{ |
|
|
components:{ |
|
|
searchNormal |
|
|
searchNormal |
|
@ -413,8 +413,8 @@ |
|
|
duration: 2000, |
|
|
duration: 2000, |
|
|
}); |
|
|
}); |
|
|
this.treeLoading = false; |
|
|
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() |
|
|
location.reload() |
|
|
} |
|
|
} |
|
|
}).catch(()=>{ |
|
|
}).catch(()=>{ |
|
@ -490,10 +490,10 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
.appMainPage { |
|
|
.appMainPage { |
|
|
padding: 20px; |
|
|
padding: 20px; |
|
|
.main { |
|
|
.main { |
|
|
|
|
|
|
|
@ -542,7 +542,6 @@ |
|
|
height: calc(100vh - 260px); |
|
|
height: calc(100vh - 260px); |
|
|
overflow-y: auto; |
|
|
overflow-y: auto; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|