openatc-components 0.2.4 → 0.2.6

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.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -48,7 +48,7 @@
48
48
  <div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
49
49
  </div>
50
50
  </div>
51
- <div v-show="(this.curtime>0 && cycle && cycle>0) || (this.curtime>0 && newCycle && newCycle>0)">
51
+ <div v-show="(this.curtime>0 && cycle && cycle>0 && this.isControl) || (this.curtime>0 && newCycle && newCycle>0 && this.isControl)">
52
52
  <div class="curTimeDiv" :style="{'left':paddingLeft }">{{ timeNumDevide }}</div>
53
53
  <div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
54
54
  </div>
@@ -108,6 +108,7 @@ export default {
108
108
  patternIds: this.patternId,
109
109
  newPatterns: [],
110
110
  newList: [],
111
+ isControl: true,
111
112
  contrloCycle: 0,
112
113
  sidewalkPhaseData: [],
113
114
  // controlDatas: this.controlData,
@@ -209,8 +210,13 @@ export default {
209
210
  watch: {
210
211
  controlPhase: {
211
212
  handler: function (val, oldVal) {
212
- if (this.controlPhase && this.controlPhase.curTime) {
213
- this.curtime = this.controlPhase.curTime
213
+ if (val && val.curTime) {
214
+ this.curtime = val.curTime
215
+ if (val.control === '相位锁定' || val.control === '通道锁定' || val.control === '阶段锁定') {
216
+ this.isControl = false
217
+ } else {
218
+ this.isControl = true
219
+ }
214
220
  }
215
221
  },
216
222
  // 深度观察监听
@@ -233,8 +239,14 @@ export default {
233
239
  }
234
240
  this.handleBarrierHeight()
235
241
  }
236
- if (!this.controlData.curTime) return
237
- this.curtime = this.controlData.curTime
242
+ if (val && val.curTime) {
243
+ this.curtime = val.curTime
244
+ if (val.control === '相位锁定' || val.control === '通道锁定' || val.control === '阶段锁定') {
245
+ this.isControl = false
246
+ } else {
247
+ this.isControl = true
248
+ }
249
+ }
238
250
  },
239
251
  // 深度观察监听
240
252
  deep: true
@@ -11,7 +11,7 @@
11
11
  **/
12
12
  <template>
13
13
  <div>
14
- <div class="cross-mess" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.crossinfo')}}</div>
14
+ <div class="cross-mess">{{$t('openatccomponents.overview.crossinfo')}}</div>
15
15
  <div class="cross-module">
16
16
  <div class="cross-content">
17
17
  <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.crossname')}}:</div>
@@ -76,11 +76,11 @@
76
76
  <div class="control-bottom">
77
77
  <div
78
78
  class="cross-mess"
79
- style="float: left;margin-top: 40px;margin-bottom: 18px;"
79
+ style="float: left;margin-top: 20px;margin-bottom: 18px;"
80
80
  >{{$t('openatccomponents.overview.controlmode')}}</div>
81
81
  <el-button
82
82
  type="primary"
83
- style="float: right; margin-right: 20px;margin-top: 40px;"
83
+ style="float: right; margin-right: 20px;margin-top: 40px;font-size: 14px;"
84
84
  size="mini"
85
85
  v-if="isHasPermission('configer:manual') && isHasPermission('configer:manual:renew')"
86
86
  @click="changeStatus"
@@ -150,8 +150,8 @@
150
150
  <!-- 信号机控制状态模块 End-->
151
151
 
152
152
  <div class="cross-content">
153
- <div style="float: left;" class="cross-name">{{$t('openatccomponents.overview.currentstage')}}:</div>
154
- <div style="margin-left: 85PX;">
153
+ <div class="cross-name">{{$t('openatccomponents.overview.currentstage')}}:</div>
154
+ <div>
155
155
  <Stages :crossStatusData="crossStatusData"
156
156
  :phaseList="phaseList"
157
157
  @onSelectStages="onSelectStages"></Stages>
@@ -12,7 +12,7 @@
12
12
  <template>
13
13
  <div id="intersection-stages" class="intersection-stages" :style="stageStyle">
14
14
  <!-- <div class="cross-content"><div style="float: left;" class="cross-name">{{'当前阶段'}}:</div> -->
15
- <div style="margin-left: 10PX;" >
15
+ <div>
16
16
  <div style="width: 100%; height: auto;">
17
17
  <div class="control-model" v-for="(item, index) in stagesList" :key="index">
18
18
  <div style="position:relative;" :style="singleStyle" class="single-model" @click="selectStages(index + 1)" :class="currentStage == index + 1 ? 'single-model-select' : ''">
@@ -19,7 +19,7 @@ export default {
19
19
  isShowMode: true,
20
20
  modeName: '交警遥控',
21
21
  controlName: '步进',
22
- agentId: 'jmlxhl',
22
+ agentId: 'bclsnl',
23
23
  Token: 'eyJraWQiOiIxNzA4OTA5NDk2ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcwODk1MjY5NiwiaWF0IjoxNzA4OTA5NDk2fQ.FI0gzBQFLyQsj95LG56lVZxb6WYlr2-datNsyv6fF-I',
24
24
  reqUrl: 'http://192.168.13.103:10003/openatc'
25
25
  }
@@ -55,8 +55,8 @@ export default {
55
55
  showWalk: [ 1, 2 ],
56
56
  sidewalkPhaseData: [{key: 'pedphase1653873194007699', phaseid: 1, id: 1, name: '东人行横道', isshow: false}],
57
57
  lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
58
- agentId: '12004-950',
59
- Token: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
58
+ agentId: 'bclsnl',
59
+ Token: 'eyJraWQiOiIxNzEzNDkyMDM3Mzc5IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxMzUzNTIzNywiaWF0IjoxNzEzNDkyMDM3fQ.SONz4foJQutGgyF_CJhcQRimDcYwbsJyMzdjZg9cgLE',
60
60
  Token103: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
61
61
  boxVisible: false,
62
62
  dialogWidth: '80%',
@@ -37,7 +37,7 @@
37
37
  background-color: $--color-white;
38
38
  }
39
39
  .cross-content {
40
- margin-top: 19PX;
40
+ margin-top: 10PX;
41
41
  // margin-left: 7PX;
42
42
  overflow: hidden;
43
43
  }
@@ -1 +0,0 @@
1
- {}