openatc-components 0.4.56 → 0.4.58

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.
@@ -0,0 +1,115 @@
1
+ {
2
+ "effectDirectionList": [{
3
+ "id": 1,
4
+ "name": "东直行",
5
+ "ename": "East-Straight",
6
+ "x": "530px",
7
+ "y": "267px"
8
+ },
9
+ {
10
+ "id": 2,
11
+ "name": "东左转",
12
+ "ename": "East-Left",
13
+ "x": "530px",
14
+ "y": "297px"
15
+ },
16
+ {
17
+ "id": 3,
18
+ "name": "东右转",
19
+ "ename": "East-Right",
20
+ "x": "530px",
21
+ "y": "238px"
22
+ },
23
+ {
24
+ "id": 4,
25
+ "name": "东掉头",
26
+ "ename": "East-Back",
27
+ "x": "530px",
28
+ "y": "325px"
29
+ },
30
+ {
31
+ "id": 5,
32
+ "name": "西直行",
33
+ "ename": "West-Straight",
34
+ "x": "306px",
35
+ "y": "359px"
36
+ },
37
+ {
38
+ "id": 6,
39
+ "name": "西左转",
40
+ "ename": "West-Left",
41
+ "x": "306px",
42
+ "y": "329px"
43
+ },
44
+ {
45
+ "id": 7,
46
+ "name": "西右转",
47
+ "ename": "West-Right",
48
+ "x": "306px",
49
+ "y": "388px"
50
+ },
51
+ {
52
+ "id": 8,
53
+ "name": "西掉头",
54
+ "ename": "West-Back",
55
+ "x": "306px",
56
+ "y": "300px"
57
+ },
58
+ {
59
+ "id": 9,
60
+ "name": "北直行",
61
+ "ename": "North-Straight",
62
+ "x": "379px",
63
+ "y": "196px"
64
+ },
65
+ {
66
+ "id": 10,
67
+ "name": "北左转",
68
+ "ename": "North-Left",
69
+ "x": "408px",
70
+ "y": "196px"
71
+ },
72
+ {
73
+ "id": 11,
74
+ "name": "北右转",
75
+ "ename": "North-Right",
76
+ "x": "348px",
77
+ "y": "196px"
78
+ },
79
+ {
80
+ "id": 12,
81
+ "name": "北掉头",
82
+ "ename": "North-Back",
83
+ "x": "436px",
84
+ "y": "196px"
85
+ },
86
+ {
87
+ "id": 13,
88
+ "name": "南直行",
89
+ "ename": "South-Straight",
90
+ "x": "470px",
91
+ "y": "421px"
92
+ },
93
+ {
94
+ "id": 14,
95
+ "name": "南左转",
96
+ "ename": "South-Left",
97
+ "x": "440px",
98
+ "y": "421px"
99
+ },
100
+ {
101
+ "id": 15,
102
+ "name": "南右转",
103
+ "ename": "South-Right",
104
+ "x": "500px",
105
+ "y": "421px"
106
+ },
107
+ {
108
+ "id": 16,
109
+ "name": "南掉头",
110
+ "ename": "South-Back",
111
+ "x": "412px",
112
+ "y": "421px"
113
+ }
114
+ ]
115
+ }
@@ -19,6 +19,7 @@ export default class PhaseDataModel {
19
19
  this.RampSidePosMap = new Map() // 匝道支路坐标
20
20
  this.BusMapMap = new Map() // 公交相位底图坐标
21
21
  this.BusPhaseMap = new Map() // 公交相位坐标
22
+ this.EffectPosMap = new Map() // 有效方向坐标
22
23
  this.roadDirection = roadDirection
23
24
  this.Init()
24
25
  }
