indexNew.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <Page>
  3. <div class="content">
  4. <div class="content-search">
  5. <SearchBar v-model:visible="visible" @search="searchHandler"/>
  6. </div>
  7. <div class="content-info">
  8. <Card title="个人基本信息"> </Card>
  9. </div>
  10. <div class="content-bottom">
  11. <div class="content-bottom-left">
  12. <Card title="个人基本信息">
  13. <div class="work-history">2020.1.1入职,司龄6年、开机年限5年,现任职班组长。</div>
  14. </Card>
  15. <Card title="个人基本信息"> </Card>
  16. </div>
  17. <div class="content-bottom-center">
  18. <Card title="个人基本信息"></Card>
  19. </div>
  20. <div class="content-bottom-right">
  21. <Card title="个人基本信息"></Card>
  22. </div>
  23. </div>
  24. </div>
  25. </Page>
  26. </template>
  27. <script setup>
  28. import Page from '../components/page.vue'
  29. import Card from '../components/card.vue'
  30. import SearchBar from '../components/SearchBar.vue'
  31. import { ref } from 'vue'
  32. const visible = ref(false)
  33. const searchHandler = () => {
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .content {
  38. height: 100%;
  39. display: flex;
  40. flex-direction: column;
  41. row-gap: 15px;
  42. padding: 15px;
  43. .content-search {}
  44. .content-info {
  45. height: 230px;
  46. & > * {
  47. height: 100%;
  48. }
  49. }
  50. .content-bottom {
  51. flex: 1;
  52. display: flex;
  53. column-gap: 15px;
  54. .content-bottom-left {
  55. width: 380px;
  56. display: flex;
  57. flex-direction: column;
  58. row-gap: 15px;
  59. & > *:nth-child(1) {
  60. flex: 1;
  61. .work-history {
  62. padding: 15px;
  63. }
  64. }
  65. & > *:nth-child(2) {
  66. flex: 1.6;
  67. }
  68. }
  69. .content-bottom-center {
  70. flex: 1;
  71. & > * {
  72. height: 100%;
  73. }
  74. }
  75. .content-bottom-right {
  76. width: 380px;
  77. & > * {
  78. height: 100%;
  79. }
  80. }
  81. }
  82. }
  83. </style>