index.vue 517 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <div>
  3. <page-header :title="title" />
  4. <page-body>
  5. <list listId="MonitorresourcesList" :res_type="res_type" :key="res_type" />
  6. </page-body>
  7. </div>
  8. </template>
  9. <script>
  10. import List from './components/List'
  11. export default {
  12. name: 'MonitorresourcesIndex',
  13. components: {
  14. List,
  15. },
  16. props: {
  17. res_type: String,
  18. },
  19. computed: {
  20. title () {
  21. return this.res_type === 'guest' ? this.$t('common.server_monitor') : this.$t('common.host_monitor')
  22. },
  23. },
  24. }
  25. </script>