openatc-components 0.0.112 → 0.1.1
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/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +2 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -4
- package/package/kisscomps/components/overView/index.vue +18 -15
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +7 -0
- package/src/i18n/language/zh.js +7 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +2 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -4
- package/src/kisscomps/components/overView/index.vue +18 -15
- package/src/views/customchannelization.vue +1 -1
- package/src/views/schemeconfig.vue +11 -0
|
@@ -86,7 +86,7 @@ export default {
|
|
|
86
86
|
// 解决change事件只在失去焦点时响应,此处,可以监听到实时变化
|
|
87
87
|
const key = this.$refs[`refNumber-${field}`].displayValue
|
|
88
88
|
if (this.checkOnlyNum(key)) {
|
|
89
|
-
this.basicCoodInfo[field] = field === 'angle' ? this.
|
|
89
|
+
this.basicCoodInfo[field] = field === 'angle' ? this.checkAngleMinMaxNum(key) : Number(key)
|
|
90
90
|
this.$emit('handleChangeBasicCoord', this.basicCoodInfo)
|
|
91
91
|
}
|
|
92
92
|
},
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
handleChangeAngle (angle) {
|
|
108
108
|
// 解决用上下箭头控制数字改变
|
|
109
109
|
if (this.checkOnlyNum(angle)) {
|
|
110
|
-
this.basicCoodInfo['angle'] = this.
|
|
110
|
+
this.basicCoodInfo['angle'] = this.checkAngleMinMaxNum(angle)
|
|
111
111
|
this.$emit('handleChangeBasicCoord', this.basicCoodInfo)
|
|
112
112
|
}
|
|
113
113
|
},
|
|
@@ -553,18 +553,19 @@ export default {
|
|
|
553
553
|
getIntersectionInfo(agentid).then(res => {
|
|
554
554
|
if (!res.data.success) {
|
|
555
555
|
this.isLoaded = false
|
|
556
|
+
let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + agentid
|
|
556
557
|
this.stateName = this.$t('openatccomponents.overview.offline')
|
|
557
|
-
let
|
|
558
|
+
let msg = getMessageByCode(res.data.code, this.$i18n.locale)
|
|
558
559
|
if (res.data.data) {
|
|
559
560
|
// 子类型错误
|
|
560
561
|
let childErrorCode = res.data.data.errorCode
|
|
561
562
|
if (childErrorCode) {
|
|
562
563
|
let childerror = getMessageByCode(res.data.data.errorCode, this.$i18n.locale)
|
|
563
|
-
|
|
564
|
+
msg = msg + ' - ' + childerror
|
|
564
565
|
}
|
|
565
|
-
} else {
|
|
566
|
-
this.$message.error(parrenterror)
|
|
567
566
|
}
|
|
567
|
+
msg = msg + ' - ' + commomMsg
|
|
568
|
+
this.$message.error(msg)
|
|
568
569
|
return
|
|
569
570
|
}
|
|
570
571
|
this.stateName = this.$t('openatccomponents.overview.online')
|
|
@@ -313,17 +313,16 @@ export default {
|
|
|
313
313
|
registerMessage(this.AgentId).then(data => {
|
|
314
314
|
if (!data.data.success) {
|
|
315
315
|
this.devStatus = 2
|
|
316
|
-
let
|
|
316
|
+
let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + this.AgentId
|
|
317
|
+
let msg = getMessageByCode(data.data.code, this.$i18n.locale)
|
|
317
318
|
if (data.data.data) {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
322
|
-
this.$message.error(parrenterror + ',' + childerror)
|
|
319
|
+
let errorCode = data.data.data.errorCode
|
|
320
|
+
if (errorCode) {
|
|
321
|
+
msg = msg + ' - ' + getMessageByCode(errorCode, this.$i18n.locale)
|
|
323
322
|
}
|
|
324
|
-
} else {
|
|
325
|
-
this.$message.error(parrenterror)
|
|
326
323
|
}
|
|
324
|
+
msg = msg + ' - ' + commomMsg
|
|
325
|
+
this.$message.error(msg)
|
|
327
326
|
if (this.isResend) {
|
|
328
327
|
this.reSend()
|
|
329
328
|
}
|
|
@@ -378,27 +377,28 @@ export default {
|
|
|
378
377
|
this.responseTime = diffTime
|
|
379
378
|
this.intervalFlag = true
|
|
380
379
|
if (!data.data.success) {
|
|
380
|
+
let commomMsg = this.$t('openatccomponents.overview.signalID') + ' : ' + this.AgentId
|
|
381
381
|
if (data.data.code === '4003') {
|
|
382
382
|
this.devStatus = 2
|
|
383
383
|
this.clearPatternInterval() // 清除其他定时器
|
|
384
384
|
this.clearVolumeInterval()
|
|
385
|
-
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
|
|
385
|
+
this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale) + ' - ' + commomMsg)
|
|
386
386
|
if (this.isResend) {
|
|
387
387
|
this.reSend()
|
|
388
388
|
}
|
|
389
389
|
return
|
|
390
390
|
}
|
|
391
|
-
let
|
|
391
|
+
let msg = getMessageByCode(data.data.code, this.$i18n.locale)
|
|
392
392
|
if (data.data.data) {
|
|
393
393
|
// 子类型错误
|
|
394
394
|
let childErrorCode = data.data.data.errorCode
|
|
395
395
|
if (childErrorCode) {
|
|
396
396
|
let childerror = getMessageByCode(data.data.data.errorCode, this.$i18n.locale)
|
|
397
|
-
|
|
397
|
+
msg = msg + ' - ' + childerror
|
|
398
398
|
}
|
|
399
|
-
} else {
|
|
400
|
-
this.$message.error(parrenterror)
|
|
401
399
|
}
|
|
400
|
+
msg = msg + ' - ' + commomMsg
|
|
401
|
+
this.$message.error(msg)
|
|
402
402
|
this.clearPatternInterval() // 清除其他定时器
|
|
403
403
|
this.clearVolumeInterval()
|
|
404
404
|
if (this.isResend) {
|
|
@@ -587,7 +587,9 @@ export default {
|
|
|
587
587
|
queryDevParams () {
|
|
588
588
|
queryDevice(this.AgentId).then(res => {
|
|
589
589
|
if (!res.data.success) {
|
|
590
|
-
this.$
|
|
590
|
+
let commomMsg = this.$t('openatc.overview.signalID') + ': ' + this.AgentId
|
|
591
|
+
let msg = getMessageByCode(res.data.code, this.$i18n.locale) + ', ' + commomMsg
|
|
592
|
+
this.$message.error(msg)
|
|
591
593
|
return
|
|
592
594
|
}
|
|
593
595
|
let devParams = res.data.data.jsonparam
|
|
@@ -628,7 +630,8 @@ export default {
|
|
|
628
630
|
getPlatform () {
|
|
629
631
|
queryDevice(this.AgentId).then(res => {
|
|
630
632
|
if (!res.data.success) {
|
|
631
|
-
this.$
|
|
633
|
+
let commomMsg = this.$t('openatc.overview.signalID') + ': ' + this.AgentId
|
|
634
|
+
this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale) + ' - ' + commomMsg)
|
|
632
635
|
return
|
|
633
636
|
}
|
|
634
637
|
let devParams = res.data.data.jsonparam
|