From 475d236b7e65a6ad637c79bfb58ca1750104b5be Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Thu, 13 Feb 2025 15:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 3 + frontend/src/api/system/log/index.ts | 11 +++ frontend/src/api/system/log/interface/log.ts | 49 +++++++++---- frontend/src/views/home/components/tree.vue | 5 +- frontend/src/views/log/index.vue | 70 +++++++++--------- .../devType/components/devTypePopup.vue | 4 +- frontend/src/views/machine/devType/index.vue | 9 ++- .../machine/device/components/devicePopup.vue | 4 +- frontend/src/views/machine/icd/index.vue | 11 +-- frontend/src/views/plan/planList/index.vue | 71 ++++++++++++++----- 10 files changed, 149 insertions(+), 88 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 93a9f0c..24e9bd7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -22,6 +22,7 @@ "echarts": "^5.4.3", "echarts-liquidfill": "^3.1.0", "element-plus": "^2.7.8", + "html2canvas": "^1.4.1", "md5": "^2.3.0", "mitt": "^3.0.1", "mkdirp": "^3.0.1", @@ -41,11 +42,13 @@ "devDependencies": { "@rushstack/eslint-patch": "^1.8.0", "@tsconfig/node20": "^20.1.4", + "@types/html2canvas": "^1.0.0", "@types/md5": "^2.3.2", "@types/node": "^20.14.14", "@types/nprogress": "^0.2.0", "@types/qs": "^6.9.8", "@types/sortablejs": "^1.15.2", + "@types/xlsx": "^0.0.36", "@typescript-eslint/eslint-plugin": "^6.7.0", "@typescript-eslint/parser": "^6.7.0", "@vitejs/plugin-vue": "^5.0.5", diff --git a/frontend/src/api/system/log/index.ts b/frontend/src/api/system/log/index.ts index e69de29..1178379 100644 --- a/frontend/src/api/system/log/index.ts +++ b/frontend/src/api/system/log/index.ts @@ -0,0 +1,11 @@ +import type {AuditLog } from '@/api/system/log/interface/log.ts' +import http from '@/api' + +/** + * @name 审计日志管理模块 + */ + +//获取审计日志 +export const getAuditLog = (params: AuditLog.ReqAuditLogParams) => { + return http.post(`/sysLog/list`, params) +} diff --git a/frontend/src/api/system/log/interface/log.ts b/frontend/src/api/system/log/interface/log.ts index 623da8d..105a340 100644 --- a/frontend/src/api/system/log/interface/log.ts +++ b/frontend/src/api/system/log/interface/log.ts @@ -1,15 +1,36 @@ -// 审计日志管理模块 -export namespace Sys_Log_Audit { - // 日志列表 - export interface Audit_LogList { - id: string;//日志表Id - operate_Type:string;//日志类型 - ip:string;//操作IP - result: string;//事件结果 - remark: string;//事件描述 - warn:number;//告警标志 - create_By:string;//创建用户 - create_Time:string;//创建时间 - } +import type { ReqPage, ResPage } from '@/api/interface' - } \ No newline at end of file +// 审计日志管理模块 +export namespace AuditLog { + + /** + * 设备类型数据表格分页查询参数 + */ + export interface ReqAuditLogParams extends ReqPage { + id: string; //审计日志Id 必填 + createTime?: string; //创建时间 + } + + /** + * 设备类型新增、修改、根据id查询返回的对象 + */ + export interface ResAuditLog { + id: string;//审计日志Id + operate_Type:string;//操作类型 + ip:string;//操作IP + result: string;//事件结果 + remark: string;//事件描述 + level:number;//告警等级 + warn:number;//告警标志 + create_By:string;//创建用户 + create_Time:string;//创建时间 + sort:number;//排序 + } + + /** + * 设备类型表格查询分页返回的对象; + */ + export interface ResAuditLogPage extends ResPage { + + } +} \ No newline at end of file diff --git a/frontend/src/views/home/components/tree.vue b/frontend/src/views/home/components/tree.vue index 6ba2dcc..24ea380 100644 --- a/frontend/src/views/home/components/tree.vue +++ b/frontend/src/views/home/components/tree.vue @@ -6,8 +6,10 @@ clearable v-model='searchForm.planName' > + +
{ // 点击详情 const detail = () => { - router.push('/plan') + router.push('/plan/planList') } onMounted(() => { // console.log() diff --git a/frontend/src/views/log/index.vue b/frontend/src/views/log/index.vue index 88e3bdf..4837d52 100644 --- a/frontend/src/views/log/index.vue +++ b/frontend/src/views/log/index.vue @@ -3,7 +3,7 @@ @@ -21,41 +21,39 @@