openatc-components 0.1.44 → 0.1.46

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.1.44",
3
+ "version": "0.1.46",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -256,7 +256,23 @@ const en = {
256
256
  'putTscControlError6': 'Cannot be executed, beacuse the user with higher priority is under control',
257
257
  'putTscControlError7': 'The scheme corresponding to the scheme number does not exist',
258
258
  'putTscControlError8': 'Configuration contains green conflicts',
259
- 'putTscControlError20': 'In the provisional scheme, the green signal ratio should be greater than the phase minimum green + yellow light + all red, and less than the maximum green 1+ yellow light + all red',
259
+ 'putTscControlError9': 'Nonexistent intersection number ',
260
+ 'putTscControlError10': 'Non-existent phase number ',
261
+ 'putTscControlError11': 'This user has no permissions ',
262
+ 'putTscControlError12': 'Area or junction does not exist ',
263
+ 'putTscControlError13': 'Invalid operation list number ',
264
+ 'putTscControlError14': 'Failed to read file ',
265
+ 'putTscControlError15': 'Operation list number does not exist ',
266
+ 'putTscControlError16': 'Command error in operation list ',
267
+ 'putTscControlError17': 'Intersection ID does not exist ',
268
+ 'putTscControlError18': 'Different loop periods are inconsistent ',
269
+ 'putTscControlError19': 'Green ratio less than minimum green ',
270
+ 'putTscControlError20': 'green ratio greater than maximum green ',
271
+ 'putTscControlError21': 'Unsupported Phase type ',
272
+ 'putTscControlError22': 'Number of unsupported phases ',
273
+ 'putTscControlError23': 'Control message sending exception ',
274
+ 'putTscControlError99': 'Control exception ',
275
+ // 'putTscControlError20': 'In the provisional scheme, the green signal ratio should be greater than the phase minimum green + yellow light + all red, and less than the maximum green 1+ yellow light + all red',
260
276
  'nofault': 'None',
261
277
  'extendedContent': 'Extended Content',
262
278
  'JSONFormatError': 'JSON format error!',
@@ -256,7 +256,23 @@ const zh = {
256
256
  'putTscControlError6': '优先级更高的用户控制中,无法执行',
257
257
  'putTscControlError7': '方案编号对应的方案不存在',
258
258
  'putTscControlError8': '配置包含绿冲突',
259
- 'putTscControlError20': '临时方案中绿信比应大于相位的最小绿+黄灯+全红,并小于最大绿1+黄灯+全红',
259
+ 'putTscControlError9': '不存在的路口编号',
260
+ 'putTscControlError10': '不存在的相位编号',
261
+ 'putTscControlError11': '该用户没有权限',
262
+ 'putTscControlError12': '区域或路口不存在',
263
+ 'putTscControlError13': '无效的操作列表编号',
264
+ 'putTscControlError14': '文件读取失败',
265
+ 'putTscControlError15': '操作列表编号不存在',
266
+ 'putTscControlError16': '操作列表中命令错误',
267
+ 'putTscControlError17': '路口ID不存在',
268
+ 'putTscControlError18': '不同环周期不一致',
269
+ 'putTscControlError19': '绿信比小于最小绿',
270
+ 'putTscControlError20': '绿信比大于最大绿',
271
+ 'putTscControlError21': '不支持的相位类型',
272
+ 'putTscControlError22': '不支持的相位数量',
273
+ 'putTscControlError23': '控制消息发送异常',
274
+ 'putTscControlError99': '控制异常',
275
+ // 'putTscControlError20': '临时方案中绿信比应大于相位的最小绿+黄灯+全红,并小于最大绿1+黄灯+全红',
260
276
  'nofault': '无',
261
277
  'extendedContent': '扩展内容',
262
278
  'JSONFormatError': 'JSON格式错误!',
@@ -578,25 +578,25 @@ export default {
578
578
  }
579
579
  return maxCycle
580
580
  },
581
- checkPatternRules (rings) {
582
- if (!this.isRingCycleEqual(rings)) {
583
- this.patternCycleEqual = false
584
- } else {
585
- this.patternCycleEqual = true
586
- }
587
- if (!this.patternCycleEqual) {
588
- let mess = `方案中存在环周期时长不一致`
589
- if (this.$i18n.locale === 'en') {
590
- mess = `Inconsistent loop cycle durations exist in the scheme`
591
- }
592
- this.$message({
593
- message: mess,
594
- type: 'error',
595
- dangerouslyUseHTMLString: true
596
- })
597
- return false
598
- }
599
- },
581
+ // checkPatternRules (rings) {
582
+ // if (!this.isRingCycleEqual(rings)) {
583
+ // this.patternCycleEqual = false
584
+ // } else {
585
+ // this.patternCycleEqual = true
586
+ // }
587
+ // if (!this.patternCycleEqual) {
588
+ // let mess = `方案中存在环周期时长不一致`
589
+ // if (this.$i18n.locale === 'en') {
590
+ // mess = `Inconsistent loop cycle durations exist in the scheme`
591
+ // }
592
+ // this.$message({
593
+ // message: mess,
594
+ // type: 'error',
595
+ // dangerouslyUseHTMLString: true
596
+ // })
597
+ // return false
598
+ // }
599
+ // },
600
600
  handleManualControl () {
601
601
  let submitdata = {
602
602
  control: 100,
@@ -612,7 +612,7 @@ export default {
612
612
  }
613
613
  submitdata.data.offset = this.offset
614
614
  submitdata.data.rings = this.rings
615
- this.checkPatternRules(submitdata.data.rings)
615
+ // this.checkPatternRules(submitdata.data.rings)
616
616
  if (this.patternCycleEqual) {
617
617
  this.$emit('closePhaseControl', submitdata)
618
618
  }