From e131022ec80a3f99f907f4b73dedcf46fc2d2748 Mon Sep 17 00:00:00 2001 From: suyanyan <1321717064@qq.com> Date: Wed, 20 Nov 2024 13:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E9=80=9A=E7=9F=A5=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/.env.development | 4 +- .../src/api/modules/sys/audit/index.ts | 1 + .../src/api/modules/sys/audit/smsLog.ts | 44 +++++++ .../src/views/sys/audit/oplog/index.vue | 2 +- .../sys/audit/smslog/components/detail.vue | 70 ++++++++++ .../sys/audit/smslog/components/lineChat.vue | 73 +++++++++++ .../sys/audit/smslog/components/pieChat.vue | 47 +++++++ .../src/views/sys/audit/smslog/index.vue | 124 ++++++++++++++++++ .../src/views/sys/audit/vislog/index.vue | 2 +- 9 files changed, 363 insertions(+), 4 deletions(-) create mode 100644 SafeCampus.WEB/src/api/modules/sys/audit/smsLog.ts create mode 100644 SafeCampus.WEB/src/views/sys/audit/smslog/components/detail.vue create mode 100644 SafeCampus.WEB/src/views/sys/audit/smslog/components/lineChat.vue create mode 100644 SafeCampus.WEB/src/views/sys/audit/smslog/components/pieChat.vue create mode 100644 SafeCampus.WEB/src/views/sys/audit/smslog/index.vue diff --git a/SafeCampus.WEB/.env.development b/SafeCampus.WEB/.env.development index 20a42a9..7f8f119 100644 --- a/SafeCampus.WEB/.env.development +++ b/SafeCampus.WEB/.env.development @@ -16,12 +16,12 @@ VITE_PWA = false # 开发环境接口地址 # VITE_API_URL = http://192.168.10.186:5566 -VITE_API_URL = http://192.168.10.186:8003 +VITE_API_URL = http://192.168.10.51:8003 # 否开启代理 VITE_HTTP_PROXY = true # 开发环境跨域代理,支持配置多个 # VITE_PROXY = [["/api","http://192.168.10.186:5566","/Files"]] -VITE_PROXY = [["/api","http://192.168.10.186:8003"],["/Files","http://192.168.10.186:8003/Files"]] +VITE_PROXY = [["/api","http://192.168.10.51:8003"],["/Files","http://192.168.10.51:8003/Files"]] diff --git a/SafeCampus.WEB/src/api/modules/sys/audit/index.ts b/SafeCampus.WEB/src/api/modules/sys/audit/index.ts index 9bced83..90b8564 100644 --- a/SafeCampus.WEB/src/api/modules/sys/audit/index.ts +++ b/SafeCampus.WEB/src/api/modules/sys/audit/index.ts @@ -14,3 +14,4 @@ */ export * from "./visLog"; export * from "./opLog"; +export * from "./smsLog"; diff --git a/SafeCampus.WEB/src/api/modules/sys/audit/smsLog.ts b/SafeCampus.WEB/src/api/modules/sys/audit/smsLog.ts new file mode 100644 index 0000000..b8cf883 --- /dev/null +++ b/SafeCampus.WEB/src/api/modules/sys/audit/smsLog.ts @@ -0,0 +1,44 @@ +/** + * @description 操作日志 + * @license Apache License Version 2.0 + * @Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛 + * @remarks + * SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款: + * 1.请不要删除和修改根目录下的LICENSE文件。 + * 2.请不要删除和修改SimpleAdmin源码头部的版权声明。 + * 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin + * 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。 + * 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为不要删除和修改作者声明。 + * 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关 + * @see https://gitee.com/dotnetmoyu/SimpleAdmin + */ + +import { ResPage, VisLog } from "@/api/interface"; +import { moduleRequest } from "@/api/request"; +const http = moduleRequest("/sys/audit/smsLog/"); + +/** + * @Description: 操作日志 + * @Author: huguodong + * @Date: 2024-11-19 15:34:54 + */ +const smsLogApi = { + /** 获取操作日志分页 */ + page(params: VisLog.Page) { + return http.get>("page", params); + }, + /** 获取操作日志柱状图数据 */ + lineChart() { + return http.get("lineChartData", {}, { loading: false }); + }, + /** 获取操作日志饼状图数据 */ + pieChart() { + return http.get("pieChartData", {}, { loading: false }); + }, + /** 清空操作日志 */ + delete(category: string) { + return http.post("delete", { category }); + } +}; + +export { smsLogApi }; diff --git a/SafeCampus.WEB/src/views/sys/audit/oplog/index.vue b/SafeCampus.WEB/src/views/sys/audit/oplog/index.vue index 546d8b5..b02ad00 100644 --- a/SafeCampus.WEB/src/views/sys/audit/oplog/index.vue +++ b/SafeCampus.WEB/src/views/sys/audit/oplog/index.vue @@ -34,7 +34,7 @@ {{ item.label }} - + diff --git a/SafeCampus.WEB/src/views/sys/audit/smslog/components/detail.vue b/SafeCampus.WEB/src/views/sys/audit/smslog/components/detail.vue new file mode 100644 index 0000000..de3e907 --- /dev/null +++ b/SafeCampus.WEB/src/views/sys/audit/smslog/components/detail.vue @@ -0,0 +1,70 @@ + + + + + + diff --git a/SafeCampus.WEB/src/views/sys/audit/smslog/components/lineChat.vue b/SafeCampus.WEB/src/views/sys/audit/smslog/components/lineChat.vue new file mode 100644 index 0000000..9a2f164 --- /dev/null +++ b/SafeCampus.WEB/src/views/sys/audit/smslog/components/lineChat.vue @@ -0,0 +1,73 @@ + + + + + + diff --git a/SafeCampus.WEB/src/views/sys/audit/smslog/components/pieChat.vue b/SafeCampus.WEB/src/views/sys/audit/smslog/components/pieChat.vue new file mode 100644 index 0000000..3f20f26 --- /dev/null +++ b/SafeCampus.WEB/src/views/sys/audit/smslog/components/pieChat.vue @@ -0,0 +1,47 @@ + + + + + + diff --git a/SafeCampus.WEB/src/views/sys/audit/smslog/index.vue b/SafeCampus.WEB/src/views/sys/audit/smslog/index.vue new file mode 100644 index 0000000..f60bb1f --- /dev/null +++ b/SafeCampus.WEB/src/views/sys/audit/smslog/index.vue @@ -0,0 +1,124 @@ + + + + + + diff --git a/SafeCampus.WEB/src/views/sys/audit/vislog/index.vue b/SafeCampus.WEB/src/views/sys/audit/vislog/index.vue index 305672e..3ad040b 100644 --- a/SafeCampus.WEB/src/views/sys/audit/vislog/index.vue +++ b/SafeCampus.WEB/src/views/sys/audit/vislog/index.vue @@ -34,7 +34,7 @@ {{ item.label }} - +