openatc-components 0.4.92 → 0.4.93

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.4.92",
3
+ "version": "0.4.93",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -96,6 +96,10 @@
96
96
  <el-button type="primary" @click="savedraw()">{{$t('openatccomponents.button.save')}}</el-button>
97
97
  <el-button type="primary" @click="importFromFile()">{{$t('openatccomponents.main.import')}}</el-button>
98
98
  <el-button type="primary" @click="exportToFile()">{{$t('openatccomponents.main.export')}}</el-button>
99
+ <el-switch
100
+ v-model="isDefaultShowQuhua"
101
+ active-text="渠化默认显示">
102
+ </el-switch>
99
103
  </div>
100
104
  </div>
101
105
  <div class="custom-edit" ref="customEdit">
@@ -316,7 +320,8 @@ export default {
316
320
  ]),
317
321
  phaseAssociatedMap: new Map(), // 关联相位Map: key 是相位ID, value 是车道数据包含direction
318
322
  dialogVisible: false,
319
- LoadedChannelizatonData: {} // 从接口获取到的渠化参数,用于作为加载数据,从文件导入可修改
323
+ LoadedChannelizatonData: {}, // 从接口获取到的渠化参数,用于作为加载数据,从文件导入可修改
324
+ isDefaultShowQuhua: true // 控制总览是否默认显示渠化图的开关
320
325
  }
321
326
  },
322
327
  methods: {
@@ -823,7 +828,10 @@ export default {
823
828
  // 保存
824
829
  savedraw () {
825
830
  let temp = {}
826
- temp = this.handleSaveParams()
831
+ temp = {
832
+ ...this.handleSaveParams(),
833
+ isDefaultShowQuhua: this.isDefaultShowQuhua
834
+ }
827
835
  this.saveChannelizatonChart(temp)
828
836
  },
829
837
  // 加载
@@ -1,13 +1,12 @@
1
1
  <template>
2
2
  <!-- 渠化绘制demo -->
3
3
  <div style="height: 100%;">
4
- <custom-channelization
5
- :tscParam="tscParams"
6
- :AgentId="agentId" />
7
- <!-- <CustomChannelization
4
+ <!-- <custom-channelization
5
+ :AgentId="agentId" /> -->
6
+ <CustomChannelization
8
7
  :AgentId="agentId"
9
8
  :tscParam="tscParams"
10
- @saveCallback="saveCallback" /> -->
9
+ @saveCallback="saveCallback" />
11
10
  </div>
12
11
  </template>
13
12
  <script>
@@ -17,7 +16,7 @@ export default {
17
16
  name: 'custom-channelization-demo',
18
17
  data () {
19
18
  return {
20
- agentId: '16005',
19
+ agentId: '0',
21
20
  tscParams: {}
22
21
  }
23
22
  },
@@ -186,7 +186,7 @@ export default {
186
186
  // agentId: '12007_390',
187
187
  // agentId: '12014',
188
188
  reqUrl: 'http://192.168.13.103:10003/openatc',
189
- Token: 'eyJraWQiOiIxNzYxMTgyODkxNDMzIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTE4NjQ4OSwiaWF0IjoxNzYxMTc5Mjg5fQ.UHfHzNNby-Y-kee-83_4KEjESDIf4InAvmYSmVmLvk4',
189
+ Token: 'eyJraWQiOiIxNzYxMTk4MTU4MzIwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTIwMTc1NiwiaWF0IjoxNzYxMTk0NTU2fQ.Y7w2piXOChLTCQR4gdPuNIUpmFZM4d2GO04Ce0xgBOk',
190
190
  // agentId: '30003-352',
191
191
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
192
192
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -346,134 +346,7 @@ export default {
346
346
  tscControlData: {},
347
347
  phaseList: [],
348
348
  choosedDirection: [1, 5],
349
- choosedPedDirection: [3],
350
- crossStatusData2: {
351
- 'phase': [
352
- {
353
- 'id': 1,
354
- 'type': 3,
355
- 'pedtype': 3
356
- },
357
- {
358
- 'id': 2,
359
- 'type': 1,
360
- 'pedtype': 1
361
- },
362
- {
363
- 'id': 3,
364
- 'type': 1,
365
- 'pedtype': 1
366
- },
367
- {
368
- 'id': 4,
369
- 'type': 1,
370
- 'pedtype': 1
371
- }
372
- ],
373
- 'mode': 0,
374
- 'control': 5,
375
- 'patternid': 2,
376
- 'cycle': 107,
377
- 'patternoffset': 0,
378
- 'stages': [
379
- [
380
- 1
381
- ],
382
- [
383
- 2
384
- ],
385
- [
386
- 3
387
- ],
388
- [
389
- 4
390
- ],
391
- [
392
- 1
393
- ],
394
- [
395
- 2
396
- ],
397
- [
398
- 3
399
- ],
400
- [
401
- 4
402
- ],
403
- [
404
- 1
405
- ],
406
- [
407
- 2
408
- ],
409
- [
410
- 3
411
- ],
412
- [
413
- 4
414
- ],
415
- [
416
- 1
417
- ],
418
- [
419
- 2
420
- ],
421
- [
422
- 3
423
- ],
424
- [
425
- 4
426
- ]
427
- ],
428
- 'stages_len': [
429
- 0,
430
- 0,
431
- 0,
432
- 0,
433
- 0,
434
- 0,
435
- 0,
436
- 0,
437
- 0,
438
- 0,
439
- 0,
440
- 0,
441
- 0,
442
- 0,
443
- 0,
444
- 0
445
- ],
446
- 'stages_seq': [
447
- 1,
448
- 2,
449
- 3,
450
- 4,
451
- 5,
452
- 6,
453
- 7,
454
- 8,
455
- 9,
456
- 10,
457
- 11,
458
- 12,
459
- 13,
460
- 14,
461
- 15,
462
- 16
463
- ],
464
- 'current_stage': 1,
465
- 'current_stagecd': 0,
466
- 'offset': 0,
467
- 'current_phase': [
468
- 1
469
- ],
470
- 'next_phase': [
471
- 2
472
- ],
473
- 'rings': [],
474
- 'curTime': 43,
475
- 'syncTime': 64
476
- }
349
+ choosedPedDirection: [3]
477
350
  }
478
351
  },
479
352
  components: {