openatc-components 0.2.84 → 0.2.86

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.84",
3
+ "version": "0.2.86",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -343,6 +343,8 @@ const en = {
343
343
  'recovery': 'Recovery'
344
344
  },
345
345
  'phase': {
346
+ 'phase': 'P',
347
+ 'stage': 'S',
346
348
  'desc': 'LaneDirection',
347
349
  'peddesc': 'PedestrianDirection',
348
350
  'controltype': 'ControlType',
@@ -343,6 +343,8 @@ const zh = {
343
343
  'recovery': '恢复'
344
344
  },
345
345
  'phase': {
346
+ 'phase': '相位',
347
+ 'stage': '阶段',
346
348
  'desc': '车道方向',
347
349
  'peddesc': '行人方向',
348
350
  'controltype': '控制类型',
@@ -22,7 +22,7 @@
22
22
  :phaseList="phaseList"
23
23
  :cycle="cycle"
24
24
  :syncTime="syncTime"
25
- :style="{'margin-top':(cycle || !showBarrier)? '25px':'0'}"
25
+ :style="{'margin-top': '25px'}"
26
26
  :patternStatusList="patternStatusList"
27
27
  :patternId="patternId"
28
28
  :cycles="cycles">
@@ -8,7 +8,7 @@
8
8
  <div slot="content">
9
9
  O{{list.id}}-
10
10
  <span v-for="(ids,index3) in list.includedphases" :key="index3">
11
- P{{ids}}<span v-if="index3+1!==list.includedphases.length">,</span>
11
+ {{$t('openatccomponents.phase.phase')}}{{ids}}<span v-if="index3+1!==list.includedphases.length">,</span>
12
12
  </span>
13
13
  </div>
14
14
  <div style="cursor:pointer;">
@@ -20,7 +20,7 @@
20
20
  <div class="ring-nums">
21
21
  O{{list.id}}-
22
22
  <span v-for="(ids,index3) in list.includedphases" :key="index3">
23
- P{{ids}}<span v-if="index3+1!==list.includedphases.length">,</span>
23
+ {{$t('openatccomponents.phase.phase')}}{{ids}}<span v-if="index3+1!==list.includedphases.length">,</span>
24
24
  </span>
25
25
  </div>
26
26
  </div>
@@ -17,14 +17,14 @@
17
17
  <div style="position: relative;" :style="{'height': '34px','float':'left','width':((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%'}" v-for="(item,index2) in list" :key="index2" :class="item.mode===7?'direction': ''">
18
18
  <div class="first-1" :class="item.mode === 8 ? 'mask' : item.mode === 9 ? 'yellowClass' : ''" :style="{'width':Number(item.greenWidth.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%').replace('%', ''))*100+'%','height':'34px','background':'#7ccc66'}">
19
19
  <el-tooltip placement="top-start" effect="light">
20
- <div slot="content">P{{item.id}}:{{item.split}}</div>
20
+ <div slot="content">{{$t('openatccomponents.phase.phase')}}{{item.id}}:{{item.split}}</div>
21
21
  <div style="cursor:pointer;">
22
22
  <div class="ring-phase">
23
23
  <!-- <patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
24
24
  <xdrdirselector Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="item.direction"></xdrdirselector>
25
25
  </div>
26
- <div class="box" style="position: absolute; left:40px; width:20px; top: -1px;">
27
- <div class="ring-nums">P{{item.id}}</div>
26
+ <div class="box" style="position: absolute; left:40px; width:40px; top: -1px;">
27
+ <div class="ring-nums">{{$t('openatccomponents.phase.phase')}}{{item.id}}</div>
28
28
  <div class="ring-nums">{{item.split}}</div>
29
29
  </div>
30
30
  </div>
@@ -60,7 +60,7 @@
60
60
  <el-tooltip placement="top-start" effect="light">
61
61
  <div slot="content">
62
62
  <span class="ring-nums" v-for="(pha,index) in list.phases" :key="index">
63
- P{{pha}}
63
+ {{$t('openatccomponents.phase.phase')}}{{pha}}
64
64
  </span>
65
65
  </div>
66
66
  <div style="cursor:pointer;">
@@ -68,8 +68,8 @@
68
68
  <!-- <patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
69
69
  <xdrdirselector v-if="list.direction&&list.direction.length>0" Width="60px" Height="60px" Widths="50px" Heights="50px" :showlist="list.direction"></xdrdirselector>
70
70
  </div>
71
- <div class="box" style="position: absolute; left:41px; width:20px; top:-1px;">
72
- <div class="ring-nums">S{{list.key+1}}</div>
71
+ <div class="box" style="position: absolute; left:41px; width:40px; top:-1px;">
72
+ <div class="ring-nums">{{$t('openatccomponents.phase.stage')}}{{list.key+1}}</div>
73
73
  <div class="ring-nums">{{list.stageSplit}}</div>
74
74
  </div>
75
75
  <!-- <div class="box" style="line-height:28px">
@@ -33,8 +33,7 @@ let errorCodeMap = new Map([
33
33
  [502, '月份超出限值'],
34
34
  [503, '星期超出限值'],
35
35
  [504, '日期值超出限值'],
36
- [505, '配置未知计划号'],
37
- [505, '配置未知计划号'],
36
+ [505, '日期配置中未知计划号'],
38
37
  [506, '包含普通计划的日期未覆盖全年'],
39
38
  [601, '通道数超出限值'],
40
39
  [602, '通道配置未知控制源'],
@@ -139,12 +139,12 @@ export default {
139
139
  return {
140
140
  roadDirection: 'right',
141
141
  // reqUrl: 'http://192.168.13.103:10003/openatc',
142
- agentId: 'bclsnl_ticp',
142
+ agentId: 'tjblfql',
143
143
  // agentId: '13013',
144
144
  // agentId: '12007_390',
145
145
  // agentId: '12014',
146
146
  reqUrl: 'http://192.168.13.103:10003/openatc',
147
- Token: 'eyJraWQiOiIxNzE5ODk2OTc2MTMwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxOTk0MDE3NiwiaWF0IjoxNzE5ODk2OTc2fQ.W14uptaN4j85l-ZzYBMJ1wv_6A5MQA1x_tCWGMQ0kwE',
147
+ Token: 'eyJraWQiOiIxNzE4NzU5ODA0Njc0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxODgwMzAwNCwiaWF0IjoxNzE4NzU5ODA0fQ.8CKosL9Yrp8h8d_op6kGHHcNXIBgNu3YhwY7JdPIKJc',
148
148
  // agentId: '30003-352',
149
149
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
150
150
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',