ManualPage.vue 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <div class="homePage">
  3. <div class="center-bar" style="height: 100%;">
  4. <el-row :gutter="10" style="height: 100%;">
  5. <el-col :span="16">
  6. <el-row>
  7. <el-col :span="24">
  8. <ControlAllArea :datas="datas"/>
  9. </el-col>
  10. </el-row>
  11. <el-row>
  12. <el-col :span="24">
  13. <CheckArea />
  14. </el-col>
  15. </el-row>
  16. </el-col>
  17. <!-- <el-col :span="8">
  18. <el-row>
  19. <el-col :span="23">
  20. <ModeControl :current="current"></ModeControl>
  21. </el-col>
  22. </el-row>
  23. <el-row>
  24. <el-col :span="23">
  25. <FocusArea />
  26. </el-col>
  27. </el-row>
  28. <el-row>
  29. <el-col :span="23">
  30. <WarningArea></WarningArea>
  31. </el-col>
  32. </el-row>
  33. </el-col> -->
  34. </el-row>
  35. <!-- <WindturbineDetailPages v-model="dialogVisible"></WindturbineDetailPages> -->
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. // @ is an alias to /src
  41. import MessageBridge from 'utils/MessageBridge'
  42. import ControlAllArea from "components/control/controlAllArea.vue";
  43. import CheckArea from "components/check/checkArea.vue";
  44. import ModeControl from "components/modeControl/modeControl.vue";
  45. import FocusArea from "components/focus/focusArea.vue";
  46. import WarningArea from "components/warning/warningArea.vue";
  47. export default {
  48. name: 'Home',
  49. components: {
  50. ControlAllArea,
  51. CheckArea,
  52. ModeControl,
  53. FocusArea,
  54. WarningArea
  55. },
  56. created() {
  57. this.initData();
  58. },
  59. data() {
  60. return {
  61. url: process.env.VUE_APP_SHARDINGURL,
  62. current: 2,
  63. };
  64. },
  65. mounted() {
  66. const { current,datas } = this.$route.query
  67. this.current = Number(current)
  68. },
  69. methods: {
  70. initData: function () {
  71. var mb = MessageBridge.getInstance();
  72. var vs = [{ key: "/topic/fault-popup", action: this.faultMessage }];
  73. mb.register(vs);
  74. },
  75. faultMessage(msg) {
  76. var val = JSON.parse(msg);
  77. },
  78. },
  79. }
  80. </script>
  81. <style scoped>
  82. .homePage {
  83. height: 87%;
  84. }
  85. </style>