Monitor.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <div>
  3. <install-agent-form-visible :data="data" :serverColumns="[]" :isPageDestroyed="isPageDestroyed" />
  4. <!-- monitor tabs -->
  5. <div>
  6. <a-tabs default-active-key="agent-basic" @change="handleTabChange">
  7. <a-tab-pane key="agent-basic" :tab="$t('compute.monitor.agent')">
  8. <agent-monitor
  9. :data="data"
  10. idKey="vm_id"
  11. v-if="true" />
  12. </a-tab-pane>
  13. <a-tab-pane key="agent-temperature" :tab="$t('compute.monitor.agent.temperature')">
  14. <agent-temperature-monitor
  15. :data="data"
  16. idKey="vm_id"
  17. v-if="true" />
  18. </a-tab-pane>
  19. </a-tabs>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. import AgentMonitor from '@Compute/sections/monitor/AgentMonitor.vue'
  25. import AgentTemperatureMonitor from '@Compute/sections/monitor/AgentTemperatureMonitor.vue'
  26. import WindowsMixin from '@/mixins/windows'
  27. import InstallAgentFormVisible from '../../vminstance/components/InstallAgentFormVisible'
  28. export default {
  29. name: 'BaremetalMonitorSidepage',
  30. components: {
  31. AgentMonitor,
  32. AgentTemperatureMonitor,
  33. InstallAgentFormVisible,
  34. },
  35. mixins: [WindowsMixin],
  36. props: {
  37. data: { // listItemData
  38. type: Object,
  39. required: true,
  40. },
  41. isPageDestroyed: Boolean,
  42. },
  43. computed: {
  44. serverId () {
  45. return this.data.id
  46. },
  47. },
  48. methods: {
  49. handleTabChange (tab) {
  50. },
  51. },
  52. }
  53. </script>