openatc-components 0.1.32 → 0.1.33

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.
@@ -53,7 +53,7 @@ export default class RingDataModel {
53
53
  addPhaseInfo (phase) {
54
54
  let addphse = {}
55
55
  addphse.name = i18n.t('openatccomponents.overview.phase') + phase.id
56
- addphse.desc = this.getPhaseDescription(phase)
56
+ addphse.desc = this.getPhaseDescription(phase.direction)
57
57
  // 相位锁定选项默认都按照解锁状态显示
58
58
  addphse.locktype = 0
59
59
  addphse.close = 0
@@ -67,25 +67,9 @@ export default class RingDataModel {
67
67
 
68
68
  getPhaseDescription (phaseList) {
69
69
  let list = []
70
- let peddirections = []
71
- let sidewalkPhaseData = this.getPedPhasePos()
72
- for (let walk of sidewalkPhaseData) {
73
- for (let ped of phaseList.peddirection) {
74
- // if (stg === walk.phaseid) {
75
- let obj = {}
76
- obj.name = walk.name
77
- obj.id = walk.id
78
- if (ped === walk.id) {
79
- peddirections.push(obj)
80
- peddirections = Array.from(new Set(peddirections))
81
- }
82
- // }
83
- }
84
- }
85
- for (let id of phaseList.direction) {
70
+ for (let id of phaseList) {
86
71
  let obj = {}
87
72
  obj.id = id
88
- obj.peddirection = peddirections
89
73
  obj.color = '#454545'
90
74
  list.push(obj)
91
75
  }
@@ -97,7 +97,7 @@ export default {
97
97
  agentId: '10002-739',
98
98
  // agentId: '0351-01',
99
99
  reqUrl: 'http://192.168.13.103:10003/openatc',
100
- Token: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
100
+ Token: 'eyJraWQiOiIxNjcwNTUzNTE1MDc3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njk1MzUxNSwiaWF0IjoxNjcwNTUzNTE1fQ.oR9e2Fn5mVmJ4CjZV6zUOdq_23Y84RkuyhK_WppsD_o',
101
101
  // agentId: '30003-352',
102
102
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
103
103
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -19,9 +19,9 @@ export default {
19
19
  isShowMode: true,
20
20
  modeName: '交警遥控',
21
21
  controlName: '步进',
22
- agentId: '12004-950',
23
- Token: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
24
- reqUrl: 'http://192.168.13.105:11003/openatc'
22
+ agentId: 'jmlxhl',
23
+ Token: 'eyJraWQiOiIxNjcwNTUzNTE1MDc3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njk1MzUxNSwiaWF0IjoxNjcwNTUzNTE1fQ.oR9e2Fn5mVmJ4CjZV6zUOdq_23Y84RkuyhK_WppsD_o',
24
+ reqUrl: 'http://192.168.13.103:10003/openatc'
25
25
  }
26
26
  },
27
27
  methods: {
@@ -55,9 +55,9 @@ export default {
55
55
  showWalk: [ 1, 2 ],
56
56
  sidewalkPhaseData: [{key: 'pedphase1653873194007699', phaseid: 1, id: 1, name: '东人行横道', isshow: false}],
57
57
  lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
58
- agentId: '12004-950',
59
- Token: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
60
- Token103: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
58
+ agentId: '13001-460',
59
+ Token: 'eyJraWQiOiIxNjYwMjgzMzQwMzM4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc0NjY4MzM0MCwiaWF0IjoxNjYwMjgzMzQwfQ.xmgkrjwcdwT_miC3krjqL27Tv4txJ9FQuDEKlfWdtzU',
60
+ Token103: 'eyJraWQiOiIxNjQ5MzM4NzA5MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTczODcwOSwiaWF0IjoxNjQ5MzM4NzA5fQ.JDSkpT1SbB61dEKvorhVdZJHKJzoQZEY5DPKHs1Imo0',
61
61
  boxVisible: false,
62
62
  dialogWidth: '80%',
63
63
  crossStatusData: {} // 路口状态数据
@@ -3,7 +3,7 @@
3
3
  position: relative;
4
4
  .iconfont {
5
5
  font-family: "iconfont" !important;
6
- font-size: 34px;
6
+ font-size: 34PX;
7
7
  text-align: center;
8
8
  font-weight: 500;
9
9
  color: #000000;
@@ -12,141 +12,141 @@
12
12
  -moz-osx-font-smoothing: grayscale;
13
13
  }
14
14
  .right-control-part {
15
- min-width: 300px;
15
+ min-width: 300PX;
16
16
  overflow: auto;
17
17
  }
18
18
  .cross-mess {
19
- margin-left: 15px;
20
- margin-top: 15px;
21
- height: 20px;
22
- font-size: 20px;
19
+ margin-left: 15PX;
20
+ margin-top: 15PX;
21
+ height: 20PX;
22
+ font-size: 20PX;
23
23
  font-weight: normal;
24
24
  font-stretch: normal;
25
- line-height: 22px;
26
- letter-spacing: 0px;
25
+ line-height: 22PX;
26
+ letter-spacing: 0PX;
27
27
  color: $--color-text-primary;
28
28
  }
29
29
  .cross-module {
30
30
  float: left;
31
- margin-top: 5px;
32
- padding-left: 15px;
31
+ margin-top: 5PX;
32
+ padding-left: 15PX;
33
33
  width: 100%;
34
- padding-bottom: 20px;
35
- // min-width: 600px;
36
- // height: 180px;
34
+ padding-bottom: 20PX;
35
+ // min-width: 600PX;
36
+ // height: 180PX;
37
37
  background-color: $--color-white;
38
38
  }
39
39
  .cross-content {
40
- margin-top: 19px;
41
- // margin-left: 7px;
40
+ margin-top: 19PX;
41
+ // margin-left: 7PX;
42
42
  overflow: hidden;
43
43
  }
44
44
  .cross-name {
45
- // height: 13px;
46
- font-size: 14px;font-weight: normal;
45
+ // height: 13PX;
46
+ font-size: 14PX;font-weight: normal;
47
47
  font-stretch: normal;
48
- line-height: 22px;
49
- letter-spacing: 0px;
48
+ line-height: 22PX;
49
+ letter-spacing: 0PX;
50
50
  color: $--color-text-regular;
51
51
  }
52
52
  .control-model {
53
53
  float: left;
54
- margin-top: 10px;
55
- // margin-left: 15px;
54
+ margin-top: 10PX;
55
+ // margin-left: 15PX;
56
56
  }
57
57
  .model-label, .stage-label {
58
- width: 100px;
59
- font-size: 14px;
58
+ width: 100PX;
59
+ font-size: 14PX;
60
60
  font-weight: 400;
61
61
  color: #606266;
62
- line-height: 28px;
63
- padding-right: 12px;
62
+ line-height: 28PX;
63
+ padding-right: 12PX;
64
64
  }
65
65
  .single-model {
66
- margin-right: 10px;
66
+ margin-right: 10PX;
67
67
  text-align: center;
68
68
  cursor:pointer;
69
- width: 70px;
70
- height: 65px;
69
+ width: 70PX;
70
+ height: 65PX;
71
71
  background-color: #edf6ff;
72
- border-radius: 6px;
72
+ border-radius: 6PX;
73
73
  line-height: 1.15;
74
74
  .patternWalk{
75
75
  left: 14PX !important;
76
76
  }
77
77
  }
78
78
  .single-model .closephase-icon {
79
- margin-top: 10px;
80
- width: 56px;
81
- height: 24px;
79
+ margin-top: 10PX;
80
+ width: 56PX;
81
+ height: 24PX;
82
82
  }
83
83
  .single-model .model-icon {
84
- margin-top: 10px;
85
- width: 24px;
86
- height: 24px;
84
+ margin-top: 10PX;
85
+ width: 24PX;
86
+ height: 24PX;
87
87
  }
88
88
  .single-model-select {
89
- margin-right: 10px;
89
+ margin-right: 10PX;
90
90
  text-align: center;
91
91
  cursor:pointer;
92
- width: 70px;
93
- height: 65px;
92
+ width: 70PX;
93
+ height: 65PX;
94
94
  background-color: #a2cfff;
95
- border-radius: 6px;
96
- // border: solid 1px #409eff;
95
+ border-radius: 6PX;
96
+ // border: solid 1PX #409eff;
97
97
  }
98
98
  .single-model-name {
99
- margin-top: 3px;
100
- font-size: 12px;
99
+ margin-top: 3PX;
100
+ font-size: 12PX;
101
101
  font-weight: normal;
102
102
  font-stretch: normal;
103
- // line-height: 22px;
104
- letter-spacing: 0px;
103
+ // line-height: 22PX;
104
+ letter-spacing: 0PX;
105
105
  color: #606266;
106
106
  }
107
107
  .current-stage-num {
108
- margin-top: 3px;
109
- font-size: 12px;
108
+ margin-top: 3PX;
109
+ font-size: 12PX;
110
110
  font-weight: bold;
111
111
  font-stretch: normal;
112
- letter-spacing: 0px;
112
+ letter-spacing: 0PX;
113
113
  // color: #303133;
114
114
  color:#606266;
115
115
  }
116
116
  .cross-value {
117
- width: 180px;
118
- height: 22px;
119
- font-size: 14px;
117
+ // width: 180PX;
118
+ height: 22PX;
119
+ font-size: 14PX;
120
120
  font-weight: normal;
121
121
  font-stretch: normal;
122
- line-height: 22px;
123
- letter-spacing: 0px;
122
+ line-height: 22PX;
123
+ letter-spacing: 0PX;
124
124
  color: $--color-text-primary;
125
125
  }
126
126
  .el-tag {
127
- margin-right: 4px;
128
- margin-bottom: 4px;
127
+ margin-right: 4PX;
128
+ margin-bottom: 4PX;
129
129
  }
130
130
  .fault-detail-btn {
131
131
  float: right;
132
- font-size: 14px;
132
+ font-size: 14PX;
133
133
  font-family: Source Han Sans CN;
134
134
  font-weight: 400;
135
135
  color: #409EFF;
136
- line-height: 32px;
137
- margin-right: 20px;
136
+ line-height: 32PX;
137
+ margin-right: 20PX;
138
138
  cursor: pointer;
139
139
  }
140
140
  // 信号机控制状态模块样式
141
141
  .controlStatePart {
142
142
  color: $--color-text-primary;
143
- padding-right: 13px;
143
+ padding-right: 13PX;
144
144
  .el-row {
145
145
  height: 100%;
146
146
  }
147
147
  .el-col {
148
148
  height: 100%;
149
- min-width: 90px;
149
+ min-width: 90PX;
150
150
  text-align: center;
151
151
  }
152
152
  .bg-base {
@@ -155,21 +155,21 @@
155
155
  }
156
156
  .bigPart {
157
157
  width: 100%;
158
- height: 90px;
159
- margin-bottom: 5px;
158
+ height: 90PX;
159
+ margin-bottom: 5PX;
160
160
  .grid-content {
161
- padding-top: 22px;
162
- border-radius: 6px;
161
+ padding-top: 22PX;
162
+ border-radius: 6PX;
163
163
  .value {
164
- margin-bottom: 5px;
165
- font-size: 18px;
166
- line-height: 22px;
167
- height: 22px;
164
+ margin-bottom: 5PX;
165
+ font-size: 18PX;
166
+ line-height: 22PX;
167
+ height: 22PX;
168
168
  color: $--color-text-primary;
169
169
  }
170
170
  .name {
171
- font-size: 14px;
172
- line-height: 22px;
171
+ font-size: 14PX;
172
+ line-height: 22PX;
173
173
  color: $--color-text-secondary;
174
174
  }
175
175
  }
@@ -178,20 +178,20 @@
178
178
  .smallPart {
179
179
  width: 100%;
180
180
  .grid-content {
181
- height: 70px;
182
- padding-top: 10px;
183
- margin-bottom: 5px;
184
- border-radius: 6px;
181
+ height: 70PX;
182
+ padding-top: 10PX;
183
+ margin-bottom: 5PX;
184
+ border-radius: 6PX;
185
185
  .value {
186
- margin-bottom: 5px;
187
- font-size: 14px;
188
- line-height: 22px;
186
+ margin-bottom: 5PX;
187
+ font-size: 14PX;
188
+ line-height: 22PX;
189
189
  color: $--color-text-primary;
190
- height: 22px;
190
+ height: 22PX;
191
191
  }
192
192
  .name {
193
- font-size: 14px;
194
- line-height: 22px;
193
+ font-size: 14PX;
194
+ line-height: 22PX;
195
195
  color: $--color-text-secondary;
196
196
  }
197
197
  }
@@ -200,17 +200,17 @@
200
200
  }
201
201
  // 手动控制弹框
202
202
  .manual-control-modal{
203
- padding: 21px 0px 21px 28px;
204
- min-width: 360px;
203
+ padding: 21PX 0PX 21PX 28PX;
204
+ min-width: 360PX;
205
205
  overflow: auto;
206
206
  .title {
207
- margin-bottom: 24px;
208
- font-size: 20px;
207
+ margin-bottom: 24PX;
208
+ font-size: 20PX;
209
209
  font-weight: 400;
210
- line-height: 22px;
210
+ line-height: 22PX;
211
211
  color: $--color-text-primary;
212
212
  span {
213
- font-size: 14px;
213
+ font-size: 14PX;
214
214
  font-weight: 400;
215
215
  color: $--color-text-secondary;
216
216
  }
@@ -219,31 +219,31 @@
219
219
  // width: 100% !important;
220
220
  }
221
221
  .model-label {
222
- margin-top: 14px;
222
+ margin-top: 14PX;
223
223
  }
224
224
  .stage-label {
225
- margin-top: 30px;
225
+ margin-top: 30PX;
226
226
  }
227
227
  .footer {
228
228
  float: right;
229
- margin: 38px 24px 40px 0;
229
+ margin: 38PX 24PX 40PX 0;
230
230
  }
231
231
  .el-form-item {
232
- margin-bottom: 0px;
232
+ margin-bottom: 0PX;
233
233
  }
234
234
  .el-form-item__label {
235
- font-size: 14px;
235
+ font-size: 14PX;
236
236
  font-weight: 400;
237
237
  color: $--color-text-secondary;
238
238
  }
239
239
  .el-dialog__footer {
240
- padding: 10px 72px 38px 0;
240
+ padding: 10PX 72PX 38PX 0;
241
241
  }
242
242
  .el-dialog__header {
243
- padding: 19px 30px;
243
+ padding: 19PX 30PX;
244
244
  }
245
245
  .el-select {
246
- // width: 75px;
246
+ // width: 75PX;
247
247
  }
248
248
  .el-input {
249
249
  // width: 50%;
@@ -259,12 +259,12 @@
259
259
  }
260
260
  .footer {
261
261
  button {
262
- width: 56px;
263
- height: 32px;
262
+ width: 56PX;
263
+ height: 32PX;
264
264
  padding: 0;
265
265
  text-align: center;
266
- line-height: 30px;
267
- font-size: 12px;
266
+ line-height: 30PX;
267
+ font-size: 12PX;
268
268
  font-weight: normal;
269
269
  font-stretch: normal;
270
270
  }
@@ -275,31 +275,31 @@
275
275
  }
276
276
  .priority-control{
277
277
  height: 100%;
278
- padding: 21px 0px 21px 28px;
279
- min-width: 360px;
278
+ padding: 21PX 0PX 21PX 28PX;
279
+ min-width: 360PX;
280
280
  overflow: auto;
281
281
  .title {
282
- margin-bottom: 24px;
283
- font-size: 20px;
282
+ margin-bottom: 24PX;
283
+ font-size: 20PX;
284
284
  font-weight: 400;
285
- line-height: 22px;
285
+ line-height: 22PX;
286
286
  color: $--color-text-primary;
287
287
  span {
288
- font-size: 14px;
288
+ font-size: 14PX;
289
289
  font-weight: 400;
290
290
  color: $--color-text-secondary;
291
291
  }
292
292
  }
293
293
  .footer {
294
294
  float: right;
295
- margin: 38px 24px 40px 0;
295
+ margin: 38PX 24PX 40PX 0;
296
296
  button {
297
- width: 56px;
298
- height: 32px;
297
+ width: 56PX;
298
+ height: 32PX;
299
299
  padding: 0;
300
300
  text-align: center;
301
- line-height: 30px;
302
- font-size: 12px;
301
+ line-height: 30PX;
302
+ font-size: 12PX;
303
303
  font-weight: normal;
304
304
  font-stretch: normal;
305
305
  }
@@ -308,10 +308,10 @@
308
308
  width: 90%;
309
309
  }
310
310
  .el-form-item {
311
- margin-bottom: 0px;
311
+ margin-bottom: 0PX;
312
312
  }
313
313
  .el-form-item__label {
314
- font-size: 14px;
314
+ font-size: 14PX;
315
315
  font-weight: 400;
316
316
  color: $--color-text-secondary;
317
317
  }
@@ -327,17 +327,17 @@
327
327
  }
328
328
  .tentativeplan-control{
329
329
  height: 100%;
330
- padding: 21px 0px 21px 28px;
331
- min-width: 360px;
330
+ padding: 21PX 0PX 21PX 28PX;
331
+ min-width: 360PX;
332
332
  overflow: auto;
333
333
  .title {
334
- margin-bottom: 24px;
335
- font-size: 20px;
334
+ margin-bottom: 24PX;
335
+ font-size: 20PX;
336
336
  font-weight: 400;
337
- line-height: 22px;
337
+ line-height: 22PX;
338
338
  color: $--color-text-primary;
339
339
  span {
340
- font-size: 14px;
340
+ font-size: 14PX;
341
341
  font-weight: 400;
342
342
  color: $--color-text-secondary;
343
343
  }
@@ -346,31 +346,31 @@
346
346
  // width: 100% !important;
347
347
  }
348
348
  .model-label {
349
- margin-top: 14px;
349
+ margin-top: 14PX;
350
350
  }
351
351
  .stage-label {
352
- margin-top: 30px;
352
+ margin-top: 30PX;
353
353
  }
354
354
  .el-input--mini{
355
355
  width: 90%;
356
356
  }
357
357
  .footer {
358
358
  float: right;
359
- margin: 38px 24px 40px 0;
359
+ margin: 38PX 24PX 40PX 0;
360
360
  }
361
361
  .el-form-item {
362
- margin-bottom: 0px;
362
+ margin-bottom: 0PX;
363
363
  }
364
364
  .el-form-item__label {
365
- font-size: 14px;
365
+ font-size: 14PX;
366
366
  font-weight: 400;
367
367
  color: $--color-text-secondary;
368
368
  }
369
369
  .el-dialog__footer {
370
- padding: 10px 72px 38px 0;
370
+ padding: 10PX 72PX 38PX 0;
371
371
  }
372
372
  .el-dialog__header {
373
- padding: 19px 30px;
373
+ padding: 19PX 30PX;
374
374
  }
375
375
  .el-select {
376
376
  width: 90%;
@@ -383,12 +383,12 @@
383
383
  }
384
384
  .footer {
385
385
  button {
386
- width: 56px;
387
- height: 32px;
386
+ width: 56PX;
387
+ height: 32PX;
388
388
  padding: 0;
389
389
  text-align: center;
390
- line-height: 30px;
391
- font-size: 12px;
390
+ line-height: 30PX;
391
+ font-size: 12PX;
392
392
  font-weight: normal;
393
393
  font-stretch: normal;
394
394
  }
@@ -399,7 +399,7 @@
399
399
  .closephasekanban {
400
400
  width: 60%;
401
401
  margin: 0 auto;
402
- margin-bottom: 13px;
402
+ margin-bottom: 13PX;
403
403
  }
404
404
  .ex
405
405
  .el-input {
@@ -417,33 +417,33 @@
417
417
  }
418
418
  .closephase-control{
419
419
  height: 100%;
420
- min-width: 250px;
420
+ min-width: 250PX;
421
421
  overflow: auto;
422
422
  .closephasekanban {
423
423
  width: 60%;
424
424
  margin: 0 auto;
425
- margin-bottom: 13px;
425
+ margin-bottom: 13PX;
426
426
  }
427
427
  .el-input--mini {
428
428
  width: 44%;
429
429
  }
430
430
  .el-form-item__content {
431
- min-width: 120px;
431
+ min-width: 120PX;
432
432
  }
433
433
  }
434
434
 
435
435
  .lockingphase-control {
436
436
  height: 100%;
437
- min-width: 430px;
437
+ min-width: 430PX;
438
438
  overflow: auto;
439
439
  .closephasekanban {
440
440
  width: 60%;
441
441
  margin: 0 auto;
442
- margin-bottom: 13px;
442
+ margin-bottom: 13PX;
443
443
  }
444
444
  .el-form-item {
445
445
  width: 45%;
446
- min-width: 180px;
446
+ min-width: 180PX;
447
447
  }
448
448
  .el-input-number--mini{
449
449
  width: 100%;
@@ -452,7 +452,7 @@
452
452
  width: 100%;
453
453
  }
454
454
  .el-form-item__content {
455
- width: calc(100% - 120px);
456
- min-width: 80px;
455
+ width: calc(100% - 120PX);
456
+ min-width: 80PX;
457
457
  }
458
458
  }
@@ -1 +0,0 @@
1
- {}