SystemConfig.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div class="system-config">
  3. <a-row :gutter="[24, 24]">
  4. <!-- 左侧配置区域 -->
  5. <a-col :xs="24" :lg="11">
  6. <!-- 连接配置 - 使用Tab组件 -->
  7. <a-card class="mb-6">
  8. <a-tabs default-active-key="1">
  9. <a-tab-pane tab="串口配置" key="1">
  10. <SerialConfig />
  11. </a-tab-pane>
  12. <a-tab-pane tab="MQTT配置" key="2">
  13. <MQTTConfig />
  14. </a-tab-pane>
  15. <a-tab-pane tab="DTU配置" key="3">
  16. <DTUConfig />
  17. </a-tab-pane>
  18. </a-tabs>
  19. </a-card>
  20. <!-- 转发设置 -->
  21. <a-card title="转发设置">
  22. <ForwardConfig />
  23. </a-card>
  24. </a-col>
  25. <!-- 右侧监控区域 -->
  26. <a-col :xs="24" :lg="13">
  27. <a-card title="数据监控">
  28. <a-space direction="vertical" style="width: 100%">
  29. <SerialDataDisplay />
  30. <MQTTDataDisplay />
  31. </a-space>
  32. </a-card>
  33. </a-col>
  34. </a-row>
  35. </div>
  36. </template>
  37. <script setup>
  38. import SerialConfig from '../components/SerialConfig.vue'
  39. import MQTTConfig from '../components/MQTTConfig.vue'
  40. import DTUConfig from '../components/DTUConfig.vue'
  41. import ForwardConfig from '../components/ForwardConfig.vue'
  42. import SerialDataDisplay from '../components/SerialDataDisplay.vue'
  43. import MQTTDataDisplay from '../components/MQTTDataDisplay.vue'
  44. </script>
  45. <style scoped>
  46. .system-config {
  47. width: 100%;
  48. }
  49. .mb-6 {
  50. margin-bottom: 24px;
  51. }
  52. </style>