openatc-components 0.4.41 → 0.4.42

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.
@@ -26,7 +26,7 @@ PURPOSE. * See the Mulan PSL v2 for more details. **/
26
26
  import FirstImportCrossmap from './firstImportCrossmap'
27
27
  import CustomDraw from './index.draw'
28
28
  import { getChannelizatonChart } from '../../../../api/cross'
29
- // import DefaultCrossRoadsSvg from '../../../../assets/svg/CrossRoadsSvg.svg'
29
+ import axios from 'axios'
30
30
 
31
31
  export default {
32
32
  name: 'custom-channelization',
@@ -117,20 +117,23 @@ export default {
117
117
  this.$emit('saveCallback', res)
118
118
  },
119
119
  AutoReadSVG () {
120
- // this.loadedChannelizatonData = {
121
- // crossMap: {
122
- // index: -2,
123
- // icontype: 'crossmap',
124
- // x: 435,
125
- // y: 325,
126
- // w: 870,
127
- // h: 650,
128
- // angle: 0,
129
- // imgfilesrc: '',
130
- // svgstr: DefaultCrossRoadsSvg,
131
- // type: 'vectorgraph'
132
- // }
133
- // }
120
+ axios.get('./img/CrossRoadsSvg.svg').then((val) => {
121
+ if (!val.data || val.data === '') return
122
+ this.loadedChannelizatonData = {
123
+ crossMap: {
124
+ index: -2,
125
+ icontype: 'crossmap',
126
+ x: 435,
127
+ y: 325,
128
+ w: 870,
129
+ h: 650,
130
+ angle: 0,
131
+ imgfilesrc: '',
132
+ svgstr: val.data,
133
+ type: 'vectorgraph'
134
+ }
135
+ }
136
+ })
134
137
  }
135
138
  },
136
139
  mounted () {
@@ -138,5 +141,4 @@ export default {
138
141
  }
139
142
  }
140
143
  </script>
141
- <style scoped>
142
- </style>
144
+ <style scoped></style>