openatc-components 0.0.113 → 0.1.2
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/iconSvg/countdownSvg.vue +19 -7
- 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/iconSvg/countdownSvg.vue +19 -7
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +5 -4
- package/src/kisscomps/components/overView/index.vue +18 -15
- package/src/views/schemeconfig.vue +11 -0
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
:rotatable="false"
|
|
25
25
|
@select="handleSelectIcon(item)"
|
|
26
26
|
@dragstop="boxDragStop(item, ...arguments)"
|
|
27
|
-
@
|
|
27
|
+
@resize="boxResizeStop"
|
|
28
28
|
@rotatestop="boxRotateStop(item, ...arguments)"
|
|
29
29
|
>
|
|
30
30
|
<div v-if="UsageMode === 'draw'" class="centerText" :class="{'defaultBg': chooseIndex !== CountdownData.index, 'highlightBg': chooseIndex === CountdownData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
@@ -60,7 +60,8 @@ export default {
|
|
|
60
60
|
reset: true,
|
|
61
61
|
phaseCountdownList: [],
|
|
62
62
|
phaseCountdownIcon: 999,
|
|
63
|
-
Fontsize: 20 // 倒计时默认字号
|
|
63
|
+
Fontsize: 20, // 倒计时默认字号
|
|
64
|
+
minCountdownSize: 30 // 限制最小倒计时区域大小
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
watch: {
|
|
@@ -133,17 +134,20 @@ export default {
|
|
|
133
134
|
},
|
|
134
135
|
methods: {
|
|
135
136
|
boxDragStop (origin, final) {
|
|
136
|
-
|
|
137
|
+
let info = this.handleMinCountdownSize(final)
|
|
138
|
+
this.item = JSON.parse(JSON.stringify(info))
|
|
137
139
|
this.$emit('handleSelectIcon', this.CountdownData)
|
|
138
140
|
this.handleChangeData()
|
|
139
141
|
},
|
|
140
|
-
boxResizeStop (
|
|
141
|
-
this.
|
|
142
|
-
this.
|
|
142
|
+
boxResizeStop (final) {
|
|
143
|
+
let info = this.handleMinCountdownSize(final)
|
|
144
|
+
// this.resetSvg()
|
|
145
|
+
this.item = JSON.parse(JSON.stringify(info))
|
|
143
146
|
this.handleChangeData()
|
|
144
147
|
},
|
|
145
148
|
boxRotateStop (origin, final) {
|
|
146
|
-
|
|
149
|
+
let info = this.handleMinCountdownSize(final)
|
|
150
|
+
this.item = JSON.parse(JSON.stringify(info))
|
|
147
151
|
this.handleChangeData()
|
|
148
152
|
},
|
|
149
153
|
resetSvg () {
|
|
@@ -171,6 +175,14 @@ export default {
|
|
|
171
175
|
let fields = Object.keys(this.item)
|
|
172
176
|
this.$emit('changeTimeItem', data, fields)
|
|
173
177
|
this.handleSelectIcon()
|
|
178
|
+
},
|
|
179
|
+
handleMinCountdownSize (final) {
|
|
180
|
+
let info = JSON.parse(JSON.stringify(final))
|
|
181
|
+
if (info.w < 30 || info.h < 30) {
|
|
182
|
+
info.w = 30
|
|
183
|
+
info.h = 30
|
|
184
|
+
}
|
|
185
|
+
return info
|
|
174
186
|
}
|
|
175
187
|
},
|
|
176
188
|
created () {
|
|
@@ -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
|