瀏覽代碼

feat:新增sceneNum参数

jinx 4 年之前
父節點
當前提交
ab5041b0fe
共有 1 個文件被更改,包括 4 次插入0 次删除
  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) {