index.vue 772 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <!-- 班主任查看学生报名 -->
  3. <div class="app-container">
  4. <el-card class="box-card mb10">
  5. <mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
  6. @invalid="handleInvalidQuery"
  7. ></mx-condition>
  8. </el-card>
  9. </div>
  10. </template>
  11. <script>
  12. import MxCondition from '@/components/MxCondition/mx-condition'
  13. export default {
  14. components: { MxCondition },
  15. data() {
  16. return {
  17. requireFields: ['year', 'roundId'],
  18. queryParams: {
  19. year: '',
  20. roundId: ''
  21. },
  22. }
  23. },
  24. methods: {
  25. handleQuery() {
  26. },
  27. handleInvalidQuery() {
  28. console.log('query取消')
  29. this.round = {}
  30. }
  31. }
  32. }
  33. </script>
  34. <style>
  35. </style>