Aucune description

airPreparationStation.vue 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div class="app-container" style="padding-bottom: 0px;padding-top: 0px;">
  3. <h4>空气制备站监测系统</h4>
  4. <div class="contentbox" v-loading="loadprogress">
  5. <Detection v-for="(item,key,index) in saddleObj" :key="index" :list="item" :num="key" tagText="空气制备站"></Detection>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import Detection from '@/components/Detection/index'
  11. import Cookies from 'js-cookie'
  12. import { byBridgeAll } from '@/utils/queryBridgeAllResource'
  13. export default {
  14. name: 'complexTable',
  15. data() {
  16. return {
  17. saddleObj: {},
  18. bridgeId: '',
  19. loadprogress: true
  20. }
  21. },
  22. created() {
  23. this.bridgeId = Cookies.get('bridgeId')
  24. byBridgeAll(this.bridgeId, (res) => {
  25. this.loadprogress = false
  26. if (res.server.length === 0) {
  27. return
  28. }
  29. this.saddleObj = res['04']
  30. })
  31. },
  32. components: {
  33. Detection
  34. },
  35. methods: {
  36. }
  37. }
  38. </script>
  39. <style rel="stylesheet/scss" lang="scss" scoped>
  40. .contentbox {
  41. display: flex;
  42. align-items:flex-start;
  43. flex-wrap: wrap;
  44. }
  45. </style>