openatc-components 0.0.99 → 0.0.102
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/BoardCard/BoardCard.vue +1 -6
- package/package/kisscomps/components/Channelization/Channelization.vue +10 -13
- package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +113 -0
- package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +12 -18
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +69 -54
- package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +4 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +34 -11
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +26 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +37 -18
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +0 -6
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +50 -28
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +53 -29
- package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +4 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +130 -147
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +6 -5
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +144 -43
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +52 -8
- package/package/kisscomps/components/KanBan/kanban.vue +6 -6
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +38 -153
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -16
- package/package/kisscomps/components/StageStatus/StageStatus.vue +2 -6
- package/package/kisscomps/components/patternList/patternList.vue +0 -5
- package/package/kisscomps/index.js +0 -2
- package/package/kissui.min.js +1 -1
- package/package.json +12 -13
- package/src/i18n/language/en.js +7 -32
- package/src/i18n/language/zh.js +6 -31
- package/src/kisscomps/components/BoardCard/BoardCard.vue +1 -6
- package/src/kisscomps/components/Channelization/Channelization.vue +10 -13
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +113 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +12 -18
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +69 -54
- package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +4 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +34 -11
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +26 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +37 -18
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +0 -6
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +50 -28
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +53 -29
- package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +4 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +130 -147
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +6 -5
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +144 -43
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +52 -8
- package/src/kisscomps/components/KanBan/kanban.vue +6 -6
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +38 -153
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -16
- package/src/kisscomps/components/StageStatus/StageStatus.vue +2 -6
- package/src/kisscomps/components/patternList/patternList.vue +0 -5
- package/src/kisscomps/index.js +0 -2
- package/src/router/index.js +2 -2
- package/static/styles/channelizatioon.scss +40 -2
- package/static/styles/schemeconfig.scss +0 -52
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +0 -190
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +0 -163
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.check.vue +0 -191
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.syncOper.vue +0 -331
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +0 -190
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +0 -163
|
@@ -64,26 +64,29 @@ export default {
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
watch: {
|
|
67
|
-
item: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
// item: {
|
|
68
|
+
// handler: function (newval, oldval) {
|
|
69
|
+
// if ((JSON.stringify(oldval) !== '{}')) {
|
|
70
|
+
// // 更改原数据的位置大小数据
|
|
71
|
+
// let data = {
|
|
72
|
+
// ...this.DetectorData,
|
|
73
|
+
// ...newval
|
|
74
|
+
// }
|
|
75
|
+
// let fields = Object.keys(newval)
|
|
76
|
+
// this.$emit('changeDetectorItem', data, fields)
|
|
77
|
+
// }
|
|
78
|
+
// }
|
|
79
|
+
// }
|
|
80
|
+
DetectorData: {
|
|
81
|
+
handler: function (val) {
|
|
82
|
+
if (this.UsageMode === 'draw') {
|
|
83
|
+
this.item.x = val.x
|
|
84
|
+
this.item.y = val.y
|
|
85
|
+
this.item.angle = val.angle
|
|
77
86
|
}
|
|
78
|
-
}
|
|
87
|
+
},
|
|
88
|
+
deep: true
|
|
79
89
|
}
|
|
80
|
-
// DetectorData: {
|
|
81
|
-
// 监听失效,不明原因,有时间可以看下
|
|
82
|
-
// handler: function (val) {
|
|
83
|
-
// debugger
|
|
84
|
-
// },
|
|
85
|
-
// deep: true
|
|
86
|
-
// }
|
|
87
90
|
|
|
88
91
|
// CurChooseIcon: {
|
|
89
92
|
// handler: function (data) {
|
|
@@ -114,10 +117,12 @@ export default {
|
|
|
114
117
|
boxDragStop (origin, final) {
|
|
115
118
|
this.item = JSON.parse(JSON.stringify(final))
|
|
116
119
|
this.$emit('handleSelectIcon', this.DetectorData)
|
|
120
|
+
this.handleChangeData()
|
|
117
121
|
},
|
|
118
122
|
boxResize (final) {
|
|
119
123
|
// this.resetSvg()
|
|
120
124
|
this.item = JSON.parse(JSON.stringify(final))
|
|
125
|
+
this.handleChangeData()
|
|
121
126
|
},
|
|
122
127
|
boxResizeStop (origin, final) {
|
|
123
128
|
// this.resetSvg()
|
|
@@ -125,6 +130,11 @@ export default {
|
|
|
125
130
|
},
|
|
126
131
|
boxRotateStop (origin, final) {
|
|
127
132
|
this.item = JSON.parse(JSON.stringify(final))
|
|
133
|
+
// 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
|
|
134
|
+
if (this.item.angle < 0) {
|
|
135
|
+
this.item.angle = this.item.angle + 360
|
|
136
|
+
}
|
|
137
|
+
this.handleChangeData()
|
|
128
138
|
},
|
|
129
139
|
resetSvg () {
|
|
130
140
|
this.reset = false
|
|
@@ -138,6 +148,15 @@ export default {
|
|
|
138
148
|
culculateFontsize () {
|
|
139
149
|
// 根据倒计时图标大小,动态计算内部文字大小
|
|
140
150
|
this.Fontsize = Math.floor(this.DetectorData.w / 140 * 20)
|
|
151
|
+
},
|
|
152
|
+
handleChangeData () {
|
|
153
|
+
let data = {
|
|
154
|
+
...this.DetectorData,
|
|
155
|
+
...this.item
|
|
156
|
+
}
|
|
157
|
+
let fields = Object.keys(this.item)
|
|
158
|
+
this.$emit('changeDetectorItem', data, fields)
|
|
159
|
+
this.handleSelectIcon()
|
|
141
160
|
}
|
|
142
161
|
},
|
|
143
162
|
created () {
|
|
@@ -23,12 +23,6 @@
|
|
|
23
23
|
d="M13.473,12.000 L13.473,-0.000 L16.000,-0.000 L16.000,12.000 L13.473,12.000 ZM8.982,-0.000 L11.508,-0.000 L11.508,12.000 L8.982,12.000 L8.982,-0.000 ZM4.491,-0.000 L7.017,-0.000 L7.017,12.000 L4.491,12.000 L4.491,-0.000 ZM-0.000,-0.000 L2.526,-0.000 L2.526,12.000 L-0.000,12.000 L-0.000,-0.000 Z"/>
|
|
24
24
|
</svg>
|
|
25
25
|
</div>
|
|
26
|
-
<!-- <div :class="laneicon.type === 'bicyclelane' ? '' : 'hide'">
|
|
27
|
-
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
28
|
-
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
29
|
-
d="M6.994,6.074 L3.495,0.003 L-0.004,6.074 L2.091,6.074 L2.091,16.007 L4.898,16.007 L4.898,6.074 L6.994,6.074 Z"/>
|
|
30
|
-
</svg>
|
|
31
|
-
</div> -->
|
|
32
26
|
<div :class="laneicon.type === 'countdown' ? '' : 'hide'">
|
|
33
27
|
<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :width="laneicon.width ? laneicon.width : iconw" :height="laneicon.height ? laneicon.height : iconh">
|
|
34
28
|
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
@@ -323,41 +323,48 @@ export default {
|
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
325
|
watch: {
|
|
326
|
-
item: {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
},
|
|
326
|
+
// item: {
|
|
327
|
+
// handler: function (newval, oldval) {
|
|
328
|
+
// if (JSON.stringify(oldval) !== '{}') {
|
|
329
|
+
// // 更改原数据的位置大小数据
|
|
330
|
+
// let data = {
|
|
331
|
+
// ...this.Data,
|
|
332
|
+
// ...newval
|
|
333
|
+
// }
|
|
334
|
+
// let fields = Object.keys(newval)
|
|
335
|
+
// this.$emit('changeMotorwayItem', data, fields)
|
|
336
|
+
// }
|
|
337
|
+
// }
|
|
338
|
+
// },
|
|
339
339
|
Data: {
|
|
340
340
|
handler: function (val) {
|
|
341
341
|
this.iconnameArr = val.icondirename
|
|
342
|
-
if (
|
|
342
|
+
if (this.UsageMode === 'draw') {
|
|
343
|
+
this.item.x = val.x
|
|
344
|
+
this.item.y = val.y
|
|
345
|
+
this.item.angle = val.angle
|
|
346
|
+
}
|
|
347
|
+
if (this.UsageMode === 'show') {
|
|
348
|
+
if (val.type === 4 && this.lastType === '') {
|
|
343
349
|
// 绿闪:绿-》灰-》绿 循环效果
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
350
|
+
this.GreenFlashColor = '#77fb65'
|
|
351
|
+
this.GreenIntervalId = setInterval(() => {
|
|
352
|
+
this.GreenFlashColor =
|
|
347
353
|
!this.GreenFlashColor || this.GreenFlashColor === '#828282'
|
|
348
354
|
? '#77fb65'
|
|
349
355
|
: '#828282'
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
356
|
+
}, 500)
|
|
357
|
+
this.lastType = val.type
|
|
358
|
+
}
|
|
359
|
+
if (
|
|
360
|
+
this.GreenIntervalId &&
|
|
355
361
|
val.type !== 4 &&
|
|
356
362
|
val.type !== this.lastType
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
363
|
+
) {
|
|
364
|
+
clearInterval(this.GreenIntervalId)
|
|
365
|
+
this.GreenFlashColor = undefined
|
|
366
|
+
this.lastType = ''
|
|
367
|
+
}
|
|
361
368
|
}
|
|
362
369
|
},
|
|
363
370
|
deep: true
|
|
@@ -388,16 +395,22 @@ export default {
|
|
|
388
395
|
methods: {
|
|
389
396
|
boxDragStop (origin, final) {
|
|
390
397
|
this.item = JSON.parse(JSON.stringify(final))
|
|
391
|
-
this
|
|
398
|
+
this.handleChangeData()
|
|
392
399
|
},
|
|
393
400
|
boxResizeStop (origin, final) {
|
|
394
401
|
this.IconW = final.w + 'px'
|
|
395
402
|
this.IconH = final.h + 'px'
|
|
396
403
|
this.resetSvg()
|
|
397
404
|
this.item = JSON.parse(JSON.stringify(final))
|
|
405
|
+
this.handleChangeData()
|
|
398
406
|
},
|
|
399
407
|
boxRotateStop (origin, final) {
|
|
400
408
|
this.item = JSON.parse(JSON.stringify(final))
|
|
409
|
+
// 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
|
|
410
|
+
if (this.item.angle < 0) {
|
|
411
|
+
this.item.angle = this.item.angle + 360
|
|
412
|
+
}
|
|
413
|
+
this.handleChangeData()
|
|
401
414
|
},
|
|
402
415
|
resetSvg () {
|
|
403
416
|
this.reset = false
|
|
@@ -405,8 +418,17 @@ export default {
|
|
|
405
418
|
this.reset = true
|
|
406
419
|
})
|
|
407
420
|
},
|
|
408
|
-
handleSelectIcon (
|
|
421
|
+
handleSelectIcon () {
|
|
409
422
|
this.$emit('handleSelectIcon', this.Data)
|
|
423
|
+
},
|
|
424
|
+
handleChangeData () {
|
|
425
|
+
let data = {
|
|
426
|
+
...this.Data,
|
|
427
|
+
...this.item
|
|
428
|
+
}
|
|
429
|
+
let fields = Object.keys(this.item)
|
|
430
|
+
this.$emit('changeMotorwayItem', data, fields)
|
|
431
|
+
this.handleSelectIcon()
|
|
410
432
|
}
|
|
411
433
|
},
|
|
412
434
|
created () {
|
|
@@ -65,42 +65,49 @@ export default {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
watch: {
|
|
68
|
-
item: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
},
|
|
68
|
+
// item: {
|
|
69
|
+
// handler: function (newval, oldval) {
|
|
70
|
+
// if ((JSON.stringify(oldval) !== '{}')) {
|
|
71
|
+
// // 更改原数据的位置大小数据
|
|
72
|
+
// let data = {
|
|
73
|
+
// ...this.PedData,
|
|
74
|
+
// ...newval,
|
|
75
|
+
// viewbox: this.Viewbox
|
|
76
|
+
// }
|
|
77
|
+
// let fields = Object.keys(newval).concat('viewbox')
|
|
78
|
+
// this.$emit('changePedItem', data, fields)
|
|
79
|
+
// }
|
|
80
|
+
// }
|
|
81
|
+
// },
|
|
82
82
|
PedData: {
|
|
83
83
|
handler: function (val) {
|
|
84
|
-
if (
|
|
85
|
-
|
|
84
|
+
if (this.UsageMode === 'draw') {
|
|
85
|
+
this.item.x = val.x
|
|
86
|
+
this.item.y = val.y
|
|
87
|
+
this.item.angle = val.angle
|
|
88
|
+
}
|
|
89
|
+
if (this.UsageMode === 'show') {
|
|
90
|
+
if (!val.pedtype) return
|
|
91
|
+
if (val.pedtype === 4 && this.lastType === '') {
|
|
86
92
|
// 绿闪:绿-》灰-》绿 循环效果
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
this.GreenFlashColor = '#7bd66b'
|
|
94
|
+
this.GreenIntervalId = setInterval(() => {
|
|
95
|
+
this.GreenFlashColor =
|
|
90
96
|
!this.GreenFlashColor || this.GreenFlashColor === '#828282'
|
|
91
97
|
? '#7bd66b'
|
|
92
98
|
: '#828282'
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
}, 500)
|
|
100
|
+
this.lastType = val.pedtype
|
|
101
|
+
}
|
|
102
|
+
if (
|
|
103
|
+
this.GreenIntervalId &&
|
|
98
104
|
val.pedtype !== 4 &&
|
|
99
105
|
val.pedtype !== this.lastType
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
) {
|
|
107
|
+
clearInterval(this.GreenIntervalId)
|
|
108
|
+
this.GreenFlashColor = undefined
|
|
109
|
+
this.lastType = ''
|
|
110
|
+
}
|
|
104
111
|
}
|
|
105
112
|
},
|
|
106
113
|
deep: true
|
|
@@ -130,6 +137,7 @@ export default {
|
|
|
130
137
|
methods: {
|
|
131
138
|
boxDragStop (origin, final) {
|
|
132
139
|
this.item = JSON.parse(JSON.stringify(final))
|
|
140
|
+
this.handleChangeData()
|
|
133
141
|
},
|
|
134
142
|
boxResizeStop (origin, final) {
|
|
135
143
|
this.IconW = final.w + 'px'
|
|
@@ -139,9 +147,15 @@ export default {
|
|
|
139
147
|
this.Viewbox[2] = final.w.toFixed(1)
|
|
140
148
|
this.Viewbox[3] = final.h.toFixed(1)
|
|
141
149
|
this.item = JSON.parse(JSON.stringify(final))
|
|
150
|
+
this.handleChangeData()
|
|
142
151
|
},
|
|
143
152
|
boxRotateStop (origin, final) {
|
|
144
153
|
this.item = JSON.parse(JSON.stringify(final))
|
|
154
|
+
// 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
|
|
155
|
+
if (this.item.angle < 0) {
|
|
156
|
+
this.item.angle = this.item.angle + 360
|
|
157
|
+
}
|
|
158
|
+
this.handleChangeData()
|
|
145
159
|
},
|
|
146
160
|
resetSvg () {
|
|
147
161
|
this.reset = false
|
|
@@ -155,8 +169,18 @@ export default {
|
|
|
155
169
|
this.rectArr.push(i)
|
|
156
170
|
}
|
|
157
171
|
},
|
|
158
|
-
handleSelectIcon (
|
|
172
|
+
handleSelectIcon () {
|
|
159
173
|
this.$emit('handleSelectIcon', this.PedData)
|
|
174
|
+
},
|
|
175
|
+
handleChangeData () {
|
|
176
|
+
let data = {
|
|
177
|
+
...this.PedData,
|
|
178
|
+
...this.item,
|
|
179
|
+
viewbox: this.Viewbox
|
|
180
|
+
}
|
|
181
|
+
let fields = Object.keys(this.item).concat('viewbox')
|
|
182
|
+
this.$emit('changePedItem', data, fields)
|
|
183
|
+
this.handleSelectIcon()
|
|
160
184
|
}
|
|
161
185
|
},
|
|
162
186
|
created () {
|
|
@@ -48,7 +48,7 @@ export default {
|
|
|
48
48
|
// 底图加载
|
|
49
49
|
readAsText () {
|
|
50
50
|
this.svgmethods = new Svgmethods()
|
|
51
|
-
this.svgmethods.clickOpen(this.loadSvgString)
|
|
51
|
+
this.svgmethods.clickOpen(this.loadSvgString, this.getMapWidthHeighgt)
|
|
52
52
|
this.dialogVisible = false
|
|
53
53
|
},
|
|
54
54
|
loadSvgString (type, content) {
|
|
@@ -62,6 +62,9 @@ export default {
|
|
|
62
62
|
} else {
|
|
63
63
|
this.$emit('loadSvgString', type, content)
|
|
64
64
|
}
|
|
65
|
+
},
|
|
66
|
+
getMapWidthHeighgt (type, size) {
|
|
67
|
+
this.$emit('loadMapSize', type, size)
|
|
65
68
|
}
|
|
66
69
|
},
|
|
67
70
|
mounted () {}
|