diff --git a/src/api/bst/device.js b/src/api/bst/device.js
index 574d0f8..18178cc 100644
--- a/src/api/bst/device.js
+++ b/src/api/bst/device.js
@@ -114,4 +114,4 @@ export function listAllDevice(query) {
method: 'get',
params: query
})
-}
+}
\ No newline at end of file
diff --git a/src/api/bst/deviceIot.js b/src/api/bst/deviceIot.js
index 01a1e82..e7aacca 100644
--- a/src/api/bst/deviceIot.js
+++ b/src/api/bst/deviceIot.js
@@ -62,3 +62,12 @@ export function setDeviceMusic(data) {
params: data
})
}
+
+// 管理员升级设备
+export function iotUpdateDevice(data) {
+ return request({
+ url: '/bst/device/iot/update',
+ method: 'put',
+ params: data
+ })
+}
diff --git a/src/views/bst/commandLog/index.vue b/src/views/bst/commandLog/index.vue
index 4760da8..5b027e0 100644
--- a/src/views/bst/commandLog/index.vue
+++ b/src/views/bst/commandLog/index.vue
@@ -25,6 +25,14 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
- {{d.row.longitude | dv}},{{d.row.latitude | dv}}
+
+ {{d.row.longitude | dv}},{{d.row.latitude | dv}}
+
@@ -137,7 +147,7 @@ export default {
// 字段列表
columns: [
{key: 'id', visible: false, label: 'ID', minWidth: null, sortable: true, overflow: false, align: 'center', width: '80'},
- {key: 'reason', visible: true, label: '原因', minWidth: null, sortable: true, overflow: false, align: 'left', width: null},
+ {key: 'reason', visible: true, label: '原因', minWidth: null, sortable: true, overflow: false, align: 'left', width: "300"},
{key: 'mac', visible: true, label: 'MAC', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'operaTime', visible: true, label: '时间', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
{key: 'command', visible: true, label: '命令', minWidth: null, sortable: true, overflow: false, align: 'center', width: null},
@@ -173,6 +183,7 @@ export default {
pageSize: 20,
orderByColumn: defaultSort.prop,
isAsc: defaultSort.order,
+ excludeCommand: '111',
id: null,
type: null,
mac: null,
@@ -312,6 +323,9 @@ export default {
this.download('bst/commandLog/export', {
...this.queryParams
}, `commandLog_${new Date().getTime()}.xlsx`)
+ },
+ handleLocation(row) {
+ window.open(`https://uri.amap.com/marker?position=${row.longitude},${row.latitude}`, '_blank');
}
}
};
diff --git a/src/views/bst/device/view/view.vue b/src/views/bst/device/view/view.vue
index 566bc94..24781e7 100644
--- a/src/views/bst/device/view/view.vue
+++ b/src/views/bst/device/view/view.vue
@@ -26,7 +26,10 @@
- {{ detail.hardwareVersion | dv }} | {{ detail.softwareVersion | dv }}
+
+ {{ detail.hardwareVersion | dv }} | {{ detail.softwareVersion | dv }}
+ 升级
+
@@ -49,12 +52,19 @@
-
-
- {{ detail.longitude | dv }}, {{ detail.latitude | dv }}
+
+
+ {{ detail.longitude | dv }}, {{ detail.latitude | dv }}
+
- {{ detail.lastLocationTime | dv }}
+ {{ detail.lastLocationTime | dv }}
{{ detail.signalStrength | dv }} | {{ detail.satellites | dv }}
+
+
+ {{ detail.mobileLon | dv }}, {{ detail.mobileLat | dv }}
+
+
+ {{ detail.mobileLocationTime | dv }}
@@ -126,7 +136,7 @@