controlArea.vue 921 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="problem">
  3. <AreaCard title="控制区" height="60" :windturbineList="windturbineList" :current="current" ref="areaCard"></AreaCard>
  4. </div>
  5. </template>
  6. <script>
  7. import AreaCard from "./areaCard.vue";
  8. export default {
  9. name: "ProblemArea",
  10. components: {
  11. AreaCard,
  12. },
  13. props: {
  14. current: {
  15. type: Number,
  16. },
  17. windturbineList: {
  18. type: String,
  19. },
  20. },
  21. data() {
  22. return {
  23. ls: {
  24. maintain: { key: "维护", value: [] },
  25. malfunction: { key: "故障", value: [] },
  26. offline: { key: "离线", value: [] },
  27. lockd: { key: "挂牌", value: [] },
  28. },
  29. };
  30. },
  31. computed: {},
  32. created() {
  33. },
  34. methods: {
  35. control(current){
  36. this.$refs.areaCard.control(current)
  37. }
  38. }
  39. };
  40. </script>
  41. <style scoped>
  42. .problem {
  43. height: 100%;
  44. }
  45. </style>