openatc-components 0.4.52 → 0.4.54

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/config/index.js CHANGED
@@ -16,7 +16,7 @@ module.exports = {
16
16
  // target: 'http://192.168.14.2:8012/openatc',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
17
17
  // target: 'https://dolphin-test.kedacom.com/openatc',
18
18
  // target: 'http://192.168.13.105:11003/openatc',
19
- target: 'http://192.168.13.103:10003/openatc',
19
+ target: 'http://192.168.15.10:8012/openatc',
20
20
  // target: 'http://10.165.32.135:30555/openatc',
21
21
  // target: 'http://192.168.15.11:8012/openatc',
22
22
  // target: 'http://192.168.13.103:10003/openatc',
@@ -400,6 +400,7 @@ export default {
400
400
  },
401
401
  methods: {
402
402
  compareIsChangedPhase (newCrossStatus, oldCrossStatus) {
403
+ if (newCrossStatus.control === 1 || newCrossStatus.control === 2 || newCrossStatus.control === 3) return
403
404
  // 返回的相位状态改变后,按照返回的相位状态更新路口相位显示(下个周期生效)
404
405
  let newPhaseIds = newCrossStatus.phase.map(item => item.id)
405
406
  let oldPhaseIds = oldCrossStatus.phase.map(item => item.id)
@@ -416,6 +417,7 @@ export default {
416
417
  },
417
418
  handleTempCrossStatus (val) {
418
419
  // 模版路口图状态数据
420
+ debugger
419
421
  this.phaseStatusList = val.phase
420
422
  this.overlapStatusList = val.overlap
421
423
  if (val.control === 1 || val.control === 2 || val.control === 3) {
@@ -16,7 +16,7 @@
16
16
  <div class="control-model" v-for="(item, index) in PhaseList" :key="index">
17
17
  <div style="position:relative;" :style="{...singleStyle, 'backgroundColor': item[0].bgcolor}" class="single-model" @click="selectLegend(index + 1)" :class="currentStage == index + 1 ? 'single-model-select' : ''">
18
18
  <xdr-dir-selector :Width="dirWidth" :Height="dirHeight" :Widths="dirWidths" :Heights="dirHeights" :Data="showStyle" :Datas="showStyles" :showlist="dirListSetTheme(item)"></xdr-dir-selector>
19
- <div style="display:flex;flex-direction:row;justify-content:center;align-items:end;" :style="{height: StageHeight}">
19
+ <div style="display:flex;flex-direction:row;justify-content:center;align-items:end;">
20
20
  <div class="current-stage-num" style="width:25%;" :style="{color: themeColor, fontSize: numSize}">{{item[0].phaseid}}</div>
21
21
  <div style="width:70%;">
22
22
  <i class="iconfont icon-feijidongche" :style="{color: themeColor, fontSize: iconSize}" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 6"></i>
@@ -485,6 +485,15 @@ export default {
485
485
  }
486
486
  },
487
487
  watch: {
488
+ platform: {
489
+ handler: function (val1, val2) {
490
+ if (val1 !== val2 && val2 !== undefined) {
491
+ this.changeStatus()
492
+ }
493
+ },
494
+ // 深度观察监听
495
+ deep: true
496
+ },
488
497
  agentId: {
489
498
  handler: function (val1, val2) {
490
499
  if (val1 !== val2) {
@@ -631,6 +640,10 @@ export default {
631
640
  this.isOperation = true
632
641
  if (this.platform !== undefined && this.platform !== 'OpenATC') {
633
642
  this.queryThirdParty()
643
+ } else {
644
+ this.funcSort = 'allFunc'
645
+ this.thirdPartyControlMenu = []
646
+ this.thirdPartyControl = []
634
647
  }
635
648
  this.$refs.ManualControlModalNew.init()
636
649
  },
@@ -10,7 +10,7 @@
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
12
  <template>
13
- <div style="overflow: hidden;">
13
+ <div class="realtime-panel">
14
14
  <div class="cross-mess">{{$t('openatccomponents.overview.crossinfo')}}</div>
15
15
  <div class="cross-module">
16
16
  <div class="cross-content">