openatc-components 0.0.98 → 0.0.101

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.
Files changed (57) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +1 -6
  2. package/package/kisscomps/components/Channelization/Channelization.vue +10 -13
  3. package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +113 -0
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +12 -18
  5. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +74 -54
  6. package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +4 -1
  7. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +34 -11
  8. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +26 -1
  9. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +37 -18
  10. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +0 -6
  11. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +50 -28
  12. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +53 -29
  13. package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +4 -1
  14. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +130 -147
  15. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +6 -5
  16. package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +144 -43
  17. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +45 -1
  18. package/package/kisscomps/components/KanBan/kanban.vue +6 -6
  19. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +37 -152
  20. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -16
  21. package/package/kisscomps/components/StageStatus/StageStatus.vue +2 -6
  22. package/package/kisscomps/index.js +0 -2
  23. package/package/kissui.min.js +1 -1
  24. package/package.json +12 -13
  25. package/src/i18n/language/en.js +7 -32
  26. package/src/i18n/language/zh.js +6 -31
  27. package/src/kisscomps/components/BoardCard/BoardCard.vue +1 -6
  28. package/src/kisscomps/components/Channelization/Channelization.vue +10 -13
  29. package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +113 -0
  30. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +12 -18
  31. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +74 -54
  32. package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +4 -1
  33. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +34 -11
  34. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +26 -1
  35. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +37 -18
  36. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +0 -6
  37. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +50 -28
  38. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +53 -29
  39. package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +4 -1
  40. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +130 -147
  41. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +6 -5
  42. package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +144 -43
  43. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +45 -1
  44. package/src/kisscomps/components/KanBan/kanban.vue +6 -6
  45. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +37 -152
  46. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -16
  47. package/src/kisscomps/components/StageStatus/StageStatus.vue +2 -6
  48. package/src/kisscomps/index.js +0 -2
  49. package/src/router/index.js +2 -2
  50. package/static/styles/channelizatioon.scss +40 -2
  51. package/static/styles/schemeconfig.scss +0 -52
  52. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +0 -190
  53. package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +0 -163
  54. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.check.vue +0 -191
  55. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.syncOper.vue +0 -331
  56. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +0 -190
  57. package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +0 -163
@@ -21,6 +21,7 @@
21
21
  :selectable="isSeletable"
22
22
  :angle="item.angle"
23
23
  :aspectRatio="true"
24
+ :rotatable="false"
24
25
  @select="handleSelectIcon(item)"
25
26
  @dragstop="boxDragStop(item, ...arguments)"
26
27
  @resizestop="boxResizeStop(item, ...arguments)"
@@ -58,18 +59,28 @@ export default {
58
59
  }
59
60
  },
