openatc-components 0.3.19 → 0.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,7 +93,6 @@ export default {
93
93
  return
94
94
  }
95
95
  this.platform = res.data.data.platform
96
- console.log(this.platform)
97
96
  if (this.platform !== '' && this.platform !== 'OpenATC') {
98
97
  this.isThirdSignal = true
99
98
  } else {
@@ -108,6 +107,10 @@ export default {
108
107
  created () {
109
108
  },
110
109
  mounted () {
110
+ // setTimeout(() => {
111
+ // 模拟
112
+ // this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
113
+ // }, 3000)
111
114
  this.getPlatform()
112
115
  this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
113
116
  },
@@ -1075,10 +1075,20 @@ export default {
1075
1075
  let pedarr = Array.from(map2)
1076
1076
  let newarr = []
1077
1077
  arr.forEach(ele => {
1078
- newarr.push(ele[1])
1078
+ ele[1].realdir = [ele[0]]
1079
+ let obj = {
1080
+ ...ele[1],
1081
+ realdir: [ele[0]]
1082
+ }
1083
+ newarr.push(obj)
1079
1084
  })
1080
1085
  pedarr.forEach(ele => {
1081
- newarr.push(ele[1])
1086
+ ele[1].realdir = [ele[0]]
1087
+ let obj = {
1088
+ ...ele[1],
1089
+ realdir: [ele[0]]
1090
+ }
1091
+ newarr.push(obj)
1082
1092
  })
1083
1093
  // console.log(newarr)
1084
1094
  return newarr