controlArea.vue 834 B

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