From 7d05499ae57a329412d9d79c7b39660e79250586 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?=
<14103883+leaf-phos@user.noreply.gitee.com>
Date: Sat, 14 Dec 2024 00:59:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/ss/commandLog.js | 44 +++
src/views/ss/commandLog/index.vue | 438 +++++++++++++++++++++++++++++
src/views/system/device/detail.vue | 15 +
3 files changed, 497 insertions(+)
create mode 100644 src/api/ss/commandLog.js
create mode 100644 src/views/ss/commandLog/index.vue
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
},