openatc-components 0.0.102 → 0.0.103
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 +6 -1
- package/package/kisscomps/components/Channelization/Channelization.vue +13 -10
- package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +18 -12
- package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +54 -69
- package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +1 -4
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +11 -34
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +1 -26
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +18 -37
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +6 -0
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +28 -50
- package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +29 -53
- package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +1 -4
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +147 -130
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +5 -6
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +43 -144
- package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +8 -52
- package/package/kisscomps/components/KanBan/kanban.vue +7 -7
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +153 -38
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
- package/package/kisscomps/components/StageStatus/StageStatus.vue +6 -2
- package/package/kisscomps/components/patternList/patternList.vue +5 -0
- package/package/kisscomps/index.js +2 -0
- package/package/kissui.min.js +1 -1
- package/package.json +13 -12
- package/src/i18n/language/en.js +32 -7
- package/src/i18n/language/zh.js +31 -6
- package/src/kisscomps/components/BoardCard/BoardCard.vue +6 -1
- package/src/kisscomps/components/Channelization/Channelization.vue +13 -10
- package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +18 -12
- package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +54 -69
- package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +1 -4
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +11 -34
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +1 -26
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +18 -37
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +6 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +28 -50
- package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +29 -53
- package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +1 -4
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +147 -130
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +5 -6
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +43 -144
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.check.vue +191 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.syncOper.vue +331 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +8 -52
- package/src/kisscomps/components/KanBan/kanban.vue +7 -7
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +153 -38
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
- package/src/kisscomps/components/StageStatus/StageStatus.vue +6 -2
- package/src/kisscomps/components/patternList/patternList.vue +5 -0
- package/src/kisscomps/index.js +2 -0
- package/src/router/index.js +2 -2
- package/src/views/intersection.vue +5 -3
- package/static/styles/channelizatioon.scss +2 -40
- package/static/styles/schemeconfig.scss +52 -0
- package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +0 -113
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +0 -113
|
@@ -27,11 +27,6 @@
|
|
|
27
27
|
>
|
|
28
28
|
<div v-if="UsageMode === 'draw'" class="centerText" :class="{'defaultBg': chooseIndex !== DetectorChartData.index, 'highlightBg': chooseIndex === DetectorChartData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
29
29
|
<div class="detector-statistics-echarts" :id="'detectorStatisticsEcharts' + DetectorChartData.index"></div>
|
|
30
|
-
<!-- <div>
|
|
31
|
-
<div class="detector-rect"
|
|
32
|
-
:class="{'defaultVehicleBorder': DetectorData.detectortype === 1,
|
|
33
|
-
'defaultPedBorder': DetectorData.detectortype === 2 }"></div>
|
|
34
|
-
</div> -->
|
|
35
30
|
</div>
|
|
36
31
|
<div v-if="UsageMode === 'show'" class="centerText" :class="{'defaultBg': chooseIndex !== DetectorChartData.index, 'highlightBg': chooseIndex === DetectorChartData.index }" :style="{'width': item.w + 'px', 'height': item.h + 'px'}">
|
|
37
32
|
</div>
|
|
@@ -66,20 +61,12 @@ export default {
|
|
|
66
61
|
this.$emit('changeDetectorItem', data, fields)
|
|
67
62
|
}
|
|
68
63
|
}
|
|
69
|
-
},
|
|
70
|
-
DetectorChartData: {
|
|
71
|
-
handler: function (newval, oldval) {
|
|
72
|
-
console.log(this.Detector)
|
|
73
|
-
}
|
|
74
64
|
}
|
|
75
65
|
},
|
|
76
66
|
props: {
|
|
77
67
|
DetectorChartData: {
|
|
78
68
|
type: Object
|
|
79
69
|
},
|
|
80
|
-
Detector: {
|
|
81
|
-
type: Array
|
|
82
|
-
},
|
|
83
70
|
isSeletable: {
|
|
84
71
|
type: Boolean
|
|
85
72
|
},
|
|
@@ -127,19 +114,16 @@ export default {
|
|
|
127
114
|
xAxis: {
|
|
128
115
|
type: 'category',
|
|
129
116
|
axisLabel: {
|
|
130
|
-
show: false,
|
|
131
117
|
textStyle: {
|
|
132
118
|
color: getTheme() === 'light' ? '#666666' : '#B9BABF'
|
|
133
119
|
}
|
|
134
120
|
},
|
|
135
121
|
axisTick: {
|
|
136
|
-
show: false,
|
|
137
122
|
lineStyle: {
|
|
138
123
|
color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
|
|
139
124
|
}
|
|
140
125
|
},
|
|
141
126
|
axisLine: {
|
|
142
|
-
show: false,
|
|
143
127
|
lineStyle: {
|
|
144
128
|
color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
|
|
145
129
|
}
|
|
@@ -158,7 +142,6 @@ export default {
|
|
|
158
142
|
// }
|
|
159
143
|
},
|
|
160
144
|
axisLine: {
|
|
161
|
-
show: false,
|
|
162
145
|
lineStyle: {
|
|
163
146
|
color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
|
|
164
147
|
}
|
|
@@ -176,7 +159,6 @@ export default {
|
|
|
176
159
|
// }
|
|
177
160
|
},
|
|
178
161
|
axisLabel: {
|
|
179
|
-
show: false,
|
|
180
162
|
textStyle: {
|
|
181
163
|
color: getTheme() === 'light' ? '#666666' : '#B9BABF'
|
|
182
164
|
}
|
|
@@ -186,14 +168,7 @@ export default {
|
|
|
186
168
|
type: 'bar',
|
|
187
169
|
barWidth: '10',
|
|
188
170
|
itemStyle: {
|
|
189
|
-
color: 'red'
|
|
190
|
-
borderWidth: 0,
|
|
191
|
-
shadowBlur: {
|
|
192
|
-
shadowColor: 'rgba(255,255,255,0.31)',
|
|
193
|
-
shadowBlur: 10,
|
|
194
|
-
shadowOffsetX: 0,
|
|
195
|
-
shadowOffsetY: 2
|
|
196
|
-
}
|
|
171
|
+
color: 'red'
|
|
197
172
|
},
|
|
198
173
|
data: this.flowsaturation
|
|
199
174
|
}, {
|
|
@@ -64,29 +64,26 @@ export default {
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
watch: {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
|
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)
|
|
86
77
|
}
|
|
87
|
-
}
|
|
88
|
-
deep: true
|
|
78
|
+
}
|
|
89
79
|
}
|
|
80
|
+
// DetectorData: {
|
|
81
|
+
// 监听失效,不明原因,有时间可以看下
|
|
82
|
+
// handler: function (val) {
|
|
83
|
+
// debugger
|
|
84
|
+
// },
|
|
85
|
+
// deep: true
|
|
86
|
+
// }
|
|
90
87
|
|
|
91
88
|
// CurChooseIcon: {
|
|
92
89
|
// handler: function (data) {
|
|
@@ -117,12 +114,10 @@ export default {
|
|
|
117
114
|
boxDragStop (origin, final) {
|
|
118
115
|
this.item = JSON.parse(JSON.stringify(final))
|
|
119
116
|
this.$emit('handleSelectIcon', this.DetectorData)
|
|
120
|
-
this.handleChangeData()
|
|
121
117
|
},
|
|
122
118
|
boxResize (final) {
|
|
123
119
|
// this.resetSvg()
|
|
124
120
|
this.item = JSON.parse(JSON.stringify(final))
|
|
125
|
-
this.handleChangeData()
|
|
126
121
|
},
|
|
127
122
|
boxResizeStop (origin, final) {
|
|
128
123
|
// this.resetSvg()
|
|
@@ -130,11 +125,6 @@ export default {
|
|
|
130
125
|
},
|
|
131
126
|
boxRotateStop (origin, final) {
|
|
132
127
|
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()
|
|
138
128
|
},
|
|
139
129
|
resetSvg () {
|
|
140
130
|
this.reset = false
|
|
@@ -148,15 +138,6 @@ export default {
|
|
|
148
138
|
culculateFontsize () {
|
|
149
139
|
// 根据倒计时图标大小,动态计算内部文字大小
|
|
150
140
|
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()
|
|
160
141
|
}
|
|
161
142
|
},
|
|
162
143
|
created () {
|
|
@@ -23,6 +23,12 @@
|
|
|
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> -->
|
|
26
32
|
<div :class="laneicon.type === 'countdown' ? '' : 'hide'">
|
|
27
33
|
<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
34
|
<path fill-rule="evenodd" :fill="laneicon.active === true ? highlightColor : defaultColor"
|
|
@@ -323,48 +323,41 @@ export default {
|
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
325
|
watch: {
|
|
326
|
-
|
|
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 (this.
|
|
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 === '') {
|
|
342
|
+
if (val.type === 4 && this.lastType === '') {
|
|
349
343
|
// 绿闪:绿-》灰-》绿 循环效果
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
344
|
+
this.GreenFlashColor = '#77fb65'
|
|
345
|
+
this.GreenIntervalId = setInterval(() => {
|
|
346
|
+
this.GreenFlashColor =
|
|
353
347
|
!this.GreenFlashColor || this.GreenFlashColor === '#828282'
|
|
354
348
|
? '#77fb65'
|
|
355
349
|
: '#828282'
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
350
|
+
}, 500)
|
|
351
|
+
this.lastType = val.type
|
|
352
|
+
}
|
|
353
|
+
if (
|
|
354
|
+
this.GreenIntervalId &&
|
|
361
355
|
val.type !== 4 &&
|
|
362
356
|
val.type !== this.lastType
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
357
|
+
) {
|
|
358
|
+
clearInterval(this.GreenIntervalId)
|
|
359
|
+
this.GreenFlashColor = undefined
|
|
360
|
+
this.lastType = ''
|
|
368
361
|
}
|
|
369
362
|
},
|
|
370
363
|
deep: true
|
|
@@ -395,22 +388,16 @@ export default {
|
|
|
395
388
|
methods: {
|
|
396
389
|
boxDragStop (origin, final) {
|
|
397
390
|
this.item = JSON.parse(JSON.stringify(final))
|
|
398
|
-
this.
|
|
391
|
+
this.$emit('handleSelectIcon', this.Data)
|
|
399
392
|
},
|
|
400
393
|
boxResizeStop (origin, final) {
|
|
401
394
|
this.IconW = final.w + 'px'
|
|
402
395
|
this.IconH = final.h + 'px'
|
|
403
396
|
this.resetSvg()
|
|
404
397
|
this.item = JSON.parse(JSON.stringify(final))
|
|
405
|
-
this.handleChangeData()
|
|
406
398
|
},
|
|
407
399
|
boxRotateStop (origin, final) {
|
|
408
400
|
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()
|
|
414
401
|
},
|
|
415
402
|
resetSvg () {
|
|
416
403
|
this.reset = false
|
|
@@ -418,17 +405,8 @@ export default {
|
|
|
418
405
|
this.reset = true
|
|
419
406
|
})
|
|
420
407
|
},
|
|
421
|
-
handleSelectIcon () {
|
|
408
|
+
handleSelectIcon (iconparams) {
|
|
422
409
|
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()
|
|
432
410
|
}
|
|
433
411
|
},
|
|
434
412
|
created () {
|
|
@@ -65,49 +65,42 @@ export default {
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
watch: {
|
|
68
|
-
|
|
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
|
-
|
|
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 === '') {
|
|
84
|
+
if (!val.pedtype) return
|
|
85
|
+
if (val.pedtype === 4 && this.lastType === '') {
|
|
92
86
|
// 绿闪:绿-》灰-》绿 循环效果
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
this.GreenFlashColor = '#7bd66b'
|
|
88
|
+
this.GreenIntervalId = setInterval(() => {
|
|
89
|
+
this.GreenFlashColor =
|
|
96
90
|
!this.GreenFlashColor || this.GreenFlashColor === '#828282'
|
|
97
91
|
? '#7bd66b'
|
|
98
92
|
: '#828282'
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
93
|
+
}, 500)
|
|
94
|
+
this.lastType = val.pedtype
|
|
95
|
+
}
|
|
96
|
+
if (
|
|
97
|
+
this.GreenIntervalId &&
|
|
104
98
|
val.pedtype !== 4 &&
|
|
105
99
|
val.pedtype !== this.lastType
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
100
|
+
) {
|
|
101
|
+
clearInterval(this.GreenIntervalId)
|
|
102
|
+
this.GreenFlashColor = undefined
|
|
103
|
+
this.lastType = ''
|
|
111
104
|
}
|
|
112
105
|
},
|
|
113
106
|
deep: true
|
|
@@ -137,7 +130,6 @@ export default {
|
|
|
137
130
|
methods: {
|
|
138
131
|
boxDragStop (origin, final) {
|
|
139
132
|
this.item = JSON.parse(JSON.stringify(final))
|
|
140
|
-
this.handleChangeData()
|
|
141
133
|
},
|
|
142
134
|
boxResizeStop (origin, final) {
|
|
143
135
|
this.IconW = final.w + 'px'
|
|
@@ -147,15 +139,9 @@ export default {
|
|
|
147
139
|
this.Viewbox[2] = final.w.toFixed(1)
|
|
148
140
|
this.Viewbox[3] = final.h.toFixed(1)
|
|
149
141
|
this.item = JSON.parse(JSON.stringify(final))
|
|
150
|
-
this.handleChangeData()
|
|
151
142
|
},
|
|
152
143
|
boxRotateStop (origin, final) {
|
|
153
144
|
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()
|
|
159
145
|
},
|
|
160
146
|
resetSvg () {
|
|
161
147
|
this.reset = false
|
|
@@ -169,18 +155,8 @@ export default {
|
|
|
169
155
|
this.rectArr.push(i)
|
|
170
156
|
}
|
|
171
157
|
},
|
|
172
|
-
handleSelectIcon () {
|
|
158
|
+
handleSelectIcon (iconparams) {
|
|
173
159
|
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()
|
|
184
160
|
}
|
|
185
161
|
},
|
|
186
162
|
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)
|
|
52
52
|
this.dialogVisible = false
|
|
53
53
|
},
|
|
54
54
|
loadSvgString (type, content) {
|
|
@@ -62,9 +62,6 @@ 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)
|
|
68
65
|
}
|
|
69
66
|
},
|
|
70
67
|
mounted () {}
|