batch.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <div class="simulation">
  3. <el-card class="mt20 mb20">
  4. <div
  5. :style="{ 'background-image': backimg }"
  6. style="
  7. padding: 30px;
  8. margin: 10px 0;
  9. background-color: white;
  10. background-repeat: no-repeat;
  11. background-position: bottom right;
  12. "
  13. >
  14. <p style="color: #a6a6a6; font-size: 24px; font-weight: bold">
  15. BATCH CONTROL LINE
  16. </p>
  17. <p style="color: #414141; font-size: 24px; font-weight: bold">
  18. 批次控制线
  19. </p>
  20. <hr
  21. class="layui-bg-orange"
  22. style="width: 40px; height: 4px; margin-top: 10px"
  23. />
  24. </div>
  25. </el-card>
  26. <el-card>
  27. <div>
  28. <mx-condition ref="condition" :query-params="queryParams" @query="handleQuery"
  29. @invalid="handleInvalidQuery"></mx-condition>
  30. </div>
  31. <div class="content">
  32. <mx-table :rows="batchData" :propDefines="propDefines"> </mx-table>
  33. <pagination :total="pageForm.total" :autoScroll="false" @pagination="onChangePage" :page.sync="pageForm.pageNum"
  34. :limit.sync="pageForm.pageSize"></pagination>
  35. </div>
  36. </el-card>
  37. </div>
  38. </template>
  39. <script>
  40. import { pckzxList } from "@/api/webApi/career-other";
  41. import MxCondition from '@/components/MxCondition/mx-condition'
  42. import Pagination from '@/components/Pagination/index'
  43. export default {
  44. components: {
  45. MxCondition,
  46. Pagination
  47. },
  48. data() {
  49. return {
  50. queryParams: {
  51. location: '',
  52. yearAdmission: '',
  53. },
  54. backimg:
  55. "url(" + require("@/assets/images/career/icon_colleges.png") + ")",
  56. batchData: [],
  57. pageForm: { pageNum: 1, pageSize: 20, total: 0 },
  58. propDefines: {
  59. year: {
  60. label: "年份",
  61. },
  62. location: {
  63. label: "省市",
  64. },
  65. typeName: {
  66. label: "批次/段",
  67. },
  68. course: {
  69. label: "科目",
  70. },
  71. score: {
  72. label: "控制分数线",
  73. },
  74. pressureRange: {
  75. label: "压线分区间",
  76. },
  77. }
  78. };
  79. },
  80. created() {
  81. this.getYears();
  82. this.getBatchList();
  83. },
  84. methods: {
  85. handleQuery() {
  86. this.getBatchList()
  87. },
  88. handleInvalidQuery() {
  89. console.log('query出错')
  90. this.round = {}
  91. },
  92. onChangePage(page){
  93. this.pageForm.pageSize = page.limit;
  94. this.pageForm.pageNum = page.page;
  95. this.getBatchList();
  96. },
  97. getBatchList() {
  98. pckzxList({
  99. ...this.pageForm,
  100. location: this.queryParams.location,
  101. year: this.queryParams.yearAdmission,
  102. }).then((res) => {
  103. this.batchData = res.rows;
  104. this.pageForm.total = res.total;
  105. console.log(res);
  106. });
  107. },
  108. },
  109. };
  110. </script>
  111. <style lang="scss" scoped>
  112. .layui-bg-orange {
  113. background-color: #47c6a2;
  114. margin-left: 0;
  115. }
  116. </style>
  117. <style lang="scss">
  118. .radioInput {
  119. .el-radio {
  120. .el-radio__input {
  121. display: none;
  122. }
  123. }
  124. }
  125. .radioInput {
  126. display: flex;
  127. .el-radio-button .el-radio-button__inner {
  128. border-radius: 4px !important;
  129. border: none;
  130. padding: 5px 10px !important;
  131. font-weight: 400;
  132. font-family: PingFangSC-Regular, PingFang SC;
  133. }
  134. .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  135. box-shadow: none;
  136. }
  137. .radiaTitle {
  138. display: inline-block;
  139. width: 130px;
  140. font-size: 14px;
  141. text-align: right;
  142. margin-top: 2px;
  143. }
  144. }
  145. .radioInput02 {
  146. display: flex;
  147. align-items: center;
  148. .radiaTitle {
  149. display: inline-block;
  150. width: 130px;
  151. font-size: 14px;
  152. text-align: right;
  153. margin-top: 2px;
  154. }
  155. .el-input--medium .el-input__inner {
  156. border-radius: 50px;
  157. }
  158. }
  159. </style>