openatc-components 0.1.51 → 0.1.52
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/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +4 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -5
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +0 -72
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -4
- package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +6 -5
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +5 -4
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +5 -5
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +564 -829
- package/package/kisscomps/components/overView/index.vue +15 -7
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +4 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -5
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/sidePos.json +0 -72
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -4
- package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +6 -5
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +5 -4
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +5 -5
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +564 -829
- package/src/kisscomps/components/overView/index.vue +15 -7
- package/src/node_modules/.package_versions.json +0 -1
package/package.json
CHANGED
package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue
CHANGED
|
@@ -37,7 +37,7 @@ export default {
|
|
|
37
37
|
controlData: {},
|
|
38
38
|
crossStatusData: {}, // 路口状态数据
|
|
39
39
|
detectorStatusData: {}, // 检测器状态数据(包括车辆检测器状态和行人检测器状态)
|
|
40
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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="isLoaded && isHasPhase" :class="{'countdownBg': isLoaded}">
|
|
35
|
+
<div class="phaseCountdown" v-show="isShowInterval" v-if="devStatus === 3 && 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="isLoaded && isHasPhase">
|
|
96
|
+
<div class="phaseCountdown" v-if="devStatus === 3 && 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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
devStatus: {
|
|
205
|
+
type: Number
|
|
206
|
+
},
|
|
207
207
|
isShowInterval: {
|
|
208
208
|
type: Boolean,
|
|
209
209
|
devault: true
|
|
@@ -94,78 +94,6 @@
|
|
|
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"
|
|
169
97
|
}
|
|
170
98
|
]
|
|
171
99
|
}
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
:modeName="modeName"
|
|
33
33
|
:controlName="controlName"
|
|
34
34
|
:stateName="stateName"
|
|
35
|
+
:devStatus="devStatus"
|
|
35
36
|
:roadDirection="roadDirection" />
|
|
36
37
|
</div>
|
|
37
38
|
</div>
|
|
@@ -60,10 +61,10 @@ export default {
|
|
|
60
61
|
type: Object,
|
|
61
62
|
required: true
|
|
62
63
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
devStatus: {
|
|
65
|
+
type: Number,
|
|
66
|
+
default: 0
|
|
67
|
+
},
|
|
67
68
|
agentId: {
|
|
68
69
|
type: String,
|
|
69
70
|
default: '0'
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<IntersectionMap
|
|
16
16
|
ref="intersectionMap"
|
|
17
17
|
:crossStatusData="crossStatusData"
|
|
18
|
+
:devStatus="devStatus"
|
|
18
19
|
:agentId="agentId"
|
|
19
20
|
:graphicMode="true"
|
|
20
21
|
:roadDirection="roadDirection"
|
|
@@ -46,7 +47,7 @@ export default {
|
|
|
46
47
|
boxVisible: false,
|
|
47
48
|
dialogWidth: '100%',
|
|
48
49
|
crossStatusData: {}, // 路口状态数据
|
|
49
|
-
|
|
50
|
+
devStatus: 1,
|
|
50
51
|
isResend: true,
|
|
51
52
|
intervalFlag: true,
|
|
52
53
|
phaseControlTimer: null, // 定时器
|
|
@@ -130,7 +131,7 @@ export default {
|
|
|
130
131
|
registerMessage () {
|
|
131
132
|
registerMessage(this.AgentId).then(data => {
|
|
132
133
|
if (!data.data.success) {
|
|
133
|
-
|
|
134
|
+
this.devStatus = 2
|
|
134
135
|
let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + this.AgentId
|
|
135
136
|
let msg = getMessageByCode(data.data.code, this.$i18n.locale)
|
|
136
137
|
if (data.data.data) {
|
|
@@ -147,7 +148,7 @@ export default {
|
|
|
147
148
|
return
|
|
148
149
|
}
|
|
149
150
|
this.$emit('registerMessage', data)
|
|
150
|
-
|
|
151
|
+
this.devStatus = 3
|
|
151
152
|
this.clearPatternInterval() // 清除其他定时器
|
|
152
153
|
this.phaseControlTimer = setInterval(() => {
|
|
153
154
|
if (this.intervalFlag) {
|
|
@@ -157,7 +158,7 @@ export default {
|
|
|
157
158
|
})
|
|
158
159
|
},
|
|
159
160
|
reSend () { // 设备掉线重连机制
|
|
160
|
-
|
|
161
|
+
this.devStatus = 1
|
|
161
162
|
this.clearRegisterMessageTimer()
|
|
162
163
|
this.registerMessageTimer = setTimeout(() => {
|
|
163
164
|
this.reconnectionDev()
|
|
@@ -188,7 +189,7 @@ export default {
|
|
|
188
189
|
if (!data.data.success) {
|
|
189
190
|
let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + this.AgentId
|
|
190
191
|
if (data.data.code === '4003') {
|
|
191
|
-
|
|
192
|
+
this.devStatus = 2
|
|
192
193
|
this.clearPatternInterval() // 清除其他定时器
|
|
193
194
|
this.clearVolumeInterval()
|
|
194
195
|
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="
|
|
24
|
+
<xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
|
|
25
25
|
</div>
|
|
26
26
|
<div class="box">
|
|
27
27
|
<div class="ring-nums">P{{item.id}}</div>
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
:untreatedFault="untreatedFault"
|
|
97
97
|
:closePhase="closePhase"
|
|
98
98
|
:agentName="agentName"
|
|
99
|
+
:devStatus="devStatus"
|
|
99
100
|
:agentId="agentId"
|
|
100
101
|
:crossStatusData="crossStatusData"
|
|
101
102
|
:phaseList="phaseList"
|
|
@@ -157,10 +158,10 @@ export default {
|
|
|
157
158
|
type: String,
|
|
158
159
|
default: ''
|
|
159
160
|
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
devStatus: {
|
|
162
|
+
type: Number,
|
|
163
|
+
default: 0
|
|
164
|
+
},
|
|
164
165
|
agentId: {
|
|
165
166
|
type: String,
|
|
166
167
|
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
|
-
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
devStatus: {
|
|
206
|
+
type: Number
|
|
207
|
+
},
|
|
208
208
|
agentId: {
|
|
209
209
|
type: String
|
|
210
210
|
},
|