toolbar.vue 717 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <toolbar-container :fields="fields" v-on="$listeners" />
  3. </template>
  4. <script>
  5. import AUDITTYPE from '@/const/auditType';
  6. export default {
  7. name: 'PhotoVerifyToolbar',
  8. data() {
  9. return {
  10. fields: [
  11. {
  12. type: 'ActivitySelect',
  13. name: 'activityId',
  14. label: '活动'
  15. },
  16. {
  17. type: 'dateArray',
  18. name: 'date',
  19. label: '上传时间',
  20. apiName: ['startTime', 'endTime']
  21. },
  22. {
  23. type: 'select',
  24. name: 'auditStatus',
  25. label: '状态',
  26. options: AUDITTYPE,
  27. format: val => val
  28. }
  29. ]
  30. };
  31. }
  32. };
  33. </script>
  34. <style type="scss" scoped></style>