productionRecords.vue 698 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <view>
  3. <list ref="listRef" pageName="productionRecords"></list>
  4. </view>
  5. </template>
  6. <script>
  7. import list from './list.vue'
  8. export default {
  9. components: {
  10. list
  11. },
  12. mixins: [],
  13. data() {
  14. return {
  15. }
  16. },
  17. computed: {
  18. },
  19. created() {
  20. uni.$off('successInit')
  21. uni.$on('successInit', (data) => {
  22. this.$nextTick(() => {
  23. this.$refs.listRef.successInit()
  24. })
  25. })
  26. },
  27. onUnload() {
  28. uni.$off('successInit')
  29. },
  30. onLoad() {
  31. this.$nextTick(() => {
  32. this.$refs.listRef.getList()
  33. })
  34. uni.setNavigationBarColor({
  35. frontColor: '#000000',
  36. });
  37. },
  38. methods: {
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. </style>