diff --git a/src/api/operate-log/index.ts b/src/api/operate-log/index.ts new file mode 100644 index 0000000..cf9f5e1 --- /dev/null +++ b/src/api/operate-log/index.ts @@ -0,0 +1,14 @@ +import { AxiosPromise } from "axios"; +import { DeviceLogPageResult } from "@/api/operate-log/types"; +import request from "@/utils/request"; + +export function operateLogPage( + devId?: number, + data?: PageQuery +): AxiosPromise { + return request({ + url: `/api/device-log/v1/page/${devId}`, + method: "POST", + data, + }); +} diff --git a/src/api/operate-log/types.ts b/src/api/operate-log/types.ts new file mode 100644 index 0000000..b1d57ee --- /dev/null +++ b/src/api/operate-log/types.ts @@ -0,0 +1,13 @@ +export interface DeviceLogVO { + devId?: number; + operTime?: string; + operName?: string; + description?: string; + paramInfoList?: ParamInfo[]; +} +export type DeviceLogPageResult = PageResult; +export interface ParamInfo { + parameterName?: string; + actualValue?: string; + remarks?: string; +} diff --git a/src/router/index.ts b/src/router/index.ts index 6773d4b..d526489 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -282,6 +282,19 @@ export const constantRoutes: RouteRecordRaw[] = [ title: "终端日志文件", }, }, + { + path: "/resources/remote-info/device-operate-log/:devId", + name: "DeviceOperateLog", + component: () => + import( + "@/views/family/operate/remote-operation/components/DeviceOperateLog.vue" + ), + meta: { + hidden: true, + keepAlive: true, + title: "设备操作日志", + }, + }, ], }, ]; diff --git a/src/views/family/operate/remote-operation/components/DeviceOperateLog.vue b/src/views/family/operate/remote-operation/components/DeviceOperateLog.vue new file mode 100644 index 0000000..5e57d2b --- /dev/null +++ b/src/views/family/operate/remote-operation/components/DeviceOperateLog.vue @@ -0,0 +1,113 @@ + + + + + diff --git a/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue b/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue index eb03362..ea95a53 100644 --- a/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue +++ b/src/views/family/operate/remote-operation/components/RemoteOperateInfo.vue @@ -348,9 +348,12 @@ 终端配置文件 - 终端日志文件 + 设备操作日志 @@ -441,11 +444,16 @@ const skipProfiles = () => { path: `/resources/remote-info/profiles/${remote.value.devId}`, }); }; -const skipLogs = () => { +const skipTerminalLogFiles = () => { router.push({ path: `/resources/remote-info/terminal-log-files/${remote.value.devId}`, }); }; +const skipDeviceOperateLog = () => { + router.push({ + path: `/resources/remote-info/device-operate-log/${remote.value.devId}`, + }); +}; onMounted(() => { getData(); });