60
61
  watch: {
61
- item: {
62
- handler: function (newval, oldval) {
63
- if ((JSON.stringify(oldval) !== '{}')) {
64
- // 更改原数据的位置大小数据
65
- let data = {
66
- ...this.CountdownData,
67
- ...newval
68
- }
69
- let fields = Object.keys(newval)
70
- this.$emit('changeTimeItem', data, fields)
62
+ // item: {
63
+ // handler: function (newval, oldval) {
64
+ // if ((JSON.stringify(oldval) !== '{}')) {
65
+ // // 更改原数据的位置大小数据
66
+ // let data = {
67
+ // ...this.CountdownData,
68
+ // ...newval
69
+ // }
70
+ // let fields = Object.keys(newval)
71
+ // this.$emit('changeTimeItem', data, fields)
72
+ // }
73
+ // }
74
+ // },
75
+ CountdownData: {
76
+ handler: function (val) {
77
+ if (this.UsageMode === 'draw') {
78
+ this.item.x = val.x
79
+ this.item.y = val.y
80
+ this.item.angle = val.angle
71
81
  }
72
- }
82
+ },
83
+ deep: true
73
84
  },
74
85
  CountdownList: {
75
86
  handler: function (val) {
@@ -106,13 +117,16 @@ export default {
106
117
  boxDragStop (origin, final) {
107
118
  this.item = JSON.parse(JSON.stringify(final))
108
119
  this.$emit('handleSelectIcon', this.CountdownData)
120
+ this.handleChangeData()
109
121
  },
110
122
  boxResizeStop (origin, final) {
111
123
  this.resetSvg()
112
124
  this.item = JSON.parse(JSON.stringify(final))
125
+ this.handleChangeData()
113
126
  },
114
127
  boxRotateStop (origin, final) {
115
128
  this.item = JSON.parse(JSON.stringify(final))
129
+ this.handleChangeData()
116
130
  },
117
131
  resetSvg () {
118
132
  this.reset = false
@@ -129,6 +143,15 @@ export default {
129
143
  if (this.Fontsize < 14) {
130
144
  this.Fontsize = 14
131
145
  }
146
+ },
147
+ handleChangeData () {
148
+ let data = {
149
+ ...this.CountdownData,
150
+ ...this.item
151
+ }
152
+ let fields = Object.keys(this.item)
153
+ this.$emit('changeTimeItem', data, fields)
154
+ this.handleSelectIcon()
132
155
  }
133
156
  },
134
157
  created () {
@@ -27,6 +27,11 @@
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> -->
30
35
  </div>
31
36
  <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'}">
32
37
  </div>
@@ -61,12 +66,20 @@ export default {
61
66
  this.$emit('changeDetectorItem', data, fields)
62
67
  }
63
68
  }
69
+ },
70
+ DetectorChartData: {
71
+ handler: function (newval, oldval) {
72
+ console.log(this.Detector)
73
+ }
64
74
  }
65
75
  },
66
76
  props: {
67
77
  DetectorChartData: {
68
78
  type: Object
69
79
  },
80
+ Detector: {
81
+ type: Array
82
+ },
70
83
  isSeletable: {
71
84
  type: Boolean
72
85
  },
@@ -114,16 +127,19 @@ export default {
114
127
  xAxis: {
115
128
  type: 'category',
116
129
  axisLabel: {
130
+ show: false,
117
131
  textStyle: {
118
132
  color: getTheme() === 'light' ? '#666666' : '#B9BABF'
119
133
  }
120
134
  },
121
135
  axisTick: {
136
+ show: false,
122
137
  lineStyle: {
123
138
  color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
124
139
  }
125
140
  },
126
141
  axisLine: {
142
+ show: false,
127
143
  lineStyle: {
128
144
  color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
129
145
  }
@@ -142,6 +158,7 @@ export default {
142
158
  // }
143
159
  },
144
160
  axisLine: {
161
+ show: false,
145
162
  lineStyle: {
146
163
  color: getTheme() === 'light' ? '#D7DFE1' : '#30384D'
147
164
  }
@@ -159,6 +176,7 @@ export default {
159
176
  // }
160
177
  },
161
178
  axisLabel: {
179
+ show: false,
162
180
  textStyle: {
163
181
  color: getTheme() === 'light' ? '#666666' : '#B9BABF'
164
182
  }
@@ -168,7 +186,14 @@ export default {
168
186
  type: 'bar',
169
187
  barWidth: '10',
170
188
  itemStyle: {
171
- color: 'red'
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
+ }
172
197
  },
173
198
  data: this.flowsaturation
174
199
  }, {
@@ -64,26 +64,29 @@ export default {
64
64
  }
65
65
  },
66
66
  watch: {
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)
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
- 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
- },
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 (val.type === 4 && this.lastType === '') {
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
- this.GreenFlashColor = '#77fb65'
345
- this.GreenIntervalId = setInterval(() => {
346
- this.GreenFlashColor =
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
- }, 500)
351
- this.lastType = val.type
352
- }
353
- if (
354
- this.GreenIntervalId &&
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
- clearInterval(this.GreenIntervalId)
359
- this.GreenFlashColor = undefined
360
- this.lastType = ''
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.$emit('handleSelectIcon', this.Data)
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 (iconparams) {
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
- 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
- },
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 (!val.pedtype) return
85
- if (val.pedtype === 4 && this.lastType === '') {
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
- this.GreenFlashColor = '#7bd66b'
88
- this.GreenIntervalId = setInterval(() => {
89
- this.GreenFlashColor =
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
- }, 500)
94
- this.lastType = val.pedtype
95
- }
96
- if (
97
- this.GreenIntervalId &&
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
- clearInterval(this.GreenIntervalId)
102
- this.GreenFlashColor = undefined
103
- this.lastType = ''
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 (iconparams) {
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 () {}