toolbar.vue 786 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: 'select',
  14. name: 'title',
  15. label: '上传位置'
  16. },
  17. {
  18. type: 'select',
  19. name: 'auditStatus',
  20. label: '状态',
  21. options: AUDITTYPE,
  22. format: val => (val !== null && val !== '' ? !!val : null)
  23. },
  24. {
  25. type: 'dateArray',
  26. name: 'date',
  27. label: '上传日期',
  28. apiName: ['startTime', 'endTime']
  29. }
  30. ]
  31. };
  32. }
  33. };
  34. </script>
  35. <style type="scss" scoped></style>