openatc-components 0.1.52 → 0.1.54

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.
Files changed (24) hide show
  1. package/package/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +4 -4
  2. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -5
  3. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +72 -0
  4. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +4 -5
  5. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -6
  6. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +51 -34
  7. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -5
  8. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +5 -5
  9. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +829 -564
  10. package/package/kisscomps/components/overView/index.vue +5 -7
  11. package/package/kissui.min.js +1 -1
  12. package/package.json +1 -1
  13. package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +4 -4
  14. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -5
  15. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +72 -0
  16. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +4 -5
  17. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -6
  18. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +51 -34
  19. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -5
  20. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +5 -5
  21. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +829 -564
  22. package/src/kisscomps/components/overView/index.vue +5 -7
  23. package/src/node_modules/.package_versions.json +1 -0
  24. package/src/utils/RingDataModel.js +14 -9
@@ -37,7 +37,7 @@ export default {
37
37
  controlData: {},
38
38
  crossStatusData: {}, // 路口状态数据
39
39
  detectorStatusData: {}, // 检测器状态数据(包括车辆检测器状态和行人检测器状态)
40
- devStatus: 1,
40
+ // devStatus: 1,
41
41
  isResend: true,
42
42
  intervalFlag: true,
43
43
  phaseControlTimer: null, // 定时器
@@ -102,7 +102,7 @@ export default {
102
102
  registerMessage () {
103
103
  registerMessage(this.AgentId).then(data => {
104
104
  if (!data.data.success) {
105
- this.devStatus = 2
105
+ // this.devStatus = 2
106
106
  let parrenterror = getMessageByCode(data.data.code, this.$i18n.locale)
107
107
  if (data.data.data) {
108
108
  // 子类型错误
@@ -120,7 +120,7 @@ export default {
120
120
  return
121
121
  }
122
122
  this.$emit('registerMessage', data)
123
- this.devStatus = 3
123
+ // this.devStatus = 3
124
124
  this.clearPatternInterval() // 清除其他定时器
125
125
  this.phaseControlTimer = setInterval(() => {
126
126
  if (this.intervalFlag) {
@@ -160,7 +160,7 @@ export default {
160
160
  this.intervalFlag = true
161
161
  if (!data.data.success) {
162
162
  if (data.data.code === '4003') {
163
- this.devStatus = 2
163
+ // this.devStatus = 2
164
164
  this.clearPatternInterval() // 清除其他定时器
165
165
  this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
166
166
  if (this.isResend) {
@@ -32,7 +32,7 @@
32
32
  <div class="right-dir-road" v-if="roadDir === 'right'">
33
33
  <div class="centerText" v-if="crossType !== 'Customroads' && isHasPhase">
34
34
  <!-- 相位倒计时 -->
35
- <div class="phaseCountdown" v-show="isShowInterval" v-if="devStatus === 3 && isLoaded && isHasPhase" :class="{'countdownBg': isLoaded}">
35
+ <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasPhase" :class="{'countdownBg': isLoaded}">
36
36
  <div v-for="curPhase in phaseCountdownList" :key="curPhase.id" :style="{color: curPhase.phaseCountdownColor}">
37
37
  <div v-if="curPhase.phaseCountdown !== -1">
38
38
  <span style="float: left;font-size: 20px;color: #fff;width: 70px;">{{$t('openatccomponents.overview.phase')}}{{curPhase.id}}:</span>
@@ -93,7 +93,7 @@
93
93
  <div class="left-dir-road" v-if="roadDir === 'left'">
94
94
  <div class="centerText" v-if="mainType === '100' || mainType === '101'" :class="{'countdownBg': isLoaded}">
95
95
  <!-- 相位倒计时 -->
96
- <div class="phaseCountdown" v-if="devStatus === 3 && isLoaded && isHasPhase">
96
+ <div class="phaseCountdown" v-if="isLoaded && isHasPhase">
97
97
  <div v-for="curPhase in phaseCountdownList" :key="curPhase.id" :style="{color: curPhase.phaseCountdownColor}">
98
98
  <div v-if="curPhase.phaseCountdown !== -1">
99
99
  <span style="float: left;font-size: 20px;color: #fff;width: 70px;">{{$t('openatccomponents.overview.phase')}}{{curPhase.id}}:</span>
@@ -201,9 +201,9 @@ export default {
201
201
  agentId: {
202
202
  type: String
203
203
  },
204
- devStatus: {
205
- type: Number
206
- },
204
+ // devStatus: {
205
+ // type: Number
206
+ // },
207
207
  isShowInterval: {
208
208
  type: Boolean,
209
209
  devault: true
@@ -94,6 +94,78 @@
94
94
  "name": "南北路段人行横道",
95
95
  "x": "310px",
96
96
  "y": "198px"
97
+ },
98
+ {
99
+ "id": 17,
100
+ "name": "东南人行横道",
101
+ "x": "310px",
102
+ "y": "198px"
103
+ },
104
+ {
105
+ "id": 18,
106
+ "name": "西南人行横道",
107
+ "x": "310px",
108
+ "y": "198px"
109
+ },
110
+ {
111
+ "id": 19,
112
+ "name": "东北人行横道",
113
+ "x": "310px",
114
+ "y": "198px"
115
+ },
116
+ {
117
+ "id": 20,
118
+ "name": "西北人行横道",
119
+ "x": "310px",
120
+ "y": "198px"
121
+ },
122
+ {
123
+ "id": 21,
124
+ "name": "东南人行横道-上",
125
+ "x": "310px",
126
+ "y": "198px"
127
+ },
128
+ {
129
+ "id": 22,
130
+ "name": "东南人行横道-下",
131
+ "x": "310px",
132
+ "y": "198px"
133
+ },
134
+ {
135
+ "id": 23,
136
+ "name": "西南人行横道-上",
137
+ "x": "310px",
138
+ "y": "198px"
139
+ },
140
+ {
141
+ "id": 24,
142
+ "name": "西南人行横道-下",
143
+ "x": "310px",
144
+ "y": "198px"
145
+ },
146
+ {
147
+ "id": 25,
148
+ "name": "东北人行横道-上",
149
+ "x": "310px",
150
+ "y": "198px"
151
+ },
152
+ {
153
+ "id": 26,
154
+ "name": "东北人行横道-下",
155
+ "x": "310px",
156
+ "y": "198px"
157
+ },
158
+ {
159
+ "id": 27,
160
+ "name": "西北人行横道-上",
161
+ "x": "310px",
162
+ "y": "198px"
163
+ },
164
+ {
165
+ "id": 28,
166
+ "name": "西北人行横道-下",
167
+ "x": "310px",
168
+ "y": "198px"
97
169
  }
98
170
  ]
99
171
  }
@@ -32,7 +32,6 @@
32
32
  :modeName="modeName"
33
33
  :controlName="controlName"
34
34
  :stateName="stateName"
35
- :devStatus="devStatus"
36
35
  :roadDirection="roadDirection" />
37
36
  </div>
38
37
  </div>
@@ -61,10 +60,10 @@ export default {
61
60
  type: Object,
62
61
  required: true
63
62
  },
64
- devStatus: {
65
- type: Number,
66
- default: 0
67
- },
63
+ // devStatus: {
64
+ // type: Number,
65
+ // default: 0
66
+ // },
68
67
  agentId: {
69
68
  type: String,
70
69
  default: '0'
@@ -15,7 +15,6 @@
15
15
  <IntersectionMap
16
16
  ref="intersectionMap"
17
17
  :crossStatusData="crossStatusData"
18
- :devStatus="devStatus"
19
18
  :agentId="agentId"
20
19
  :graphicMode="true"
21
20
  :roadDirection="roadDirection"
@@ -47,7 +46,7 @@ export default {
47
46
  boxVisible: false,
48
47
  dialogWidth: '100%',
49
48
  crossStatusData: {}, // 路口状态数据
50
- devStatus: 1,
49
+ // devStatus: 1,
51
50
  isResend: true,
52
51
  intervalFlag: true,
53
52
  phaseControlTimer: null, // 定时器
@@ -131,7 +130,7 @@ export default {
131
130
  registerMessage () {
132
131
  registerMessage(this.AgentId).then(data => {
133
132
  if (!data.data.success) {
134
- this.devStatus = 2
133
+ // this.devStatus = 2
135
134
  let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + this.AgentId
136
135
  let msg = getMessageByCode(data.data.code, this.$i18n.locale)
137
136
  if (data.data.data) {
@@ -148,7 +147,7 @@ export default {
148
147
  return
149
148
  }
150
149
  this.$emit('registerMessage', data)
151
- this.devStatus = 3
150
+ // this.devStatus = 3
152
151
  this.clearPatternInterval() // 清除其他定时器
153
152
  this.phaseControlTimer = setInterval(() => {
154
153
  if (this.intervalFlag) {
@@ -158,7 +157,7 @@ export default {
158
157
  })
159
158
  },
160
159
  reSend () { // 设备掉线重连机制
161
- this.devStatus = 1
160
+ // this.devStatus = 1
162
161
  this.clearRegisterMessageTimer()
163
162
  this.registerMessageTimer = setTimeout(() => {
164
163
  this.reconnectionDev()
@@ -189,7 +188,7 @@ export default {
189
188
  if (!data.data.success) {
190
189
  let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + this.AgentId
191
190
  if (data.data.code === '4003') {
192
- this.devStatus = 2
191
+ // this.devStatus = 2
193
192
  this.clearPatternInterval() // 清除其他定时器
194
193
  this.clearVolumeInterval()
195
194
  this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
@@ -21,7 +21,7 @@
21
21
  <div style="cursor:pointer;">
22
22
  <div class="ring-phase">
23
23
  <!-- <patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
24
- <xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
24
+ <xdrdirselector Width="38px" Height="36px" :showlist="item.direction"></xdrdirselector>
25
25
  </div>
26
26
  <div class="box">
27
27
  <div class="ring-nums">P{{item.id}}</div>
@@ -190,12 +190,15 @@ export default {
190
190
  }
191
191
  // this.controlDatas = this.controlData
192
192
  this.getPedPhasePos()
193
- if ((this.controlData && this.controlData.patternid === 109) || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
194
- this.handleTentivePatternData()
195
- } else if (this.controlData) {
196
- this.handlePatternData()
193
+ if (this.localPatternList) {
194
+ let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
195
+ if (idPattern.length === 0 || (this.controlData && this.showCondition)) {
196
+ this.handleTentivePatternData()
197
+ } else if (this.controlData) {
198
+ this.handlePatternData()
199
+ }
200
+ this.handleBarrierHeight()
197
201
  }
198
- this.handleBarrierHeight()
199
202
  },
200
203
  // 深度观察监听
201
204
  deep: true
@@ -265,12 +268,13 @@ export default {
265
268
  },
266
269
  created () {
267
270
  this.globalParamModel = this.$store.getters.globalParamModel
271
+ let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
268
272
  if (this.patternStatusList && this.newCycle && !this.controlData) {
269
273
  setTimeout(() => {
270
274
  this.handleCurrentChange(this.patternStatusList)
271
275
  this.handleBarrierHeight()
272
276
  }, 400)
273
- } else if ((this.controlData && this.controlData.patternid === 109) || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
277
+ } else if (idPattern.length === 0 || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
274
278
  this.handleTentivePatternData()
275
279
  } else {
276
280
  this.handlePatternData()
@@ -291,6 +295,7 @@ export default {
291
295
  let currPhase = this.phaseList.filter((item) => {
292
296
  return item.id === stg
293
297
  })[0]
298
+ if (!currPhase.peddirection) return
294
299
  for (let walk of this.sidewalkPhaseData) {
295
300
  for (let ped of currPhase.peddirection) {
296
301
  if (stg === walk.phaseid) {
@@ -509,16 +514,20 @@ export default {
509
514
  })[0]
510
515
  let peddirections = []
511
516
  for (let walk of this.sidewalkPhaseData) {
512
- for (let ped of currPhase.peddirection) {
513
- // if (stg === walk.phaseid) {
514
- let objs = {}
515
- objs.name = walk.name
516
- objs.id = walk.id
517
- if (ped === walk.id) {
518
- peddirections.push(objs)
519
- peddirections = Array.from(new Set(peddirections))
517
+ if (currPhase.peddirection) {
518
+ for (let ped of currPhase.peddirection) {
519
+ // if (stg === walk.phaseid) {
520
+ let objs = {}
521
+ objs.name = walk.name
522
+ objs.id = walk.id
523
+ if (ped === walk.id) {
524
+ peddirections.push(objs)
525
+ peddirections = Array.from(new Set(peddirections))
526
+ }
527
+ // }
520
528
  }
521
- // }
529
+ } else {
530
+ peddirections = []
522
531
  }
523
532
  }
524
533
  if (ring.desc) {
@@ -720,16 +729,20 @@ export default {
720
729
  })[0]
721
730
  let peddirections = []
722
731
  for (let walk of this.sidewalkPhaseData) {
723
- for (let ped of currPhase.peddirection) {
724
- // if (stg === walk.phaseid) {
725
- let objs = {}
726
- objs.name = walk.name
727
- objs.id = walk.id
728
- if (ped === walk.id) {
729
- peddirections.push(objs)
730
- peddirections = Array.from(new Set(peddirections))
732
+ if (currPhase.peddirection) {
733
+ for (let ped of currPhase.peddirection) {
734
+ // if (stg === walk.phaseid) {
735
+ let objs = {}
736
+ objs.name = walk.name
737
+ objs.id = walk.id
738
+ if (ped === walk.id) {
739
+ peddirections.push(objs)
740
+ peddirections = Array.from(new Set(peddirections))
741
+ }
742
+ // }
731
743
  }
732
- // }
744
+ } else {
745
+ peddirections = []
733
746
  }
734
747
  }
735
748
  if (ring.desc) {
@@ -908,16 +921,20 @@ export default {
908
921
  })[0]
909
922
  let peddirections = []
910
923
  for (let walk of this.sidewalkPhaseData) {
911
- for (let ped of currPhase.peddirection) {
912
- // if (stg === walk.phaseid) {
913
- let objs = {}
914
- objs.name = walk.name
915
- objs.id = walk.id
916
- if (ped === walk.id) {
917
- peddirections.push(objs)
918
- peddirections = Array.from(new Set(peddirections))
924
+ if (currPhase.peddirection) {
925
+ for (let ped of currPhase.peddirection) {
926
+ // if (stg === walk.phaseid) {
927
+ let objs = {}
928
+ objs.name = walk.name
929
+ objs.id = walk.id
930
+ if (ped === walk.id) {
931
+ peddirections.push(objs)
932
+ peddirections = Array.from(new Set(peddirections))
933
+ }
934
+ // }
919
935
  }
920
- // }
936
+ } else {
937
+ peddirections = []
921
938
  }
922
939
  }
923
940
  if (ring.desc && ring.desc.length > 0) {
@@ -96,7 +96,6 @@
96
96
  :untreatedFault="untreatedFault"
97
97
  :closePhase="closePhase"
98
98
  :agentName="agentName"
99
- :devStatus="devStatus"
100
99
  :agentId="agentId"
101
100
  :crossStatusData="crossStatusData"
102
101
  :phaseList="phaseList"
@@ -158,10 +157,10 @@ export default {
158
157
  type: String,
159
158
  default: ''
160
159
  },
161
- devStatus: {
162
- type: Number,
163
- default: 0
164
- },
160
+ // devStatus: {
161
+ // type: Number,
162
+ // default: 0
163
+ // },
165
164
  agentId: {
166
165
  type: String,
167
166
  default: '0'
@@ -17,7 +17,7 @@
17
17
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.crossname')}}:</div>
18
18
  <div style="margin-left: 85px;" class="cross-value">{{agentName}}</div>
19
19
  </div>
20
- <div class="cross-content">
20
+ <!-- <div class="cross-content">
21
21
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.divicestate')}}:</div>
22
22
  <div
23
23
  v-show="devStatus===3"
@@ -34,7 +34,7 @@
34
34
  style="margin-left: 85px;"
35
35
  class="cross-value"
36
36
  >{{$t('openatccomponents.overview.onlineing')}}</div>
37
- </div>
37
+ </div> -->
38
38
  <!-- <div class="cross-content"><div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.protocoltype')}}:</div><div style="margin-left: 85px;" class="cross-value">{{protocol}}</div></div> -->
39
39
  <!-- <div class="cross-content"><div style="float: left;" class="cross-name">信号机型号:</div><div style="margin-left: 85px;" class="cross-value">XHJ-CW-GA-KSS100</div></div> -->
40
40
  <div class="cross-content">
@@ -202,9 +202,9 @@ export default {
202
202
  agentName: {
203
203
  type: String
204
204
  },
205
- devStatus: {
206
- type: Number
207
- },
205
+ // devStatus: {
206
+ // type: Number
207
+ // },
208
208
  agentId: {
209
209
  type: String
210
210
  },