Procházet zdrojové kódy

feat:新增sceneNum参数

jinx před 4 roky
rodič
revize
ab5041b0fe
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      locat/addDataSet.html

+ 4 - 0
locat/addDataSet.html

@@ -199,6 +199,7 @@
                     ageControlLocation2: [],
                     gpsControlCoordinate1: [],
                     gpsControlCoordinate2: [],
+                    sceneNum:'',
                 }
             },
             created() {
@@ -307,7 +308,9 @@
                     this.gpsControlCoordinate2.push(this.blat - 0)
                     this.gpsControlCoordinate2.push(this.balt - 0)
 
+                    this.sceneNum = window.location.pathname.split('/')[2]
                 },
+                
                 commit() {
 
                     this.handleData()
@@ -316,6 +319,7 @@
                             ageControlLocation2: this.ageControlLocation2,
                             gpsControlCoordinate1: this.gpsControlCoordinate1,
                             gpsControlCoordinate2: this.gpsControlCoordinate2,
+                            sceneNum:this.sceneNum,
                             id: 1
                         })
                         .then(function (response) {