openatc-components 0.2.88 → 0.2.90

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.88",
3
+ "version": "0.2.90",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -426,6 +426,7 @@ const en = {
426
426
  'mostdata': 'There are at most 16 data !'
427
427
  },
428
428
  'pattern': {
429
+ 'stageno': 'Stage number',
429
430
  'property': 'Property',
430
431
  'desc': 'Description',
431
432
  'offset': 'Offset',
@@ -1103,6 +1104,10 @@ const en = {
1103
1104
  '4004': 'Repeat ID',
1104
1105
  '4005': 'Device Empty Response',
1105
1106
  '4006': 'Device Response Operation Is None',
1107
+ '4007': 'Control Message Response Error',
1108
+ '4008': 'Device not online, ignored',
1109
+ '4009': 'Empty cache, please upload',
1110
+ '4010': 'Message types not supported',
1106
1111
  // 错误子类型
1107
1112
  // error-request
1108
1113
  '4100': 'agentid is null!',
@@ -425,6 +425,7 @@ const zh = {
425
425
  },
426
426
  'pattern': {
427
427
  'property': '属性',
428
+ 'stageno': '阶段号',
428
429
  'desc': '描述',
429
430
  'offset': '相位差',
430
431
  'cycle': '周期',
@@ -1102,6 +1103,10 @@ const zh = {
1102
1103
  '4004': '重复的设备id',
1103
1104
  '4005': '信号机应答为空',
1104
1105
  '4006': '信号机应答操作类型为空',
1106
+ '4007': '控制消息应答错误',
1107
+ '4008': '信号机不在线,请求已忽略',
1108
+ '4009': '参数缓存为空,请先上载参数',
1109
+ '4010': '设备不支持的消息类型',
1105
1110
  // 错误子类型
1106
1111
  // error-request
1107
1112
  '4100': 'agentid为空',
@@ -467,6 +467,7 @@ export default {
467
467
  green: 25,
468
468
  yellow: 3,
469
469
  red: 2,
470
+ stageNo: 0,
470
471
  phases: [],
471
472
  stageSplit: 30
472
473
  })
@@ -556,6 +557,7 @@ export default {
556
557
  res.yellow = rings.yellow ? rings.yellow : rings.yellow === 0 ? 0 : 3
557
558
  res.red = rings.red ? rings.red : rings.red === 0 ? 0 : 2
558
559
  res.phases = rings.phases ? rings.phases : stageArr
560
+ res.stageNo = rings.stageNo ? rings.stageNo : 0
559
561
  // res.stageSplit = rings.split ? rings.split : 30
560
562
  if (rings.split) {
561
563
  res.stageSplit = rings.split
@@ -96,6 +96,21 @@
96
96
  </el-input-number>
97
97
  </el-col>
98
98
  </el-row>
99
+ <el-row :gutter="0" v-if="isRing">
100
+ <el-col :span="6">
101
+ {{this.$t('openatccomponents.pattern.stageno')}}
102
+ </el-col>
103
+ <el-col :span="18">
104
+ <el-input-number
105
+ class="stage-value"
106
+ size="small"
107
+ :controls="false"
108
+ :min="0"
109
+ v-model.number="stage.stageNo"
110
+ @change="stageSplitChange">
111
+ </el-input-number>
112
+ </el-col>
113
+ </el-row>
99
114
  <el-row :gutter="0" v-if="isRing">
100
115
  <el-col :span="6">
101
116
  {{this.$t('openatccomponents.pattern.yellow')}}
@@ -19,8 +19,8 @@ export default {
19
19
  isShowMode: true,
20
20
  modeName: '交警遥控',
21
21
  controlName: '步进',
22
- agentId: 'gjnlgjxl',
23
- Token: 'eyJraWQiOiIxNzE5OTY5NjkyMzM5IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcyMDAxMjg5MiwiaWF0IjoxNzE5OTY5NjkyfQ.SV75Bv-qdg8JTW_QVFrXmcQaJJ1YTYdDQvh_HNgW3dA',
22
+ agentId: 'jmlxhl',
23
+ Token: 'eyJraWQiOiIxNzA4OTA5NDk2ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcwODk1MjY5NiwiaWF0IjoxNzA4OTA5NDk2fQ.FI0gzBQFLyQsj95LG56lVZxb6WYlr2-datNsyv6fF-I',
24
24
  reqUrl: 'http://192.168.13.103:10003/openatc'
25
25
  }
26
26
  },