소스 검색

采取我的方案之后修改getinfo名称

pm 9 달 전
부모
커밋
9d87c9e5e8
1개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 9 9
      src/views/mes/hw/lotoStation/MapData.vue

+ 9 - 9
src/views/mes/hw/lotoStation/MapData.vue

@@ -77,7 +77,7 @@ export default {
   },
   beforeRouteEnter(to, from, next) {
     next(vm => {
-      vm.getLoToInfo()
+      vm.getInfo()
       vm.initKonva()
       vm.getIsIsolationPointPage()
       vm.addPointsToLeftPointsBox()
@@ -85,18 +85,18 @@ export default {
     })
   },
   mounted() {
-    // this.$nextTick(()=>{
-    //   this.getLoToInfo()
-    //   this.initKonva();
-    //   this.getIsIsolationPointPage()
-    //   this.addPointsToAllPointsBox()
-    //   this.addPointsToCabinetBox()
-    // })
+    this.$nextTick(()=>{
+      this.getInfo()
+      this.initKonva();
+      this.getIsIsolationPointPage()
+      this.addPointsToRightPointsBox()
+      this.addPointsToLeftPointsBox()
+    })
     console.log(this.$route.query.lotoId, 'lotoId')
   },
   methods: {
 
-    getLoToInfo() {
+    getInfo() {
       const lotoId = this.$route.query.lotoId
       const sopId = ''
       const ticketId = ''