job.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <div v-if="recruitData">
  3. <div class="header">
  4. <div class="header-left">
  5. <div class="title-wrapper">
  6. <div class="title">{{recruitData.title}}</div>
  7. <div class="status" :style="{color: recruitData.statusColor}">{{recruitData.statusName}}</div>
  8. </div>
  9. <div class="salary">薪酬范围:{{recruitData.salaryName}}</div>
  10. <div class="skill">
  11. 技能:
  12. <span v-for="(item,index) in recruitData.skills" :key="index">
  13. <span v-if="index>0">,</span>
  14. <span>{{item.name}}</span>
  15. </span>
  16. </div>
  17. <div class="experience">经验:{{recruitData.experienceName}}</div>
  18. </div>
  19. <div class="owner-wrapper" @click="handleOwnerClick()">
  20. <img
  21. class="owner-img"
  22. :src="recruitData.ownerInfo && recruitData.ownerInfo.iconUrl || ''"
  23. alt
  24. />
  25. <div class="owner-name">{{recruitData.ownerInfo && recruitData.ownerInfo.nickname || ''}}</div>
  26. </div>
  27. </div>
  28. <div class="description-wrapper">
  29. <div class="description-title">工作描述</div>
  30. <div class="description-content">{{recruitData.description}}</div>
  31. </div>
  32. <div class="description-wrapper">
  33. <div class="description-title">招聘评价</div>
  34. <div class="description-content">
  35. <el-row>
  36. <el-col :span="4">
  37. <div class="owner-wrapper" @click="handleOwnerClick()" style="margin-left:0;">
  38. <img
  39. class="owner-img"
  40. :src="recruitData.ownerInfo && recruitData.ownerInfo.iconUrl || ''"
  41. alt
  42. />
  43. <div
  44. class="owner-name"
  45. >{{recruitData.ownerInfo && recruitData.ownerInfo.nickname || ''}}</div>
  46. </div>
  47. </el-col>
  48. <el-col :span="18">
  49. <div v-if="recruitData.recruitResult != 0">
  50. <span v-if="recruitData==4">停止招聘</span>
  51. <span v-else>删除岗位</span>
  52. ;招聘结果:
  53. {{recruitData.recruitResultName}}
  54. <span
  55. v-if="recruitData.problemsName"
  56. >;存在问题:{{recruitData.problemsName}}</span>
  57. <span v-if="recruitData.advice">;意见反馈:{{recruitData.advice}}</span>
  58. </div>
  59. </el-col>
  60. </el-row>
  61. </div>
  62. </div>
  63. <div class="description-wrapper">
  64. <div class="description-title">
  65. 招聘数据(已投递
  66. <span>{{recruitData.countTalk || 0}}</span>人,沟通中
  67. <span>{{recruitData.countApplied || 0}}</span>人)
  68. </div>
  69. <div class="description-content">
  70. <el-table :data="recruitData.developers" style="width: 540px">
  71. <el-table-column label="UID" width="180">
  72. <template slot-scope="scope">
  73. <el-link type="primary" target="_blank" @click="openUser(scope.row.uid)">
  74. {{scope.row
  75. .uid}}
  76. </el-link>
  77. </template>
  78. </el-table-column>
  79. <el-table-column label="已投递" width="180">
  80. <template slot-scope="scope">{{Number(scope.row.application_state) === 0 ? '否' : '是'}}</template>
  81. </el-table-column>
  82. <el-table-column label="沟通中" width="180">
  83. <template slot-scope="scope">{{Number(scope.row.talk_state) === 0 ? '否' : '是'}}</template>
  84. </el-table-column>
  85. </el-table>
  86. </div>
  87. </div>
  88. </div>
  89. </template>
  90. <script>
  91. export default {
  92. data() {
  93. return {
  94. recruitId: "",
  95. recruitData: {
  96. developers: []
  97. }
  98. };
  99. },
  100. mounted() {
  101. this.recruitId = this.$route.query.id;
  102. this.getRecruit();
  103. },
  104. methods: {
  105. async getRecruit() {
  106. const recruitId = this.recruitId;
  107. const data = {
  108. recruitId
  109. };
  110. let res = await this.$post("/api/admin/recruit/getRecruit", data);
  111. if (res && res.status === 1) {
  112. this.recruitData = res.data;
  113. console.log(this.recruitData);
  114. }
  115. },
  116. handleOwnerClick() {
  117. const recruitData = this.recruitData;
  118. // 前往老的后台
  119. if (location.hostname === "rooter.proginn.com") {
  120. window.open(`https://www.proginn.com/rooter/user/${recruitData.uid}`);
  121. } else {
  122. window.open(
  123. `https://dev.test.proginn.com/rooter/user/${recruitData.uid}`
  124. );
  125. }
  126. },
  127. openUser(uid) {
  128. let url = window.location.href;
  129. let jumpUrl = "";
  130. if (
  131. url.indexOf("dev.") != -1 ||
  132. url.indexOf("local") !== -1 ||
  133. url.indexOf("192.168.") !== -1
  134. ) {
  135. jumpUrl = `https://dev.test.proginn.com/wo/${uid}`;
  136. } else {
  137. jumpUrl = `https://www.proginn.com/wo/${uid}`;
  138. }
  139. window.open(jumpUrl, "_black");
  140. }
  141. }
  142. };
  143. </script>
  144. <style lang="scss" scoped>
  145. .header {
  146. display: flex;
  147. }
  148. .title-wrapper {
  149. display: flex;
  150. align-items: center;
  151. }
  152. .title {
  153. line-height: 27px;
  154. font-weight: bold;
  155. font-size: 18px;
  156. color: #101010;
  157. }
  158. .status {
  159. margin-left: 6px;
  160. line-height: 20px;
  161. font-size: 14px;
  162. }
  163. .salary {
  164. margin-top: 13px;
  165. line-height: 24px;
  166. font-size: 16px;
  167. color: #101010;
  168. }
  169. .skill {
  170. margin-top: 8px;
  171. line-height: 24px;
  172. font-size: 16px;
  173. color: #101010;
  174. }
  175. .experience {
  176. margin-top: 8px;
  177. line-height: 24px;
  178. font-size: 16px;
  179. color: #101010;
  180. }
  181. .owner-wrapper {
  182. margin-left: 100px;
  183. text-align: center;
  184. }
  185. .owner-img {
  186. width: 53px;
  187. height: 53px;
  188. border-radius: 50%;
  189. }
  190. .owner-name {
  191. margin-top: 8px;
  192. line-height: 20px;
  193. font-size: 14px;
  194. color: #3f51b5;
  195. }
  196. .description-wrapper {
  197. margin-top: 50px;
  198. }
  199. .description-title {
  200. line-height: 27px;
  201. font-weight: bold;
  202. font-size: 18px;
  203. color: #101010;
  204. }
  205. .description-content {
  206. margin-top: 16px;
  207. line-height: 24px;
  208. font-size: 16px;
  209. color: #101010;
  210. }
  211. </style>