present_job_apply.vue 4.4 KB

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