diff --git a/src/api/ss/commandLog.js b/src/api/ss/commandLog.js
new file mode 100644
index 0000000..5648c7f
--- /dev/null
+++ b/src/api/ss/commandLog.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询命令日志列表
+export function listCommandLog(query) {
+ return request({
+ url: '/ss/commandLog/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询命令日志详细
+export function getCommandLog(id) {
+ return request({
+ url: '/ss/commandLog/' + id,
+ method: 'get'
+ })
+}
+
+// 新增命令日志
+export function addCommandLog(data) {
+ return request({
+ url: '/ss/commandLog',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改命令日志
+export function updateCommandLog(data) {
+ return request({
+ url: '/ss/commandLog',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除命令日志
+export function delCommandLog(id) {
+ return request({
+ url: '/ss/commandLog/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/ss/commandLog/index.vue b/src/views/ss/commandLog/index.vue
new file mode 100644
index 0000000..8ef8aeb
--- /dev/null
+++ b/src/views/ss/commandLog/index.vue
@@ -0,0 +1,438 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+ {{d.row[column.key]}}
+
+
+
+
+
+
+
+
+
+ {{d.row.userName}}
+
+
+ {{d.row[column.key]}}
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/device/detail.vue b/src/views/system/device/detail.vue
index 7646be3..a27b73a 100644
--- a/src/views/system/device/detail.vue
+++ b/src/views/system/device/detail.vue
@@ -154,6 +154,9 @@
+
+
+
@@ -227,12 +230,14 @@ import BindMchButton from '@/views/system/device/components/BindMchButton.vue'
import BindAgentButton from '@/views/system/device/components/BindAgentButton.vue'
import LineField from '@/components/LineField/index.vue'
import DeviceSetWifiDialog from '@/views/system/device/components/DeviceSetWifiDialog.vue'
+import CommandLog from "@/views/ss/commandLog/index.vue";
export default {
name: 'Device/:deviceId',
mixins: [$serviceType, $view],
dicts: ['sm_device_status', 'sm_device_outage_way', 'sm_device_notice_way', 'sm_model_tag', 'sm_device_online_status', 'service_type', 'device_service_mode', 'time_unit', 'bonus_arrival_type'],
components: {
+ CommandLog,
DeviceSetWifiDialog,
LineField,
BindAgentButton,
@@ -270,6 +275,16 @@ export default {
}
},
computed: {
+ macList() {
+ let list = [];
+ if (!isEmpty(this.deviceData.mac)) {
+ list.push(this.deviceData.mac)
+ }
+ if (!isEmpty(this.deviceData.mac2)) {
+ list.push(this.deviceData.mac2);
+ }
+ return list;
+ },
DeviceOnlineStatus() {
return DeviceOnlineStatus
},