careerPath.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div>
  3. <div class="title">职业轨迹</div>
  4. <v-container class="descriptions pa-0">
  5. <v-row no-gutters class="descriptions-row">
  6. <v-col :cols="12">
  7. <div class="d-flex text-center">
  8. <div class="label">酒店名称</div>
  9. <div class="label">职位名称</div>
  10. <div class="label">日期</div>
  11. </div>
  12. </v-col>
  13. </v-row>
  14. <template v-if="careerData?.length">
  15. <v-row no-gutters class="descriptions-row" v-for="(val, index) in careerData" :key="index+'career'">
  16. <v-col :cols="12">
  17. <div class="d-flex text-center">
  18. <div class="value">{{ val.company_name }}</div>
  19. <div class="value">{{ val.position }}</div>
  20. <div class="value">{{ val.current_date }}</div>
  21. </div>
  22. </v-col>
  23. </v-row>
  24. </template>
  25. <template v-else>
  26. <v-row no-gutters class="descriptions-row">
  27. <v-col :cols="12">
  28. <div class="d-flex text-center">
  29. <div class="value">-</div>
  30. <div class="value">-</div>
  31. <div class="value">-</div>
  32. </div>
  33. </v-col>
  34. </v-row>
  35. </template>
  36. </v-container>
  37. </div>
  38. </template>
  39. <script setup>
  40. import { ref } from 'vue'
  41. defineOptions({ name: 'NewTalentMapSearch-careerPath' })
  42. const props = defineProps({data: Object})
  43. const careerData = ref(props?.data?.career_path || [])
  44. </script>
  45. <style lang="scss" scoped>
  46. .title {
  47. margin: 18px 0 12px;
  48. font-size: 18px;
  49. color: var(--v-primary-base);
  50. // color: #008bb7;
  51. font-weight: bold;
  52. }
  53. .descriptions {
  54. border-left: 1px solid #ebeef5;
  55. border-top: 1px solid #ebeef5;
  56. &-row{
  57. .label {
  58. width: 33.3%;
  59. padding: 8px 12px;
  60. color: #666;
  61. background-color: #f7f8fa;
  62. border-right: 1px solid #ebeef5;
  63. border-bottom: 1px solid #ebeef5;
  64. }
  65. .value {
  66. flex: 1;
  67. padding: 8px 12px;
  68. color: #333;
  69. border-right: 1px solid #ebeef5;
  70. border-bottom: 1px solid #ebeef5;
  71. }
  72. }
  73. }
  74. </style>