present_job_apply.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <template>
  2. <div class="cats">
  3. <header>
  4. <div class="apply-header">
  5. 当前申请人数:{{totalCount}}人
  6. </div>
  7. </header>
  8. <div class="heightset">
  9. <div class="developer-box">
  10. <div class="dev-main clear" v-for="item in appliers" :key="item.id">
  11. <div class="dev-left">
  12. <div class="grid-content point" @click="clickUID(item.uid)">
  13. <img class="dev-head" :src="item.icon_url" alt/>
  14. <p class="blackc">{{item.uid}}</p>
  15. <p class="blackc">{{item.nickname}}</p>
  16. </div>
  17. </div>
  18. <div class="dev-right">
  19. <el-checkbox :checked="item.status==2" @change="changeStatus(item.uid)">不合适</el-checkbox>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <el-pagination
  25. @current-change="changePagination"
  26. :current-page.sync="currentPage"
  27. :page-size="size"
  28. layout="total, prev, pager, next"
  29. :total="totalCount"
  30. ></el-pagination>
  31. </div>
  32. </template>
  33. <script>
  34. const tableHeaders = [
  35. "用户ID",
  36. "昵称",
  37. ];
  38. const tableProps = [
  39. "uid",
  40. "nickname",
  41. ];
  42. // 现在环境是线上还是测试, 默认线上
  43. let env = "";
  44. export default {
  45. data() {
  46. return {
  47. appliers: [],
  48. currentPage:1,
  49. size:10,
  50. totalCount:10
  51. };
  52. },
  53. mounted() {
  54. this.getTableData();
  55. },
  56. methods: {
  57. clickUID(uid) {
  58. if (env === "test")
  59. window.open(`https://dev.test.proginn.com/rooter/user/${uid}`);
  60. else window.open(`https://www.proginn.com/rooter/user/${uid}`);
  61. },
  62. changePagination() {
  63. this.getTableData();
  64. },
  65. async getTableData() {
  66. const id = this.$router.currentRoute.query.id;
  67. const res = await this.$post("/api/admin/present_job/get_apply_users", {
  68. page: this.currentPage,
  69. size: 10,
  70. id:id
  71. });
  72. this.appliers = res.data.appliers;
  73. this.totalCount = res.data.count;
  74. },
  75. changeStatus(uid){
  76. const id = this.$router.currentRoute.query.id;
  77. this.$post("/api/admin/present_job/change_status", {
  78. present_job_id:id,
  79. uid:uid
  80. }).then(res=>{
  81. this.$message.success('修改成功');
  82. });
  83. }
  84. }
  85. };
  86. </script>
  87. <style scoped lang="scss">
  88. .form-inline {
  89. display: flex;
  90. flex-wrap: wrap;
  91. }
  92. .inline {
  93. display: inline;
  94. }
  95. .apply-header {
  96. padding: 20px 0 20px 0;
  97. font-size: 16px;
  98. }
  99. .lblue {
  100. color: #419df7;
  101. }
  102. .lblack {
  103. color: #aeaeae;
  104. }
  105. .cats-boxs {
  106. height: calc(100% - 40px);
  107. overflow-y: auto;
  108. }
  109. .point {
  110. cursor: pointer;
  111. }
  112. .form-inline {
  113. display: flex;
  114. flex-wrap: wrap;
  115. }
  116. .developer-box {
  117. padding-top: 10px;
  118. background: #f7f7f7;
  119. font-size: 14px;
  120. padding-bottom: 20px;
  121. }
  122. .dev-main {
  123. margin: 0 auto;
  124. padding: 37px 9px 20px 23px;
  125. background: white;
  126. width: 1000px;
  127. margin-bottom: 10px;
  128. box-sizing: border-box;
  129. }
  130. .dev-main > div {
  131. float: left;
  132. }
  133. .dev-left {
  134. width: 112px;
  135. text-align: center;
  136. }
  137. .state-of {
  138. display: inline-block;
  139. background: rgba(243, 243, 243, 1);
  140. font-size: 12px;
  141. color: #888888;
  142. padding: 3px 11px;
  143. }
  144. .dev-left p {
  145. padding: 3px 0;
  146. }
  147. .dev-center {
  148. width: 594px;
  149. }
  150. .dev-right {
  151. margin-top: 25px;
  152. margin-left:20px ;
  153. }
  154. .dev-detail {
  155. border-left: 1px solid #e0e0e0;
  156. padding: 3px 0 3px 19px;
  157. }
  158. .dev-detail > p {
  159. padding-top: 3px;
  160. padding-right: 10px;
  161. font-size: 13px;
  162. color: #505050;
  163. box-sizing: border-box;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. white-space: nowrap;
  167. }
  168. .dev-head {
  169. width: 74px;
  170. border-radius: 50%;
  171. overflow: hidden;
  172. }
  173. .dev-mark {
  174. margin-right: 22px;
  175. }
  176. .dev-mark > span {
  177. float: left;
  178. padding: 2px 9px;
  179. color: #888888;
  180. font-size: 12px;
  181. border: 1px solid #c0c0c0;
  182. border-radius: 2px;
  183. margin-right: 7px;
  184. height: 23px;
  185. line-height: 18px;
  186. }
  187. .dev-mark .dev-dark {
  188. float: left;
  189. padding: 2px 9px;
  190. color: white;
  191. font-size: 12px;
  192. background: #999999;
  193. border: 1px solid #999999;
  194. border-radius: 2px;
  195. margin-right: 7px;
  196. }
  197. .dev-infor {
  198. padding-top: 2px;
  199. }
  200. .dev-infor > p {
  201. padding-top: 3px;
  202. padding-right: 10px;
  203. font-size: 13px;
  204. color: #505050;
  205. box-sizing: border-box;
  206. overflow: hidden;
  207. text-overflow: ellipsis;
  208. white-space: nowrap;
  209. }
  210. .heightset {
  211. // height: calc(100% - 200px);
  212. // overflow: auto;
  213. }
  214. .clear::after {
  215. display: block;
  216. clear: both;
  217. content: "";
  218. }
  219. .inlineb {
  220. display: inline-block;
  221. }
  222. .floatl {
  223. float: left;
  224. }
  225. .floatr {
  226. float: right;
  227. }
  228. .table {
  229. height: calc(100% - 40px);
  230. }
  231. #main {
  232. }
  233. </style>