myInspectionProjectTask.vue 642 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view>
  3. <list pageName="myInspectionProjectTask" ref="listRef"></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(data) {
  31. this.$nextTick(() => {
  32. this.$refs.listRef.getList()
  33. })
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. </style>