@@ -28,6 +29,7 @@ export default class PhaseDataModel {
28
29
  let rampJson = require('./posJson/rampPos.json')
29
30
  let busMapJson = require('./posJson/busPos.json').busMap
30
31
  let busPhaseJson = require('./posJson/busPos.json').busphases
32
+ let effectJson = require('./posJson/effectPos.json').effectDirectionList
31
33
  if (this.roadDirection === 'left') {
32
34
  phaseJson = require('./posJson/phasePos.left.json').phaseList
33
35
  busMapJson = require('./posJson/busPos.left.json').busMap
@@ -39,6 +41,7 @@ export default class PhaseDataModel {
39
41
  this.handlePos(rampJson.rampSidePhaseList, this.RampSidePosMap)
40
42
  this.handlePos(busMapJson, this.BusMapMap)
41
43
  this.handlePos(busPhaseJson, this.BusPhaseMap)
44
+ this.handlePos(effectJson, this.EffectPosMap)
42
45
  }
43
46
 
44
47
  handlePos (phaseJson, phaseMap) {
@@ -81,4 +84,8 @@ export default class PhaseDataModel {
81
84
  getBusPhasePos (id) {
82
85
  return this.BusPhaseMap.get(id)
83
86
  }
87
+
88
+ getEffectPos (id) {
89
+ return this.EffectPosMap.get(id)
90
+ }
84
91
  }
@@ -33,17 +33,19 @@
33
33
  <!-- <intersection-base-map
34
34
  ref="intersectionMap"
35
35
  :crossStatusData="crossStatusData"
36
- agentId="tjblsxl-ticp6"
36
+ agentId="1059"
37
37
  isVipRoute
38
38
  :choosedDirection="[1,2,3]"
39
39
  :choosedPedDirection="[3,4]"
40
40
  :roadDirection="roadDirection" /> -->
41
- <!-- <intersection-direction-selection
42
- :agentId="this.agentId"
41
+ <el-button @click="refresh">刷新特勤路口底图</el-button>
42
+ <intersection-direction-selection
43
+ ref="selectMap"
44
+ :agentId="1059"
43
45
  :clickMode="false"
44
46
  :choosedDirection="[14,6,13,8]"
45
47
  :choosedPedDirection="[1]"
46
- :roadDirection="roadDirection" /> -->
48
+ :roadDirection="roadDirection" />
47
49
 
48
50
  <!-- <button @click="lockPhase" >相位锁定</button><br/>
49
51
  <button @click="unlockPhase" >解锁相位</button><br/>
@@ -167,7 +169,7 @@ export default {
167
169
  // agentId: '12007_390',
168
170
  // agentId: '12014',
169
171
  reqUrl: 'http://192.168.13.103:10003/openatc',
170
- Token: 'eyJraWQiOiIxNzQxNjcxODYyMDI2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc0MTY3NTQ2MiwiaWF0IjoxNzQxNjY4MjYyfQ.IcB4eEk2j5WFpgIwUYhu0w5sbbR9rYZNxyS9wnmGJZI',
172
+ Token: 'eyJraWQiOiIxNzQ0MTgzMDYxNjg4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc0NDE4NjY2MiwiaWF0IjoxNzQ0MTc5NDYyfQ.g8_cn1W12VbwxJyLybxczBULqsOyKyw30s1scdcP8Ro',
171
173
  // agentId: '30003-352',
172
174
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
173
175
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -450,6 +452,9 @@ export default {
450
452
  },
451
453
  handleClickCrossIcon (allChoosedDir, curClickedPhase) {
452
454
  console.log('handleClickCrossIcon', allChoosedDir, curClickedPhase)
455
+ },
456
+ refresh () {
457
+ this.$refs.selectMap.refresh()
453
458
  }
454
459
  },
455
460
  created () {
@@ -457,5 +457,10 @@
457
457
  "key": "getPermission",
458
458
  "url": "/auth/role/",
459
459
  "method": "get"
460
+ },
461
+ {
462
+ "key": "getValidDirections",
463
+ "url": "/devs/validdirections",
464
+ "method": "get"
460
465
  }
461
466
  ]