openatc-components 0.5.15 → 0.5.16

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.5.15",
3
+ "version": "0.5.16",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -410,11 +410,11 @@ export default {
410
410
  if (data.data.code === '4002' && data.data.data.errorCode === '4210') {
411
411
  let successArray = data.data.data.content
412
412
  successArray.forEach(success => {
413
- let dataType = this.$t('edge.common.datatype') + ':' + success.DataClass // 数据类
414
- let objectID = this.$t('edge.common.objectid') + ':' + success.ObjectID // 对象
415
- let propertyID = this.$t('edge.common.propertyid') + ':' + success.PropertyID // 属性
416
- let elementID = this.$t('edge.common.elementid') + ':' + success.ElementID // 元素
417
- let returnCode = this.$t('edge.common.returncode') + ':' + this.getError(success.ReturnCode) // 数据值
413
+ let dataType = this.$t('openatccomponents.common.datatype') + ':' + success.DataClass // 数据类
414
+ let objectID = this.$t('openatccomponents.common.objectid') + ':' + success.ObjectID // 对象
415
+ let propertyID = this.$t('openatccomponents.common.propertyid') + ':' + success.PropertyID // 属性
416
+ let elementID = this.$t('openatccomponents.common.elementid') + ':' + success.ElementID // 元素
417
+ let returnCode = this.$t('openatccomponents.common.returncode') + ':' + this.getError(success.ReturnCode) // 数据值
418
418
  let errormsg = `${dataType} ${objectID} ${propertyID} ${elementID} ${returnCode}`
419
419
  this.$message.error(this.$t(errormsg))
420
420
  })
@@ -434,25 +434,25 @@ export default {
434
434
  },
435
435
  getError (val) {
436
436
  if (val === 'Status_BadValue') {
437
- return this.$t('edge.common.statusbadvalue')
437
+ return this.$t('openatccomponents.common.statusbadvalue')
438
438
  } else if (val === 'Status_WrongLength') {
439
- return this.$t('edge.common.statuswronglength')
439
+ return this.$t('openatccomponents.common.statuswronglength')
440
440
  } else if (val === 'Status_Overflow') {
441
- return this.$t('edge.common.statusvverflow')
441
+ return this.$t('openatccomponents.common.statusvverflow')
442
442
  } else if (val === 'Status_ReadOnly') {
443
- return this.$t('edge.common.statusreadonly')
443
+ return this.$t('openatccomponents.common.statusreadonly')
444
444
  } else if (val === 'Status_NullValue') {
445
- return this.$t('edge.common.statusnullvalue')
445
+ return this.$t('openatccomponents.common.statusnullvalue')
446
446
  } else if (val === 'Status_Error') {
447
- return this.$t('edge.common.statuserror')
447
+ return this.$t('openatccomponents.common.statuserror')
448
448
  } else if (val === 'Status_ControlFail') {
449
- return this.$t('edge.common.statuscontrolfail')
449
+ return this.$t('openatccomponents.common.statuscontrolfail')
450
450
  } else if (val === 'Status_AccessDenied') {
451
- return this.$t('edge.common.statusaccessdenied')
451
+ return this.$t('openatccomponents.common.statusaccessdenied')
452
452
  } else if (val === 'Status_InvalidKey') {
453
- return this.$t('edge.common.statusinvalidkey')
453
+ return this.$t('openatccomponents.common.statusinvalidkey')
454
454
  } else if (val === 'Status_ChecksumError') {
455
- return this.$t('edge.common.statuschecksumerror')
455
+ return this.$t('openatccomponents.common.statuschecksumerror')
456
456
  } else {
457
457
  return ''
458
458
  }