openatc-components 0.4.90 → 0.4.91

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.
@@ -148,6 +148,10 @@ export default {
148
148
  refresh () {
149
149
  // 刷新底图
150
150
  this.$refs.intersectionMap2.resetCrossDiagram()
151
+ },
152
+ refreshArrow () {
153
+ // 高亮箭头按最新数据刷新
154
+ this.$refs.intersectionMap2.refreshArrow()
151
155
  }
152
156
  },
153
157
  mounted () {
@@ -1263,8 +1263,10 @@ export default {
1263
1263
  init () {
1264
1264
  this.sidewalkData = JSON.parse(JSON.stringify(this.Data))
1265
1265
  this.getPedDirection()
1266
- this.handleStatus()
1267
- this.IconAddEvent()
1266
+ this.$nextTick(() => {
1267
+ this.handleStatus()
1268
+ this.IconAddEvent()
1269
+ })
1268
1270
  }
1269
1271
  },
1270
1272
  mounted () {
@@ -879,7 +879,16 @@ export default {
879
879
  return
880
880
  }
881
881
  this.isLoaded = true
882
- this.tempType = res.data.data.type
882
+ this.InfoRes = res
883
+ this.handleInfo(res)
884
+ })
885
+ },
886
+ refreshArrow () {
887
+ // 刷新所选方向箭头,不重新请求接口
888
+ this.handleInfo(this.InfoRes)
889
+ },
890
+ handleInfo (res) {
891
+ this.tempType = res.data.data.type
883
892
  // 获取车道相位、行人相位信息(坐标、名称)
884
893
  this.mainType = this.tempType.split('-')[0]
885
894
  this.mainDirection = this.tempType.split('-')[1]
@@ -888,13 +897,11 @@ export default {
888
897
  this.getMergeDirections()
889
898
  }
890
899
  if (this.isVipRoute && !this.isThirdSignal && !this.isRcp) {
891
- alert('1')
892
900
  // 特勤、分组管控下,非第三方设备且不是rcp协议,按通道显示相位方向;第三方设备和rcp协议还是按路口相位配置显示相位方向
893
901
  this.getChannelInfo()
894
902
  return
895
903
  }
896
904
  if (this.channelType && !this.isThirdSignal) {
897
- alert('2')
898
905
  this.getChannelInfo()
899
906
  return
900
907
  }
@@ -915,7 +922,6 @@ export default {
915
922
  this.contrloType = 'ring'
916
923
  }
917
924
  }
918
- })
919
925
  },
920
926
  getTempCrossInfo (res) {
921
927
  this.crossInfo = res.data.data.param
@@ -938,7 +944,6 @@ export default {
938
944
  this.drawDefaultPhaseIcon()
939
945
  }
940
946
  if ((this.isVipRoute && this.isThirdSignal) || (this.isVipRoute && this.isRcp)) {
941
- alert('3')
942
947
  this.LanePhaseData = this.CrossDiagramMgr.compare(this.LanePhaseData, this.overlapLanePhaseData, 'type', 'nostatus')
943
948
  // console.log(this.LanePhaseData)
944
949
  this.sidewalkPhaseData = this.CrossDiagramMgr.compare(this.sidewalkPhaseData, this.overlapsidewalkPhaseData, 'pedtype', 'nostatus')
@@ -1370,7 +1375,6 @@ export default {
1370
1375
  const targetIds = [4, 8, 12, 16] // 掉头相位后画
1371
1376
  this.LanePhaseData = this.LanePhaseData.filter(item => !targetIds.includes(item.id)).concat(this.LanePhaseData.filter(item => targetIds.includes(item.id)))
1372
1377
  if (!this.isThirdSignal && this.isVipRoute && !this.isRcp) {
1373
- alert('4')
1374
1378
  await this.getConflictList()
1375
1379
  this.handleClickedPhase()
1376
1380
  this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
@@ -1421,7 +1425,7 @@ export default {
1421
1425
  this.EmitAllChoosedDirection(curClickedPhase)
1422
1426
  },
1423
1427
  handleClickedPedPhase () {
1424
- if (!this.isThirdSignal) {
1428
+ if (!this.isThirdSignal && !this.isRcp) {
1425
1429
  this.inneChoosedPedDirection = this.inneChoosedPedDirection.filter(dir => this.pedConflictList.indexOf(dir) === -1)
1426
1430
  }
1427
1431
  // 排他
@@ -191,6 +191,11 @@ export default {
191
191
  this.reset = true
192
192
  })
193
193
  },
194
+ refreshArrow () {
195
+ this.$nextTick(() => {
196
+ this.$refs.crossDiagram.refreshArrow()
197
+ })
198
+ },
194
199
  getParentSize () {
195
200
  // 获取最外层dom尺寸,适配准备
196
201
  var _this = this