openatc-components 0.2.52 → 0.2.53

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.2.52",
3
+ "version": "0.2.53",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -966,19 +966,33 @@ export default {
966
966
  },
967
967
  handleRepeatRealdir (channelList) {
968
968
  // 按realdir去掉重复方向的数据
969
+ let dirChannelList = channelList.filter(ele => ele.type === 0 || ele.type === 1 || ele.type === 3)
970
+ let pedDirChannelList = channelList.filter(ele => ele.type === 2)
969
971
  let map = new Map()
970
- channelList.forEach(ele => {
972
+ let map2 = new Map()
973
+ dirChannelList.forEach(ele => {
971
974
  ele.realdir.forEach(dir => {
972
975
  if (map.get(dir) === undefined) {
973
976
  map.set(dir, ele)
974
977
  }
975
978
  })
976
979
  })
980
+ pedDirChannelList.forEach(ele => {
981
+ ele.realdir.forEach(dir => {
982
+ if (map2.get(dir) === undefined) {
983
+ map2.set(dir, ele)
984
+ }
985
+ })
986
+ })
977
987
  let arr = Array.from(map)
988
+ let pedarr = Array.from(map2)
978
989
  let newarr = []
979
990
  arr.forEach(ele => {
980
991
  newarr.push(ele[1])
981
992
  })
993
+ pedarr.forEach(ele => {
994
+ newarr.push(ele[1])
995
+ })
982
996
  // console.log(newarr)
983
997
  return newarr
984
998
  },
@@ -557,7 +557,7 @@ export default {
557
557
  this.changeStatus()
558
558
  }
559
559
  this.setPropsToken(this.Token)
560
- await this.getPhase()
560
+ // await this.getPhase()
561
561
  this.getFault()
562
562
  this.initData()
563
563
  },
package/src/main.js CHANGED
@@ -18,7 +18,7 @@ window.dev = process.env.NODE_ENV
18
18
 
19
19
  // 深浅主题按需加载
20
20
  import('../static/styles/dark/index.scss')
21
- import('../static/styles/light/index.scss')
21
+ // import('../static/styles/light/index.scss')
22
22
 
23
23
  Vue.use(kissui)
24
24
  Vue.use(ElementUI)
@@ -12,7 +12,7 @@
12
12
  <!-- <intersection-base-map
13
13
  ref="intersectionMap"
14
14
  :crossStatusData="crossStatusData"
15
- agentId="tjblsxl-ticp6"
15
+ :agentId="this.agentId"
16
16
  isVipRoute
17
17
  :choosedDirection="[1,2,3]"
18
18
  :choosedPedDirection="[3,4]"
@@ -139,12 +139,12 @@ export default {
139
139
  return {
140
140
  roadDirection: 'right',
141
141
  // reqUrl: 'http://192.168.13.103:10003/openatc',
142
- agentId: 'tjblsxl-ticp6',
142
+ agentId: '18009',
143
143
  // agentId: '13013',
144
144
  // agentId: '12007_390',
145
145
  // agentId: '12014',
146
146
  reqUrl: 'http://192.168.13.103:10003/openatc',
147
- Token: 'eyJraWQiOiIxNzE0MDk1MjUwNTU5IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxNDEzODQ1MCwiaWF0IjoxNzE0MDk1MjUwfQ.17SP6vzbImSV2jy_LC10xQaH7z4aXWvg3yc2bUFLYvE',
147
+ Token: 'eyJraWQiOiIxNzE2NTE5MTM5MjE4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxNjU2MjMzOSwiaWF0IjoxNzE2NTE5MTM5fQ.tWVuMWAkdnISXH6YejL_VP4HPWmjVrL7XHkHSFTxF24',
148
148
  // agentId: '30003-352',
149
149
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
150
150
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -19,8 +19,8 @@ export default {
19
19
  isShowMode: true,
20
20
  modeName: '交警遥控',
21
21
  controlName: '步进',
22
- agentId: '18001',
23
- Token: 'eyJraWQiOiIxNzE2NDI5NDU1MzQ1IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxNjQ3MjY1NywiaWF0IjoxNzE2NDI5NDU3fQ.rt8Lbg99Qtm6DO3YXxJ9gGBEIwQwpNU6xxbO9LBZdrM',
22
+ agentId: 'jmlxhl',
23
+ Token: 'eyJraWQiOiIxNzA4OTA5NDk2ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcwODk1MjY5NiwiaWF0IjoxNzA4OTA5NDk2fQ.FI0gzBQFLyQsj95LG56lVZxb6WYlr2-datNsyv6fF-I',
24
24
  reqUrl: 'http://192.168.13.103:10003/openatc'
25
25
  }
26
26
  },