openatc-components 0.4.49 → 0.4.51

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.
@@ -412,6 +412,7 @@ export default {
412
412
  this.isHasPhase = false
413
413
  },
414
414
  createDetectorStatusMap () {
415
+ this.detectorStatusMap = new Map()
415
416
  if (this.detectorStatusList) {
416
417
  this.detectorStatusList.map(detector => {
417
418
  let detectorId = detector.id
@@ -154,6 +154,8 @@ import { mapState } from 'vuex'
154
154
  import { saveChannelizatonChart } from '../../../../api/cross'
155
155
  import { getMessageByCode } from '../../../../utils/responseMessage.js'
156
156
 
157
+ import axios from 'axios'
158
+
157
159
  export default {
158
160
  name: 'draw-channelization',
159
161
  components: {
@@ -767,19 +769,36 @@ export default {
767
769
  this.Pedwalk = []
768
770
  this.Detector = []
769
771
  this.DetectorChart = []
770
- this.CrossMapData = {
771
- index: -2, // 暂定为-2,用于复用图标判断逻辑
772
- icontype: 'crossmap',
773
- x: this.MapW / 2,
774
- y: this.MapH / 2,
775
- w: this.MapW,
776
- h: this.MapH,
777
- angle: 0,
778
- svgstr: '',
779
- imgfilesrc: ''
780
- }
772
+ // this.CrossMapData = {
773
+ // index: -2, // 暂定为-2,用于复用图标判断逻辑
774
+ // icontype: 'crossmap',
775
+ // x: this.MapW / 2,
776
+ // y: this.MapH / 2,
777
+ // w: this.MapW,
778
+ // h: this.MapH,
779
+ // angle: 0,
780
+ // svgstr: '',
781
+ // imgfilesrc: ''
782
+ // }
781
783
  this.index = 0
782
784
  this.curChooseIcon = {}
785
+ axios.get('./img/CrossRoadsSvg.svg').then((val) => {
786
+ if (!val.data || val.data === '') return
787
+ this.loadedChannelizatonData = {
788
+ crossMap: {
789
+ index: -2,
790
+ icontype: 'crossmap',
791
+ x: 435,
792
+ y: 325,
793
+ w: 870,
794
+ h: 650,
795
+ angle: 0,
796
+ imgfilesrc: '',
797
+ svgstr: val.data,
798
+ type: 'vectorgraph'
799
+ }
800
+ }
801
+ })
783
802
  },
784
803
  // 取消
785
804
  cancledraw () {