ProjectResources.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <base-dialog @cancel="cancelDialog">
  3. <div slot="header">{{ title }}</div>
  4. <div slot="body" class="project-dialog-table">
  5. <components
  6. :is="component"
  7. :id="id"
  8. :show-group-actions="false"
  9. :getParams="getParams"
  10. :show-searchbox="false" />
  11. </div>
  12. <div slot="footer">
  13. <a-button type="primary" @click="cancelDialog" :loading="loading">{{ $t("dialog.ok") }}</a-button>
  14. <!-- <a-button @click="cancelDialog">{{ $t('dialog.cancel') }}</a-button> -->
  15. </div>
  16. </base-dialog>
  17. </template>
  18. <script>
  19. import DialogMixin from '@/mixins/dialog'
  20. import WindowsMixin from '@/mixins/windows'
  21. export default {
  22. name: 'ProjectResourcesDialog',
  23. mixins: [DialogMixin, WindowsMixin],
  24. data () {
  25. return {
  26. loading: false,
  27. }
  28. },
  29. computed: {
  30. component () {
  31. return this.params.component
  32. },
  33. id () {
  34. return this.params.id
  35. },
  36. getParams () {
  37. return this.params.params
  38. },
  39. title () {
  40. return this.params.title
  41. },
  42. },
  43. }
  44. </script>
  45. <style lang="less" scoped>
  46. .project-dialog-table {
  47. ::v-deep {
  48. .page-list-grid > .vxe-table > .vxe-table--main-wrapper > .vxe-table--body-wrapper {
  49. overflow: auto !important;
  50. }
  51. }
  52. }
  53. </style>