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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.4.52",
3
+ "version": "0.4.54",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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">
@@ -167,7 +167,7 @@ export default {
167
167
  // agentId: '12007_390',
168
168
  // agentId: '12014',
169
169
  reqUrl: 'http://192.168.13.103:10003/openatc',
170
- Token: 'eyJraWQiOiIxNzQyMzY0ODY2NjgxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc0MjM2ODQ2NiwiaWF0IjoxNzQyMzYxMjY2fQ.gx5NHhNR27AxC9DW0-AYnB5Qhxe8ji3KHzHwX_-pSV4',
170
+ Token: 'eyJraWQiOiIxNzQyODA1NjkxMDAxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc0Mjg2MDQ1NywiaWF0IjoxNzQyODE3MjU3fQ.kDOqC_oy_bq2NdwKqVUTZUFXrHns5v-EvkwuXVQASm4',
171
171
  // agentId: '30003-352',
172
172
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
173
173
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -1,18 +1,18 @@
1
1
  <template>
2
2
  <div id="test1">
3
- <!-- <overview
3
+ <overview
4
4
  :AgentId="agentId"
5
5
  :reqUrl="reqUrl"
6
6
  :modeName="modeName"
7
7
  :controlName="controlName"
8
8
  :isShowState="isShowState"
9
9
  :isShowMode="isShowMode"
10
- :Token="Token"></overview> -->
10
+ :Token="Token"></overview>
11
11
  <el-button @click="handleChangeOverview">切换overview组件</el-button>
12
- <overview-component
13
- :AgentId="agentid2"
12
+ <!-- <overview-component
13
+ :AgentId="agentId"
14
14
  :isShowInterval="isShowInterval"
15
- :isShowMessage ="isShowMessage"/>
15
+ :isShowMessage ="isShowMessage"/> -->
16
16
  </div>
17
17
  </template>
18
18
 
@@ -24,9 +24,9 @@ export default {
24
24
  isShowMode: true,
25
25
  modeName: '交警遥控',
26
26
  controlName: '步进',
27
- agentId: '13013',
28
- agentid1: 'gjnlahql',
29
- agentid2: '12007_001',
27
+ agentId: '0',
28
+ agentid1: 'gjnljml',
29
+ agentid2: '12008_835_ticp',
30
30
  isShowMessage: false,
31
31
  isShowInterval: true,
32
32
  sum: 0,
@@ -17,6 +17,10 @@
17
17
  overflow: auto;
18
18
  height: 100%;
19
19
  }
20
+ .realtime-panel {
21
+ overflow: hidden;
22
+ background-color: $--color-white;
23
+ }
20
24
  .cross-mess {
21
25
  margin-left: 15PX;
22
26
  margin-top: 15PX;
@@ -294,6 +298,7 @@
294
298
  .manual-control-modal-new {
295
299
  padding: 20PX 20PX 0 20PX;
296
300
  height: 100%;
301
+ background-color: $--color-white;
297
302
  .el-tabs {
298
303
  height: 100%;
299
304
  }