toolbar.vue 758 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: 'ImageGoodsManagementToolbar',
  8. data() {
  9. return {
  10. fields: [
  11. // TODO 上传者
  12. {
  13. type: 'ActivitySelect',
  14. name: 'activityId',
  15. label: '活动'
  16. },
  17. {
  18. type: 'dateArray',
  19. name: 'date',
  20. label: '上传时间',
  21. apiName: ['startTime', 'endTime']
  22. },
  23. {
  24. type: 'select',
  25. name: 'auditStatus',
  26. label: '审核状态',
  27. options: AUDITTYPE,
  28. format: val => val
  29. }
  30. ]
  31. };
  32. }
  33. };
  34. </script>
  35. <style type="scss" scoped></style>