index.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <div class="tp_body">
  3. <div class="tp_left">
  4. <infoA :userid="userid"></infoA>
  5. <panelA :userid="userid" :oid="oid" :org="org"></panelA>
  6. </div>
  7. <div class="tp_right">
  8. <testA :userid="userid" :oid="oid"></testA>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import infoA from './info/index.vue'
  14. import panelA from './panel/index.vue'
  15. import testA from './test/index.vue'
  16. export default {
  17. components: {
  18. infoA,
  19. panelA,
  20. testA
  21. },
  22. data() {
  23. return {
  24. userid: this.$route.query.userid,
  25. oid: this.$route.query.oid,
  26. org: this.$route.query.org,
  27. role: this.$route.query.role,
  28. }
  29. },
  30. methods: {
  31. },
  32. }
  33. </script>
  34. <style scoped>
  35. .tp_body{
  36. width: 100%;
  37. height: 100%;
  38. min-height: 745px;
  39. display: flex;
  40. justify-content: center;
  41. align-items: center;
  42. padding:20px;
  43. box-sizing: border-box;
  44. }
  45. .tp_left{
  46. width: 230px;
  47. height: 100%;
  48. }
  49. .tp_right{
  50. width: calc(100% - 230px - 10px);
  51. margin: 0 0 0 10px;
  52. height: 100%;
  53. }
  54. </style>