Bläddra i källkod

修改虚拟硬件经度和纬度

qinzhipeng_v 5 år sedan
förälder
incheckning
6666fbbc74
1 ändrade filer med 14 tillägg och 14 borttagningar
  1. 14 14
      src/views/virtualDevices/HTvehicle.vue

+ 14 - 14
src/views/virtualDevices/HTvehicle.vue

@@ -58,10 +58,10 @@
             <template slot-scope="scope"><span>{{ scope.row.gmtModify }}</span></template>
           </el-table-column> -->
           <el-table-column label="经度" min-width="60px" align="center" show-overflow-tooltip>
-            <template slot-scope="scope"><span>{{ scope.row.deviceLat }}</span></template>
+            <template slot-scope="scope"><span>{{ scope.row.deviceLng }}</span></template>
           </el-table-column>
           <el-table-column label="纬度" min-width="60px" align="center" show-overflow-tooltip>
-            <template slot-scope="scope"><span>{{ scope.row.deviceLng }}</span></template>
+            <template slot-scope="scope"><span>{{ scope.row.deviceLat }}</span></template>
           </el-table-column>
           <el-table-column label="关锁" align="center" min-width="60px" class-name="small-padding fixed-width">
             <template slot-scope="{row}">
@@ -137,9 +137,9 @@
             </tr>
             <tr>
               <th width="12%" height="40" style="background-color:#F1F4F7">经度</th>
-              <td>{{ detailData.deviceLat }}</td>
+              <td>{{ detailData.deviceLng }}</td>
               <th style="background-color:#F1F4F7">纬度 </th>
-              <td> {{ detailData.deviceLng }}</td>
+              <td> {{ detailData.deviceLat }}</td>
             </tr>
             <tr>
               <th width="12%" height="40" style="background-color:#F1F4F7">锁状态</th>
@@ -181,16 +181,16 @@
         <div class="set-font" style="width:100%">
           <div class="block-edit">
             <div style="display:flex;justify-content:space-between;width:92%">
-              <el-form-item label="经度" prop="deviceLat">
-                <el-input v-model="serviceData.deviceLat" style="width:100%;" placeholder="单车" />
+              <el-form-item label="经度" prop="deviceLng">
+                <el-input v-model="serviceData.deviceLng" style="width:100%;" placeholder="单车" />
               </el-form-item>
               <el-form-item label="电量" prop="lockBatteryLevel">
                 <el-input v-model="serviceData.lockBatteryLevel" style="width:100%;" placeholder="请填写" />
               </el-form-item>
             </div>
             <div style="display:flex;justify-content:space-between;width:92%">
-              <el-form-item label="纬度" prop="deviceLng">
-                <el-input v-model="serviceData.deviceLng" style="width:100%;" placeholder="请填写" />
+              <el-form-item label="纬度" prop="deviceLat">
+                <el-input v-model="serviceData.deviceLat" style="width:100%;" placeholder="请填写" />
               </el-form-item>
             </div>
           </div>
@@ -536,8 +536,8 @@ export default {
       this.bizData = {
         deviceId: vel.deviceId,
         lockBatteryLevel: vel.lockBatteryLevel,
-        deviceLat: vel.deviceLat,
-        deviceLng: vel.deviceLng
+        deviceLng: vel.deviceLng,
+        deviceLat: vel.deviceLat
       }
       updateLockAttr(this.bizData).then(response => {
         if (response.code === 200) {
@@ -554,8 +554,8 @@ export default {
       this.bizData = {
         deviceId: vel.deviceId,
         lockBatteryLevel: vel.lockBatteryLevel,
-        deviceLat: vel.deviceLat,
-        deviceLng: vel.deviceLng
+        deviceLng: vel.deviceLng,
+        deviceLat: vel.deviceLat
       }
       updateLockAttr1(this.bizData).then(response => {
         if (response.code === 200) {
@@ -572,8 +572,8 @@ export default {
       this.bizData = {
         deviceId: vel.deviceId,
         lockBatteryLevel: vel.lockBatteryLevel,
-        deviceLat: vel.deviceLat,
-        deviceLng: vel.deviceLng
+        deviceLng: vel.deviceLng,
+        deviceLat: vel.deviceLat
       }
       updateLockAttr2(this.bizData).then(response => {
         if (response.code === 200) {