index.vue 625 B

1234567891011121314151617181920212223242526272829303132333435
  1. <template>
  2. <div class="page-container">
  3. <FileList ref="FileList" title="电子文档" />
  4. </div>
  5. </template>
  6. <script>
  7. import FileList from '@/views/system/doc/components/FileList'
  8. import { mapGetters } from 'vuex'
  9. export default {
  10. name: 'DocIndex',
  11. components: { FileList },
  12. mixins: [],
  13. props: {},
  14. data() {
  15. return {
  16. dirId: 5
  17. }
  18. },
  19. computed: {
  20. ...mapGetters([
  21. 'userData'
  22. ])
  23. },
  24. mounted() { this.getData() },
  25. methods: {
  26. getData() {
  27. this.$refs['FileList'].loadData(this.dirId, '健康医院电子文档')
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. </style>