openatc-components 0.4.6 → 0.4.8

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.6",
3
+ "version": "0.4.8",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -194,29 +194,29 @@ const en = {
194
194
  'configurationtoolcontrol': 'Configuration Tool Control',
195
195
  'manualcontrol': 'Manual Control',
196
196
  'modelList': 'modelList',
197
- 'modelList0': 'Multi Period',
197
+ 'modelList0': 'Multi-Period',
198
198
  'modelList1': 'Yellow Flash',
199
- 'modelList2': 'Red Control',
200
- 'modelList3': 'Dark Control',
201
- 'modelList4': 'Step Control',
202
- 'modelList4-': 'Stage Control',
203
- 'modelList5': 'Fixed_Cycle Control',
204
- 'modelList6': 'Free Control',
205
- 'modelList7': 'Coordinated Induction Control',
206
- 'modelList8': 'Solution Selection Control',
207
- 'modelList9': 'Self-Adaption',
199
+ 'modelList2': 'Full Red',
200
+ 'modelList3': 'Turn Off',
201
+ 'modelList4': 'Step',
202
+ 'modelList4-': 'Stage',
203
+ 'modelList5': 'Fixed-Time',
204
+ 'modelList6': 'Adaptive',
205
+ 'modelList7': 'Coordinated Induction',
206
+ 'modelList8': 'Solution-Select',
207
+ 'modelList9': 'Solution Generation',
208
208
  'modelList10': 'Nocable Control',
209
- 'modelList11': 'Host Computer Coordinated Control',
209
+ 'modelList11': 'Computer Coordinated',
210
210
  'modelList12': 'phasewalk',
211
211
  'modelList13': 'Pattern Recovery',
212
212
  'modelList14': 'Phase dwell',
213
213
  'modelList15': 'Channel Detection',
214
- 'modelList16': 'Direction lock',
215
- 'modelList17': 'Webster Single Point Coordination',
214
+ 'modelList16': 'Channel lock',
215
+ 'modelList17': 'Webster',
216
216
  'modelList18': 'Inductive Adaptive',
217
- 'modelList19': 'Inductive Pedestrian Crossing Control',
217
+ 'modelList19': 'Inductive-Ped',
218
218
  'modelList21': 'Reserving21',
219
- 'modelList22': 'Priority Control',
219
+ 'modelList22': 'Phase-Lock',
220
220
  'modelList23': 'Close Phase',
221
221
  'modelList100': 'Tentative Plan',
222
222
  'modelList101': 'Direction Lock',
@@ -11,6 +11,7 @@
11
11
  :showBarrier="showBarrier"
12
12
  :controlPhase="controlPhase"
13
13
  :isShowTip="isShowTip"
14
+ :isBorder="isBorder"
14
15
  :isMove="isMove"
15
16
  :localPatternList="localPatternList"
16
17
  :showCondition="showCondition"
@@ -78,6 +79,10 @@ export default {
78
79
  type: Boolean,
79
80
  default: true
80
81
  },
82
+ isBorder: {
83
+ type: Boolean,
84
+ default: false
85
+ },
81
86
  isShowTip: {
82
87
  type: Boolean,
83
88
  default: true
@@ -15,7 +15,7 @@
15
15
  <div v-if="this.contrloType === 'ring' || !this.contrloType">
16
16
  <div class="ring-first" v-for="(list, index1) in patternInfo" :key="index1">
17
17
  <draggable :move="move" @end="endDrag(index1)" :disabled="isMove" :list="list">
18
- <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
+ <div style="position: relative;" :style="{'height': '35px','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' : isBorder ? 'hovercell' : ''">
19
19
  <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'}">
20
20
  <el-tooltip placement="top-start" effect="light">
21
21
  <div slot="content">{{$t('openatccomponents.phase.phase')}}{{item.id}}:{{item.split}}</div>
@@ -147,6 +147,10 @@ export default {
147
147
  }
148
148
  },
149
149
  props: {
150
+ isBorder: {
151
+ type: Boolean,
152
+ default: false
153
+ },
150
154
  isShowTip: {
151
155
  type: Boolean,
152
156
  default: true
@@ -1645,7 +1649,15 @@ export default {
1645
1649
  .ring-first {
1646
1650
  margin-top: 1px;
1647
1651
  width: 100%;
1648
- height: 34px;
1652
+ height: 35px;
1653
+ .hovercell {
1654
+ box-sizing: border-box;
1655
+ border: 1PX solid transparent;
1656
+ }
1657
+ .hovercell:hover {
1658
+ margin-top: 1PX;
1659
+ border: 1PX solid rgb(242, 121, 121);
1660
+ }
1649
1661
  }
1650
1662
  .first-1 {
1651
1663
  float: left;
@@ -1732,7 +1744,15 @@ export default {
1732
1744
  .ring-first {
1733
1745
  margin-top: 1px;
1734
1746
  width: 100%;
1735
- height: 34px;
1747
+ height: 35px;
1748
+ .hovercell {
1749
+ box-sizing: border-box;
1750
+ border: 1PX solid transparent;
1751
+ }
1752
+ .hovercell:hover {
1753
+ margin-top: 1PX;
1754
+ border: 1PX solid rgb(242, 121, 121);
1755
+ }
1736
1756
  }
1737
1757
  .direction {
1738
1758
  filter: brightness(70%);
@@ -5,6 +5,7 @@
5
5
  :contrloType="contrloType"
6
6
  :stagesChange="stagesChange"
7
7
  :isShowTip="isShowTip"
8
+ :isBorder="isBorder"
8
9
  :isMove="isMove"
9
10
  :patternStatusList="patternStatusList"
10
11
  :cycles="cycles"
@@ -504,6 +505,10 @@ export default {
504
505
  type: Boolean,
505
506
  default: true
506
507
  },
508
+ isBorder: {
509
+ type: Boolean,
510
+ default: false
511
+ },
507
512
  isMove: {
508
513
  type: Boolean,
509
514
  default: true
@@ -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: 'eyJraWQiOiIxNzM1ODg1MDA0NjQ1IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTg4ODYwNCwiaWF0IjoxNzM1ODgxNDA0fQ.vzRHd88kW3GT_7h8br4Z4xUeFLabjkr3JrIPwhauaHg',
170
+ Token: 'eyJraWQiOiIxNzMwODU1NTQ1NzA3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMDg1OTE0NSwiaWF0IjoxNzMwODUxOTQ1fQ.CBl61S3eRifl4qEtTmgVjOZGo2hqNSGQKPxG1bN-utU',
171
171
  // agentId: '30003-352',
172
172
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
173
173
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -26,11 +26,11 @@ export default {
26
26
  controlName: '步进',
27
27
  agentId: '13013',
28
28
  agentid1: 'gjnlahql',
29
- agentid2: 'xylsnl',
29
+ agentid2: '12007_001',
30
30
  isShowMessage: false,
31
31
  isShowInterval: true,
32
32
  sum: 0,
33
- Token: 'eyJraWQiOiIxNzM1ODg1MDA0NjQ1IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTg4ODYwNCwiaWF0IjoxNzM1ODgxNDA0fQ.vzRHd88kW3GT_7h8br4Z4xUeFLabjkr3JrIPwhauaHg',
33
+ Token: 'eyJraWQiOiIxNzMzODg3MDYyMjgwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMzg5MDY2MiwiaWF0IjoxNzMzODgzNDYyfQ.qUJZ4lKv0WU3s3lWfYwl5ZM77n2rriYeFQ8qOwRFuzk',
34
34
  reqUrl: 'http://192.168.13.103:10003/openatc',
35
35
  isOnlyMap: true
36
36
  }