openatc-components 0.3.38 → 0.3.41

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.
@@ -3,8 +3,11 @@
3
3
  <button @click="getSaveParam" >获取相位参数信息</button><br/>
4
4
  <div class="layout-container2">
5
5
  <PatternConfig
6
- :agentids="agentids6"
7
- :opt="opt5"
6
+ :agentids="agentids"
7
+ :opt="opt"
8
+ :isShowTableHeader="isShowTableHeader"
9
+ :tableColums="tableColums"
10
+ :isSingleCrossMode="isSingleCrossMode"
8
11
  :isAllowedExpand="isAllowedExpand"
9
12
  :isOnlyOneTab="isOnlyOneTab"
10
13
  :isShowSingle="isShowSingle"
@@ -18,13 +21,22 @@
18
21
  import {
19
22
  setToken
20
23
  } from '../utils/auth'
24
+ // import PatternConfig from '../kisscomps/components/PatternConfig'
21
25
  export default {
22
26
  name: 'PatternConfigTest',
27
+ // components: {
28
+ // PatternConfig
29
+ // },
23
30
  data () {
24
31
  return {
32
+ tableColums: ['agentid', 'period', 'offset', 'cycle', 'pattern'], // greenWave, period
33
+ // tableColums: ['no', 'id', 'period', 'name', 'isUsed', 'patternId', 'offset', 'cycle', 'pattern'], // greenWave, period
25
34
  isShowSingle: false,
26
35
  isOnlyOneTab: false,
27
- isAllowedExpand: false,
36
+ isSingleCrossMode: true,
37
+ isShowTableHeader: true,
38
+ // isAllowedExpand: false,
39
+ isAllowedExpand: true,
28
40
  // agentids: ['gjnlgjxl'],
29
41
  agentids4: [
30
42
  'tjblxyl',
@@ -103,7 +115,7 @@ export default {
103
115
  }
104
116
  ]
105
117
  },
106
- agentids3: ['gjnlahql', 'xylsnl', 'cslyll'],
118
+ agentids3: ['13003', '13006', '13007', '13013'],
107
119
  // agentids2: ['15001', '15001', '15003', '15004', '15005'],
108
120
  roadDirection: 'right',
109
121
  // reqUrl: 'http://192.168.13.103:10003/openatc',
@@ -155,6 +167,7 @@ export default {
155
167
  {
156
168
  'agentid': 'gjnlgjxl',
157
169
  'patternid': 1,
170
+ 'period': ['09:30', '11:30'],
158
171
  'isused': true,
159
172
  'desc': '方案1',
160
173
  'id': 1,
@@ -165,360 +178,116 @@ export default {
165
178
  'feature': {
166
179
  'patternList': [
167
180
  {
168
- 'patternid': 1,
169
- 'patterndes': '方案1',
170
- 'patterndesc': '方案1',
171
181
  'id': 1,
172
182
  'desc': '方案1',
173
183
  'offset': 0,
174
- 'cycle': 132,
184
+ 'cycle': 90,
185
+ 'contrloType': 'ring',
175
186
  'rings': [
176
187
  [
177
188
  {
189
+ 'name': '相位1',
178
190
  'id': 1,
179
- 'value': 45,
191
+ 'value': 40,
180
192
  'mode': 2,
193
+ 'delaystart': 0,
194
+ 'advanceend': 0,
195
+ 'flowperhour': 0,
196
+ 'saturation': 1700,
181
197
  'desc': [
182
198
  {
183
199
  'id': 1
184
- }
185
- ]
186
- },
187
- {
188
- 'id': 3,
189
- 'value': 25,
190
- 'mode': 2,
191
- 'desc': [
192
- {
193
- 'id': 2
194
200
  },
195
201
  {
196
- 'id': 4
202
+ 'id': 5
197
203
  }
198
204
  ]
199
205
  },
200
206
  {
201
- 'id': 5,
202
- 'value': 26,
203
- 'mode': 2,
204
- 'desc': [
205
-
206
- ]
207
- },
208
- {
209
- 'id': 6,
210
- 'value': 36,
211
- 'mode': 2,
212
- 'desc': [
213
- {
214
- 'id': 10
215
- }
216
- ]
217
- }
218
- ],
219
- [
220
- {
207
+ 'name': '相位2',
221
208
  'id': 2,
222
- 'value': 45,
209
+ 'value': 30,
223
210
  'mode': 2,
211
+ 'delaystart': 0,
212
+ 'advanceend': 0,
213
+ 'flowperhour': 0,
214
+ 'saturation': 1700,
224
215
  'desc': [
225
216
  {
226
- 'id': 5
227
- }
228
- ]
229
- },
230
- {
231
- 'id': 4,
232
- 'value': 51,
233
- 'mode': 2,
234
- 'desc': [
217
+ 'id': 2
218
+ },
235
219
  {
236
220
  'id': 6
237
221
  }
238
222
  ]
239
223
  },
240
224
  {
241
- 'id': 7,
242
- 'value': 36,
225
+ 'name': '相位3',
226
+ 'id': 3,
227
+ 'value': 20,
243
228
  'mode': 2,
229
+ 'delaystart': 0,
230
+ 'advanceend': 0,
231
+ 'flowperhour': 0,
232
+ 'saturation': 1700,
244
233
  'desc': [
245
-
234
+ {
235
+ 'id': 14
236
+ }
246
237
  ]
247
238
  }
248
239
  ],
249
- [
250
-
251
- ],
252
- [
253
-
254
- ]
255
- ],
256
- 'stagesList': [
257
- {
258
- 'split': 45,
259
- 'stages': [
260
- 1,
261
- 2
262
- ]
263
- },
264
- {
265
- 'split': 25,
266
- 'stages': [
267
- 3,
268
- 4
269
- ]
270
- },
271
- {
272
- 'split': 26,
273
- 'stages': [
274
- 5,
275
- 4
276
- ]
277
- },
278
- {
279
- 'split': 36,
280
- 'stages': [
281
- 6,
282
- 7
283
- ]
284
- }
240
+ [],
241
+ [],
242
+ []
285
243
  ],
286
244
  'stages': [
287
245
  [
288
- 1,
289
- 2
290
- ],
291
- [
292
- 3,
293
- 4
246
+ 1
294
247
  ],
295
248
  [
296
- 5,
297
- 4
298
- ],
299
- [
300
- 6,
301
- 7
302
- ]
303
- ],
304
- 'barriers': [
305
- {
306
- 'barrier': 1,
307
- 'length': 45,
308
- 'items': [
309
- {
310
- 'ring': 1,
311
- 'data': [
312
- 2
313
- ]
314
- },
315
- {
316
- 'ring': 2,
317
- 'data': [
318
- 1
319
- ]
320
- }
321
- ]
322
- },
323
- {
324
- 'barrier': 2,
325
- 'length': 51,
326
- 'items': [
327
- {
328
- 'ring': 1,
329
- 'data': [
330
- 4
331
- ]
332
- },
333
- {
334
- 'ring': 2,
335
- 'data': [
336
- 3,
337
- 5
338
- ]
339
- }
340
- ]
341
- },
342
- {
343
- 'barrier': 3,
344
- 'length': 36,
345
- 'items': [
346
- {
347
- 'ring': 1,
348
- 'data': [
349
- 7
350
- ]
351
- },
352
- {
353
- 'ring': 2,
354
- 'data': [
355
- 6
356
- ]
357
- }
358
- ]
359
- }
360
- ]
361
- },
362
- {
363
- 'patternid': 2,
364
- 'patterndes': '方案2',
365
- 'patterndesc': '方案2',
366
- 'id': 2,
367
- 'desc': '方案2',
368
- 'offset': 0,
369
- 'cycle': 176,
370
- 'rings': [
371
- [
372
- {
373
- 'id': 1,
374
- 'value': 70,
375
- 'mode': 2
376
- },
377
- {
378
- 'id': 3,
379
- 'value': 25,
380
- 'mode': 2
381
- },
382
- {
383
- 'id': 5,
384
- 'value': 35,
385
- 'mode': 2
386
- },
387
- {
388
- 'id': 6,
389
- 'value': 46,
390
- 'mode': 2
391
- }
392
- ],
393
- [
394
- {
395
- 'id': 2,
396
- 'value': 70,
397
- 'mode': 2
398
- },
399
- {
400
- 'id': 4,
401
- 'value': 60,
402
- 'mode': 2
403
- },
404
- {
405
- 'id': 7,
406
- 'value': 46,
407
- 'mode': 2
408
- }
409
- ],
410
- [
411
-
249
+ 2
412
250
  ],
413
251
  [
414
-
252
+ 3
415
253
  ]
416
254
  ],
417
255
  'stagesList': [
418
256
  {
419
- 'split': 70,
420
- 'stages': [
421
- 1,
422
- 2
423
- ]
424
- },
425
- {
426
- 'split': 25,
427
- 'stages': [
428
- 3,
429
- 4
257
+ 'key': 0,
258
+ 'green': 0,
259
+ 'yellow': 0,
260
+ 'red': 0,
261
+ 'split': 30,
262
+ 'stageSplit': 0,
263
+ 'phases': [
264
+ 1
430
265
  ]
431
266
  },
432
267
  {
433
- 'split': 35,
434
- 'stages': [
435
- 5,
436
- 4
268
+ 'key': 1,
269
+ 'green': 0,
270
+ 'yellow': 0,
271
+ 'red': 0,
272
+ 'split': 30,
273
+ 'stageSplit': 0,
274
+ 'phases': [
275
+ 2
437
276
  ]
438
277
  },
439
278
  {
440
- 'split': 46,
441
- 'stages': [
442
- 6,
443
- 7
279
+ 'key': 2,
280
+ 'green': 0,
281
+ 'yellow': 0,
282
+ 'red': 0,
283
+ 'split': 20,
284
+ 'stageSplit': 0,
285
+ 'phases': [
286
+ 3
444
287
  ]
445
288
  }
446
289
  ],
447
- 'stages': [
448
- [
449
- 1,
450
- 2
451
- ],
452
- [
453
- 3,
454
- 4
455
- ],
456
- [
457
- 5,
458
- 4
459
- ],
460
- [
461
- 6,
462
- 7
463
- ]
464
- ],
465
- 'barriers': [
466
- {
467
- 'barrier': 1,
468
- 'length': 70,
469
- 'items': [
470
- {
471
- 'ring': 1,
472
- 'data': [
473
- 2
474
- ]
475
- },
476
- {
477
- 'ring': 2,
478
- 'data': [
479
- 1
480
- ]
481
- }
482
- ]
483
- },
484
- {
485
- 'barrier': 2,
486
- 'length': 60,
487
- 'items': [
488
- {
489
- 'ring': 1,
490
- 'data': [
491
- 4
492
- ]
493
- },
494
- {
495
- 'ring': 2,
496
- 'data': [
497
- 3,
498
- 5
499
- ]
500
- }
501
- ]
502
- },
503
- {
504
- 'barrier': 3,
505
- 'length': 46,
506
- 'items': [
507
- {
508
- 'ring': 1,
509
- 'data': [
510
- 7
511
- ]
512
- },
513
- {
514
- 'ring': 2,
515
- 'data': [
516
- 6
517
- ]
518
- }
519
- ]
520
- }
521
- ]
290
+ 'barriers': []
522
291
  }
523
292
  ]
524
293
  }
@@ -529,8 +298,6 @@ export default {
529
298
  }
530
299
  }
531
300
  },
532
- components: {
533
- },
534
301
  methods: {
535
302
  getSaveParam () {
536
303
  console.log('getPatternConfig')
@@ -580,7 +347,7 @@ export default {
580
347
  /* height: 600px; */
581
348
  width: 1020px;
582
349
  // height: 620px;
583
- height: 270px;
350
+ height: 370px;
584
351
  border: 1PX solid yellow;
585
352
  position: relative;
586
353
  }
@@ -10,6 +10,17 @@
10
10
  color: $--color-text-primary;
11
11
  border-radius: 3PX 3PX 0 0;
12
12
  }
13
+ .board-table-header {
14
+ height: 30PX;
15
+ line-height: 32PX;
16
+ overflow: hidden;
17
+ text-align: center;
18
+ padding: 0 6PX;
19
+ margin-bottom: -10PX;
20
+ font-size: 12PX;
21
+ color: $--color-info;
22
+ background-color: $--color-black;
23
+ }
13
24
  .board-column-content {
14
25
  height: auto;
15
26
  overflow: hidden;
@@ -1 +0,0 @@
1
- {}