Browse Source

添加存储参数

sunkuosheng 3 months ago
parent
commit
4fdb4fb969
1 changed files with 8 additions and 4 deletions
  1. 8 4
      ruoyi-ui/src/views/system/jkyj/module/znsh.vue

+ 8 - 4
ruoyi-ui/src/views/system/jkyj/module/znsh.vue

@@ -852,10 +852,6 @@
                   ...this.opt,
                   path:this.form.path,
                   name:this.form.dzwlName,
-                  //   - longitude: 经度  float 类型,例如 112.41522,必选
-                  // - latitude: 纬度  floag 类型,例如 256303,必选
-                  // - fanwei:范围 (米) int 类型,0 表示取消电子围栏,必选
-                  // - name: 围栏名字,string 类型,可选
                 };
                 let  ret2 = await axios.post('/hjkupdateelectricfence/sdkapi/api/push/hjk/updateelectricfence.htm', qur2, {
                   'Content-Type': 'application/json; charset=UTF-8',
@@ -920,6 +916,14 @@
           this.$modal.msgSuccess('设置成功');
           let devpara = {
             ...this.form,
+            dzwlOpt:{
+              path:this.form.path,
+              dzwlName:this.form.dzwlName,
+              longitude:this.form.longitude?this.form.longitude:'125.447565',
+              latitude:this.form.latitude?this.form.latitude:'43.888763',
+              fanwei:this.form.fanwei?this.form.fanwei:0,
+              vlxz:this.form.vlxz
+            },
             sblx: this.opt.sblb,                       //设备类型
             sbbh: this.opt.sbbh,
             dxtx:{