yfyd.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <template>
  2. <div class="simulation">
  3. <el-card class="mt20 mb20">
  4. <div
  5. :style="{ 'background-image': backimg }"
  6. class="back"
  7. >
  8. <p class="f24 bold" style="color: #a6a6a6">
  9. BATCH CONTROL LINE
  10. </p>
  11. <p class="f24" style="color: #414141;">
  12. 一分一段
  13. </p>
  14. <hr
  15. class="layui-bg-orange f24 bold mt10"
  16. style="width: 40px; height: 4px"
  17. />
  18. </div>
  19. </el-card>
  20. <el-card>
  21. <mx-condition ref="condition" :query-params="queryParams" @query="handleQuery"
  22. @invalid="handleInvalidQuery"></mx-condition>
  23. <div class="content">
  24. <mx-table :rows="batchData" :propDefines="propDefines"> </mx-table>
  25. <pagination :total="pageForm.total" :autoScroll="false" @pagination="onChangePage" :page.sync="pageForm.pageNum"
  26. :limit.sync="pageForm.pageSize"></pagination>
  27. </div>
  28. </el-card>
  29. </div>
  30. </template>
  31. <script>
  32. import {
  33. yfydList,
  34. } from "@/api/webApi/career-other";
  35. import MxCondition from '@/components/MxCondition/mx-condition'
  36. import Pagination from '@/components/Pagination'
  37. export default {
  38. components: {
  39. MxCondition,
  40. Pagination
  41. },
  42. data() {
  43. return {
  44. queryParams: {
  45. yfydLocation: '',
  46. yfydYear: '',
  47. yfydMode: '',
  48. },
  49. pageForm: { pageNum: 1, pageSize: 10, total: 0 },
  50. backimg:
  51. "url(" + require("@/assets/images/career/icon_colleges.png") + ")",
  52. batchData: [],
  53. score: '',
  54. propDefines: {
  55. location: {
  56. label: "地域",
  57. },
  58. year: {
  59. label: "年份",
  60. },
  61. mode: {
  62. label: "科类",
  63. },
  64. score: {
  65. label: "分数",
  66. },
  67. num: {
  68. label: "人数",
  69. },
  70. numTotal: {
  71. label: "累计人数",
  72. },
  73. }
  74. };
  75. },
  76. created() {
  77. },
  78. methods: {
  79. handleInvalidQuery() {
  80. },
  81. onChangePage(page){
  82. this.pageForm.pageSize = page.limit;
  83. this.pageForm.pageNum = page.page;
  84. this.getYfydList();
  85. },
  86. handleQuery() {
  87. this.pageForm.pageNum = 1
  88. this.getYfydList()
  89. },
  90. getYfydList() {
  91. yfydList({
  92. year: this.queryParams.yfydYear,
  93. location: this.queryParams.yfydLocation,
  94. mode: this.queryParams.yfydMode,
  95. score: this.score,
  96. ...this.pageForm}).then((res) => {
  97. this.batchData = res.rows;
  98. this.pageForm.total = res.total;
  99. console.log(res);
  100. });
  101. },
  102. },
  103. };
  104. </script>
  105. <style lang="scss" scoped>
  106. .layui-bg-orange {
  107. background-color: #47c6a2;
  108. margin-left: 0;
  109. }
  110. .back{
  111. padding: 30px;
  112. margin: 10px 0;
  113. background-color: white;
  114. background-repeat: no-repeat;
  115. background-position: bottom right;
  116. }
  117. </style>