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
|
@@ -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('
|
|
414
|
-
let objectID = this.$t('
|
|
415
|
-
let propertyID = this.$t('
|
|
416
|
-
let elementID = this.$t('
|
|
417
|
-
let returnCode = this.$t('
|
|
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('
|
|
437
|
+
return this.$t('openatccomponents.common.statusbadvalue')
|
|
438
438
|
} else if (val === 'Status_WrongLength') {
|
|
439
|
-
return this.$t('
|
|
439
|
+
return this.$t('openatccomponents.common.statuswronglength')
|
|
440
440
|
} else if (val === 'Status_Overflow') {
|
|
441
|
-
return this.$t('
|
|
441
|
+
return this.$t('openatccomponents.common.statusvverflow')
|
|
442
442
|
} else if (val === 'Status_ReadOnly') {
|
|
443
|
-
return this.$t('
|
|
443
|
+
return this.$t('openatccomponents.common.statusreadonly')
|
|
444
444
|
} else if (val === 'Status_NullValue') {
|
|
445
|
-
return this.$t('
|
|
445
|
+
return this.$t('openatccomponents.common.statusnullvalue')
|
|
446
446
|
} else if (val === 'Status_Error') {
|
|
447
|
-
return this.$t('
|
|
447
|
+
return this.$t('openatccomponents.common.statuserror')
|
|
448
448
|
} else if (val === 'Status_ControlFail') {
|
|
449
|
-
return this.$t('
|
|
449
|
+
return this.$t('openatccomponents.common.statuscontrolfail')
|
|
450
450
|
} else if (val === 'Status_AccessDenied') {
|
|
451
|
-
return this.$t('
|
|
451
|
+
return this.$t('openatccomponents.common.statusaccessdenied')
|
|
452
452
|
} else if (val === 'Status_InvalidKey') {
|
|
453
|
-
return this.$t('
|
|
453
|
+
return this.$t('openatccomponents.common.statusinvalidkey')
|
|
454
454
|
} else if (val === 'Status_ChecksumError') {
|
|
455
|
-
return this.$t('
|
|
455
|
+
return this.$t('openatccomponents.common.statuschecksumerror')
|
|
456
456
|
} else {
|
|
457
457
|
return ''
|
|
458
458
|
}
|