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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.3.19",
3
+ "version": "0.3.20",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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
@@ -1,30 +1,30 @@
1
1
  <template>
2
2
  <div>
3
3
  <h2 class="text">实时通道路口图</h2>
4
- <channel-realtime-intersection
4
+ <!-- <channel-realtime-intersection
5
5
  :agentId="this.agentId"
6
6
  :roadDirection="roadDirection"
7
7
  :channelRealtimeStatusData="channelRealtimeStatusData"
8
- />
8
+ /> -->
9
9
 
10
10
  <!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
11
11
  <h2 class="text">非第三方配置路口图(按通道显示相位方向)</h2>
12
12
  <intersection-direction-selection
13
13
  :agentId="this.agentId"
14
- :choosedDirection="[14,6,13,8]"
15
- :choosedPedDirection="[1]"
14
+ :choosedDirection="[]"
15
+ :choosedPedDirection="[]"
16
16
  :roadDirection="roadDirection"
17
17
  @handleClickCrossIcon="handleClickCrossIcon" />
18
18
 
19
19
  <h2 class="text">第三方配置路口图(按路口相位配置显示相位方向)</h2>
20
20
  <div>
21
- <intersection-direction-selection
21
+ <!-- <intersection-direction-selection
22
22
  :agentId="this.agentId"
23
23
  thirdSignal
24
24
  :choosedDirection="[5,6,7,8,13]"
25
25
  :choosedPedDirection="[1,2]"
26
26
  :roadDirection="roadDirection"
27
- @handleClickCrossIcon="handleClickCrossIcon" />
27
+ @handleClickCrossIcon="handleClickCrossIcon" /> -->
28
28
  </div>
29
29
 
30
30
  <!-- 显示按通道获取相位的模版路口图 -->
@@ -161,12 +161,12 @@ export default {
161
161
  return {
162
162
  roadDirection: 'right',
163
163
  // reqUrl: 'http://192.168.13.103:10003/openatc',
164
- agentId: '12008_ticp',
164
+ agentId: 'cslytl',
165
165
  // agentId: '13013',
166
166
  // agentId: '12007_390',
167
167
  // agentId: '12014',
168
168
  reqUrl: 'http://192.168.13.103:10003/openatc',
169
- Token: 'eyJraWQiOiIxNzIxOTcwMTEzMTMwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyMTk3MzcxMywiaWF0IjoxNzIxOTY2NTEzfQ.aT14xZel09fHji-SrPMDTPAxISEUS8Y6KF30BWjCGKY',
169
+ Token: 'eyJraWQiOiIxNzIyMzAyMTc1NjY5IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyMjMwNTc3NywiaWF0IjoxNzIyMjk4NTc3fQ.sge4-AVz9QA1VJs6ZLMLm7knPLjc2kF84ahHU_cMgro',
170
170
  // agentId: '30003-352',
171
171
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
172
172
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',