openatc-components 0.4.60 → 0.4.62

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.60",
3
+ "version": "0.4.62",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
package/src/api/cross.js CHANGED
@@ -46,6 +46,12 @@ export const getValidDirections = (agentid) => {
46
46
  return api.Send({}, {}, [paramList])
47
47
  }
48
48
 
49
+ export const getMergeDirections = (agentid) => {
50
+ let api = new Authapi('getMergeDirections')
51
+ let paramList = [agentid]
52
+ return api.Send({}, {}, [paramList])
53
+ }
54
+
49
55
  export default {
50
56
  saveChannelizatonChart,
51
57
  getChannelizatonChart,
@@ -223,6 +223,21 @@ const en = {
223
223
  'modelList24': 'Priority Control',
224
224
  'modelList25': 'Azimuth locking',
225
225
  'controlType201': 'Scheme Update Frequency',
226
+ 'ParamsMode0': 'Autonomous Control',
227
+ 'ParamsMode1': 'Local Manual',
228
+ 'ParamsMode2': 'Platform Control',
229
+ 'ParamsMode3': 'Configuration Software Control',
230
+ 'ParamsMode4': 'Remote Control',
231
+ 'ParamsMode5': 'Yellow Flasher Control',
232
+ 'ParamsMode6': 'Degradation Control',
233
+ 'ParamsMode7': 'Script Control',
234
+ 'ParamsMode8': 'Algorithm Control',
235
+ 'ParamsModeundefined': 'Undefined',
236
+ 'phaseType1': 'Red',
237
+ 'phaseType2': 'Yellow',
238
+ 'phaseType3': 'Green',
239
+ 'phaseType4': 'Greenclear',
240
+ 'phaseTypeundefined': 'Undefined',
226
241
  'priorityType': 'Priority Type',
227
242
  'priorityPhase': 'Priority Phase',
228
243
  'typeOption0': 'Regular Priority',
@@ -1329,6 +1344,10 @@ const en = {
1329
1344
  'sl': 'South-Left',
1330
1345
  'sr': 'South-Right',
1331
1346
  'sb': 'South-Back',
1347
+ 'ews': 'East-West-Straight',
1348
+ 'ewl': 'East-West-Left',
1349
+ 'sns': 'South-North-Straight',
1350
+ 'snl': 'South-North-Left',
1332
1351
  'notonline': ' do not online!',
1333
1352
  'generatesuedsucc': 'Generate Suedsucc!',
1334
1353
  'chooseRoute': 'please choose route',
@@ -276,6 +276,21 @@ const zh = {
276
276
  'modelList24': '优先控制',
277
277
  'modelList99': '设备维护',
278
278
  'controlType201': '方案更新频次',
279
+ 'ParamsMode0': '自主控制',
280
+ 'ParamsMode1': '本地手动',
281
+ 'ParamsMode2': '平台控制',
282
+ 'ParamsMode3': '配置软件控制',
283
+ 'ParamsMode4': '遥控器控制',
284
+ 'ParamsMode5': '黄闪器控制',
285
+ 'ParamsMode6': '降级控制',
286
+ 'ParamsMode7': '脚本控制',
287
+ 'ParamsMode8': '算法控制',
288
+ 'ParamsModeundefined': '未知',
289
+ 'phaseType1': '红',
290
+ 'phaseType2': '黄',
291
+ 'phaseType3': '绿',
292
+ 'phaseType4': '绿闪',
293
+ 'phaseTypeundefined': '未知',
279
294
  'tips': '提示',
280
295
  'mingreen': '最小绿(s)',
281
296
  'greenclear': '绿闪(s)',
@@ -1329,6 +1344,10 @@ const zh = {
1329
1344
  'sl': '南左转',
1330
1345
  'sr': '南右转',
1331
1346
  'sb': '南掉头',
1347
+ 'ews': '东西直行',
1348
+ 'ewl': '东西左转',
1349
+ 'sns': '南北直行',
1350
+ 'snl': '南北左转',
1332
1351
  'notonline': '不在线!',
1333
1352
  'generatesuedsucc': '生成成功!',
1334
1353
  'planissuedsucc': '方案下发成功!',
@@ -31,6 +31,15 @@
31
31
  <!-- 右行道路 B-->
32
32
  <div class="right-dir-road" v-if="roadDir === 'right'">
33
33
  <div class="centerText" v-if="crossType !== 'Customroads' && isHasPhase">
34
+ <div class="merge-direction-icon">
35
+ <xdr-dir-selector
36
+ :Data="xdrMData"
37
+ Width="80px"
38
+ Height="80px"
39
+ Widths="80px"
40
+ Heights="80px"
41
+ :showlist="mergeShowList"></xdr-dir-selector>
42
+ </div>
34
43
  <!-- 相位倒计时 -->
35
44
  <div class="phaseCountdown" v-show="isShowInterval" v-if="isLoaded && isHasPhase && isHasCountdown && contrloType === 'ring'" :class="{'countdownBg': isLoaded}">
36
45
  <div v-for="curPhase in phaseCountdownList" :key="curPhase.id" :style="{color: curPhase.phaseCountdownColor}">
@@ -204,7 +213,7 @@ import { getMessageByCode } from '../../../../utils/responseMessage.js'
204
213
 
205
214
  import CrossDirectionConflictList from '../../../../utils/conflictList.js'
206
215
  import RingDataModel from '../../../../utils/RingDataModel.js'
207
- import { getValidDirections } from '../../../../api/cross.js'
216
+ import { getValidDirections, getMergeDirections } from '../../../../api/cross.js'
208
217
 
209
218
  export default {
210
219
  name: 'crossDiagram',
@@ -401,7 +410,12 @@ export default {
401
410
  contrloType: 'ring',
402
411
  isMphaseStatusDataReturnMap: new Map(), // 每个跟随相位的母相位是否返回了相位状态数据
403
412
  overlapStatusCompareSum: 0, // 首次加载跳过比较母相位状态数据是否返回
404
- effectDirData: [] // 路口有效方向
413
+ effectDirData: [], // 路口有效方向
414
+ mergeShowList: [2, 4, 10],
415
+ xdrMData: {
416
+ left: '18px',
417
+ top: '18px'
418
+ }
405
419
  }
406
420
  },
407
421
  methods: {
@@ -867,6 +881,7 @@ export default {
867
881
  this.mainDirection = this.tempType.split('-')[1]
868
882
  if (this.isVipRoute) {
869
883
  this.getValidDirections()
884
+ this.getMergeDirections()
870
885
  }
871
886
  if (this.isVipRoute && !this.isThirdSignal) {
872
887
  // 特勤、分组管控下,非第三方设备,按通道显示相位方向;第三方设备还是按路口相位配置显示相位方向
@@ -1492,6 +1507,30 @@ export default {
1492
1507
  this.effectiveDirection = data.data.data.validDirections || []
1493
1508
  this.getEffectDirectionPos()
1494
1509
  })
1510
+ },
1511
+ getMergeDirections () {
1512
+ getMergeDirections(this.agentId).then((data) => {
1513
+ if (!data.data.success) {
1514
+ this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
1515
+ return
1516
+ }
1517
+ this.mergeDirection = data.data.data.mergeDirections || []
1518
+ if (this.mergeDirection && this.mergeDirection.length > 0) {
1519
+ this.mergeShowList = this.mergeDirection.map(dir => {
1520
+ return {
1521
+ id: dir,
1522
+ color: '#6e737c'
1523
+ }
1524
+ })
1525
+ } else {
1526
+ this.mergeShowList = [
1527
+ {
1528
+ id: '',
1529
+ color: '#fff'
1530
+ }
1531
+ ]
1532
+ }
1533
+ })
1495
1534
  }
1496
1535
  },
1497
1536
  mounted () {
@@ -1545,6 +1584,11 @@ export default {
1545
1584
  color: #299BCC;
1546
1585
  margin-top: 20PX;
1547
1586
  }
1587
+ .merge-direction-icon {
1588
+ width: 80PX;
1589
+ height: 80PX;
1590
+ margin: 0 auto;
1591
+ }
1548
1592
 
1549
1593
  .baseImg {
1550
1594
  width: 100%;
@@ -462,5 +462,10 @@
462
462
  "key": "getValidDirections",
463
463
  "url": "/devs/validdirections",
464
464
  "method": "get"
465
+ },
466
+ {
467
+ "key": "getMergeDirections",
468
+ "url": "/devs/mergedirections",
469
+ "method": "get"
465
470
  }
466
471
  ]