ResumeIndex.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!--
  2. * @Description: 我的简历
  3. * @Author: 空白格
  4. * @Date: 2022-08-24 09:35:03
  5. * @LastEditors: gcz
  6. * @LastEditTime: 2022-08-26 17:52:03
  7. * @FilePath: \veterans_client_web\src\views\PersonalCenter\Resume\ResumeIndex.vue
  8. * @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
  9. -->
  10. <template>
  11. <div class="app-main">
  12. <BannerBreadcrumb title="我的简历" :breadcrumb="false" />
  13. <div class="banner-breadcrumb-breadcrumb">
  14. <el-breadcrumb separator-class="el-icon-arrow-right">
  15. <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
  16. <el-breadcrumb-item :to="{ path: '/personalcenter' }"
  17. >我的</el-breadcrumb-item
  18. >
  19. <el-breadcrumb-item>我的简历</el-breadcrumb-item>
  20. </el-breadcrumb>
  21. </div>
  22. <div class="app-main-box">
  23. <div class="app-main-box-content resume">
  24. <div class="title">我的简历</div>
  25. <el-row>
  26. <el-col :span="16">
  27. <div class="name">{{ memberinfo.name }}</div>
  28. <div class="">
  29. {{ memberinfo.menSex === 1 ? "女" : "男" }} ·
  30. <span class="position" v-if="memberinfo.jobStatus !== 0">
  31. <span class="c-yellow">入职中</span>
  32. <span v-if="memberinfo.jobStatus==1&&memberinfo.company">({{memberinfo.company}})</span>
  33. </span>
  34. <span class="c-yellow" v-else>未入职</span>
  35. </div>
  36. </el-col>
  37. <el-col :span="8">
  38. <div class="avatar hexagon">
  39. <div
  40. class="avatar-box hexagon-box"
  41. :style="{
  42. backgroundImage: `url('${
  43. memberinfo.avatar
  44. ? memberinfo.avatar
  45. : 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'
  46. }')`,
  47. }"
  48. ></div>
  49. </div>
  50. </el-col>
  51. </el-row>
  52. <el-row class="resumm-item">
  53. <el-col :span="22">
  54. <div class="item-title">基本信息</div>
  55. <p>
  56. 退役军人 ·
  57. {{ memberinfo.menBirth ? getAge(memberinfo.menBirth) : "-" }}岁 ·
  58. {{ memberinfo.politOutlook || "-" }} ·
  59. {{ memberinfo.degrEduc || "-" }}
  60. </p>
  61. <p>电话:{{ memberinfo.mobile }}</p>
  62. </el-col>
  63. <el-col class="link-page" :span="2">
  64. <img @click="goEdit" src="@/assets/images/link-page-icon.svg" alt="">
  65. </el-col>
  66. </el-row>
  67. <el-row class="resumm-item">
  68. <el-col :span="22">
  69. <div class="item-title">期望薪资</div>
  70. <div v-if="memberinfo.cityName && memberinfo.provinceName && memberinfo.areaName">{{ `${memberinfo.provinceName}-${memberinfo.cityName}-${memberinfo.areaName}` }}</div>
  71. <div class="c-yellow" v-if="memberinfo.expectedLowestSalary && memberinfo.expectedHighestSalary">{{ `${memberinfo.expectedLowestSalary}k ~ ${memberinfo.expectedHighestSalary}k` }}</div>
  72. <div class="supple" v-if="!memberinfo.workCity && !memberinfo.expectedLowestSalary && !memberinfo.expectedLowestSalary">暂末补充求职意向… </div>
  73. </el-col>
  74. <el-col class="link-page" :span="2">
  75. <img @click="goEdit" src="@/assets/images/link-page-icon.svg" alt="">
  76. </el-col>
  77. </el-row>
  78. <el-row class="resumm-item">
  79. <el-col :span="22">
  80. <div class="item-title">自我评价</div>
  81. <div v-if="memberinfo.selfAssessment">
  82. {{ memberinfo.selfAssessment }}
  83. </div>
  84. <p v-else>暂末补充自我评价…</p>
  85. </el-col>
  86. <el-col class="link-page" :span="2">
  87. <img @click="goEdit" src="@/assets/images/link-page-icon.svg" alt="">
  88. </el-col>
  89. </el-row>
  90. <el-row class="resumm-item">
  91. <el-col :span="22">
  92. <div class="item-title">工作经历</div>
  93. <el-empty description="暂无工作经历"></el-empty>
  94. </el-col>
  95. <el-col class="link-page" :span="2">
  96. <!-- <img @click="goEdit" src="@/assets/images/link-page-icon.svg" alt=""> -->
  97. </el-col>
  98. </el-row>
  99. <el-row class="resumm-item">
  100. <el-col :span="22">
  101. <div class="item-title">培训与教育经历</div>
  102. <el-empty description="暂无培训与教育经历"></el-empty>
  103. </el-col>
  104. <el-col class="link-page" :span="2">
  105. <!-- <img @click="goEdit" src="@/assets/images/link-page-icon.svg" alt=""> -->
  106. </el-col>
  107. </el-row>
  108. </div>
  109. </div>
  110. </div>
  111. </template>
  112. <script>
  113. import BannerBreadcrumb from "@/components/BannerBreadcrumb";
  114. import { getPersonInfoData } from "@/api/PersonalCenter";
  115. export default {
  116. name: "Resume",
  117. components: {
  118. BannerBreadcrumb,
  119. },
  120. data() {
  121. return {
  122. memberinfo: {},
  123. };
  124. },
  125. created() {
  126. this.getPersonInfo();
  127. },
  128. methods: {
  129. /**
  130. * 获取个人信息
  131. * @date 2022-08-15
  132. * @returns {any}
  133. */
  134. getPersonInfo() {
  135. getPersonInfoData().then((res) => {
  136. if (res.code === 200) {
  137. this.memberinfo = res?.data;
  138. console.log("this.memberinfo", this.memberinfo);
  139. }
  140. });
  141. },
  142. /**
  143. * 通过出生年月计算年龄
  144. * @param { String } date
  145. */
  146. getAge(date) {
  147. const birth = new Date(date).valueOf();
  148. const now = new Date().valueOf();
  149. const age = (now - birth) / 1000 / 60 / 60 / 24 / 365;
  150. return parseInt(age);
  151. },
  152. goEdit(){
  153. this.$router.push({path:'resumeEdit'});
  154. }
  155. },
  156. };
  157. </script>
  158. <style lang='scss' scoped>
  159. .c-yellow {
  160. color: #ff6901;
  161. }
  162. .app-main-box-content {
  163. min-height: calc(100vh - 73px - 104px - 64px - 100px - 23px - 40px);
  164. }
  165. .banner-breadcrumb-breadcrumb {
  166. background-color: #fff;
  167. :deep(.el-breadcrumb) {
  168. width: 70%;
  169. height: 64px;
  170. line-height: 64px;
  171. min-width: 600px;
  172. margin: 0 auto;
  173. font-size: 20px;
  174. }
  175. :deep(.el-breadcrumb__inner.is-link) {
  176. color: #7e7e7e;
  177. font-weight: normal;
  178. }
  179. :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner) {
  180. color: #ff0000;
  181. }
  182. }
  183. .resume {
  184. color: #666;
  185. .title {
  186. text-align: center;
  187. color: #222;
  188. font-weight: 400;
  189. font-size: 24px;
  190. letter-spacing: 1.55px;
  191. padding-bottom: 30px;
  192. border-bottom: 1px solid #d7d7d7;
  193. margin-bottom: 40px;
  194. }
  195. .name {
  196. color: #222;
  197. font-size: 30px;
  198. margin-bottom: 10px;
  199. }
  200. .avatar {
  201. width: 138px;
  202. height: 138px;
  203. background-color: rgba($color: #fff, $alpha: 0.7);
  204. padding: 7px;
  205. margin-right: 0;
  206. margin-left: auto;
  207. }
  208. .resumm-item {
  209. margin-bottom: 50px;
  210. .item-title {
  211. font-size: 20px;
  212. color: #222;
  213. margin-bottom: 14px;
  214. position: relative;
  215. padding-left: 10px;
  216. &::before{
  217. content:'';
  218. width: 5px;
  219. height: 5px;
  220. border-radius: 50%;
  221. position: absolute;
  222. left: 0;
  223. top: 50%;
  224. margin-top: -2.5px;
  225. background: #709078;
  226. }
  227. }
  228. p {
  229. margin-bottom: 10px;
  230. }
  231. .link-page{
  232. padding-top: 24px;
  233. text-align: right;
  234. cursor: pointer;
  235. }
  236. }
  237. }
  238. </style>