diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 1d2e9eb..f39f4b2 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -171,6 +171,78 @@
},
],
},
+ {
+ path: '/business',
+ component: Layout,
+ redirect: '/business/list',
+ name: 'BusinessLog',
+ meta: {
+ title: '业务日志',
+ icon: 'ep:key',
+ auth: '/sys/resource',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'BusinessList',
+ component: () => import('@/views/system/log/list.log.vue'),
+ meta: {
+ title: '业务日志',
+ auth: '/sys/resource',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/error',
+ component: Layout,
+ redirect: '/error/list',
+ name: 'ErrorLog',
+ meta: {
+ title: '异常日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'ErrorList',
+ component: () => import('@/views/system/log/listErrorLog.vue'),
+ meta: {
+ title: '异常日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/loginDiary',
+ component: Layout,
+ redirect: '/loginDiary/list',
+ name: 'loginDiaryLog',
+ meta: {
+ title: '登录日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'loginDiaryList',
+ component: () => import('@/views/system/log/LoginLog.vue'),
+ meta: {
+ title: '登录日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
]
export default routes
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 1d2e9eb..f39f4b2 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -171,6 +171,78 @@
},
],
},
+ {
+ path: '/business',
+ component: Layout,
+ redirect: '/business/list',
+ name: 'BusinessLog',
+ meta: {
+ title: '业务日志',
+ icon: 'ep:key',
+ auth: '/sys/resource',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'BusinessList',
+ component: () => import('@/views/system/log/list.log.vue'),
+ meta: {
+ title: '业务日志',
+ auth: '/sys/resource',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/error',
+ component: Layout,
+ redirect: '/error/list',
+ name: 'ErrorLog',
+ meta: {
+ title: '异常日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'ErrorList',
+ component: () => import('@/views/system/log/listErrorLog.vue'),
+ meta: {
+ title: '异常日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/loginDiary',
+ component: Layout,
+ redirect: '/loginDiary/list',
+ name: 'loginDiaryLog',
+ meta: {
+ title: '登录日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'loginDiaryList',
+ component: () => import('@/views/system/log/LoginLog.vue'),
+ meta: {
+ title: '登录日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
]
export default routes
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 3058654..3ada883 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -1,14 +1,196 @@
-
- 日志管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 1d2e9eb..f39f4b2 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -171,6 +171,78 @@
},
],
},
+ {
+ path: '/business',
+ component: Layout,
+ redirect: '/business/list',
+ name: 'BusinessLog',
+ meta: {
+ title: '业务日志',
+ icon: 'ep:key',
+ auth: '/sys/resource',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'BusinessList',
+ component: () => import('@/views/system/log/list.log.vue'),
+ meta: {
+ title: '业务日志',
+ auth: '/sys/resource',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/error',
+ component: Layout,
+ redirect: '/error/list',
+ name: 'ErrorLog',
+ meta: {
+ title: '异常日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'ErrorList',
+ component: () => import('@/views/system/log/listErrorLog.vue'),
+ meta: {
+ title: '异常日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/loginDiary',
+ component: Layout,
+ redirect: '/loginDiary/list',
+ name: 'loginDiaryLog',
+ meta: {
+ title: '登录日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'loginDiaryList',
+ component: () => import('@/views/system/log/LoginLog.vue'),
+ meta: {
+ title: '登录日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
]
export default routes
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 3058654..3ada883 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -1,14 +1,196 @@
-
- 日志管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
new file mode 100644
index 0000000..b17e2c3
--- /dev/null
+++ b/src/views/system/log/listErrorLog.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 1d2e9eb..f39f4b2 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -171,6 +171,78 @@
},
],
},
+ {
+ path: '/business',
+ component: Layout,
+ redirect: '/business/list',
+ name: 'BusinessLog',
+ meta: {
+ title: '业务日志',
+ icon: 'ep:key',
+ auth: '/sys/resource',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'BusinessList',
+ component: () => import('@/views/system/log/list.log.vue'),
+ meta: {
+ title: '业务日志',
+ auth: '/sys/resource',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/error',
+ component: Layout,
+ redirect: '/error/list',
+ name: 'ErrorLog',
+ meta: {
+ title: '异常日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'ErrorList',
+ component: () => import('@/views/system/log/listErrorLog.vue'),
+ meta: {
+ title: '异常日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/loginDiary',
+ component: Layout,
+ redirect: '/loginDiary/list',
+ name: 'loginDiaryLog',
+ meta: {
+ title: '登录日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'loginDiaryList',
+ component: () => import('@/views/system/log/LoginLog.vue'),
+ meta: {
+ title: '登录日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
]
export default routes
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 3058654..3ada883 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -1,14 +1,196 @@
-
- 日志管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
new file mode 100644
index 0000000..b17e2c3
--- /dev/null
+++ b/src/views/system/log/listErrorLog.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
new file mode 100644
index 0000000..9269bdd
--- /dev/null
+++ b/src/views/system/log/log_interface.ts
@@ -0,0 +1,21 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ // logType: '业务日志',
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
+
+export interface IlistQueryError {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 1d2e9eb..f39f4b2 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -171,6 +171,78 @@
},
],
},
+ {
+ path: '/business',
+ component: Layout,
+ redirect: '/business/list',
+ name: 'BusinessLog',
+ meta: {
+ title: '业务日志',
+ icon: 'ep:key',
+ auth: '/sys/resource',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'BusinessList',
+ component: () => import('@/views/system/log/list.log.vue'),
+ meta: {
+ title: '业务日志',
+ auth: '/sys/resource',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/error',
+ component: Layout,
+ redirect: '/error/list',
+ name: 'ErrorLog',
+ meta: {
+ title: '异常日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'ErrorList',
+ component: () => import('@/views/system/log/listErrorLog.vue'),
+ meta: {
+ title: '异常日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/loginDiary',
+ component: Layout,
+ redirect: '/loginDiary/list',
+ name: 'loginDiaryLog',
+ meta: {
+ title: '登录日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'loginDiaryList',
+ component: () => import('@/views/system/log/LoginLog.vue'),
+ meta: {
+ title: '登录日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
]
export default routes
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 3058654..3ada883 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -1,14 +1,196 @@
-
- 日志管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
new file mode 100644
index 0000000..b17e2c3
--- /dev/null
+++ b/src/views/system/log/listErrorLog.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
new file mode 100644
index 0000000..9269bdd
--- /dev/null
+++ b/src/views/system/log/log_interface.ts
@@ -0,0 +1,21 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ // logType: '业务日志',
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
+
+export interface IlistQueryError {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
new file mode 100644
index 0000000..068b97b
--- /dev/null
+++ b/src/views/system/log/loginLog.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 8ffa9b7..d85ed1b 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,14 @@
"commitizen": {
"path": "node_modules/cz-git"
}
+ },
+ "prettier": {
+ "eslintIntegration": true,
+ "stylelintIntegration": true,
+ "singleQuote": true,
+ "semi": false,
+ "insertPragma": false,
+ "trailingComma": "none",
+ "arrowParens": "avoid"
}
}
diff --git a/src/api/system/log.ts b/src/api/system/log.ts
new file mode 100644
index 0000000..acb8fba
--- /dev/null
+++ b/src/api/system/log.ts
@@ -0,0 +1,73 @@
+/**
+ * 日志管理接口
+ */
+import request from '../index'
+// 操作日志查询
+export function getBizLogList(params) {
+ return request({
+ url: 'sys/log/biz/list',
+ method: 'get',
+ params,
+ })
+}
+// 操作日志详情
+export function getBizLogDetail(id: string) {
+ return request({
+ url: `sys/log/biz/detail/${id}`,
+ method: 'get',
+ })
+}
+// 异常日志查询
+export function getErrorLogList(params) {
+ return request({
+ url: 'sys/log/error/list',
+ method: 'get',
+ params,
+ })
+}
+// 异常日志详情
+export function getErrorLogDetail(id: string) {
+ return request({
+ url: `sys/log/error/detail/${id}`,
+ method: 'get',
+ })
+}
+// 日志类型查询
+export function getLogType() {
+ return request({
+ url: 'sys/dict/code/logType',
+ method: 'get',
+ })
+}
+
+// 删除业务日志
+export function delLog() {
+ return request({
+ url: 'sys/log/biz/delLog',
+ method: 'post',
+ })
+}
+
+// 删除异常日志
+export function delErrorLog() {
+ return request({
+ url: 'sys/log/error/delLog',
+ method: 'post',
+ })
+}
+
+// 登录日志查询
+export function getLoginLogList(params) {
+ return request({
+ url: 'sys/loginLog/list',
+ method: 'get',
+ params,
+ })
+}
+// 删除日志
+export function delLoginLog() {
+ return request({
+ url: 'sys/loginLog/delLoginLog',
+ method: 'post',
+ })
+}
diff --git a/src/components.d.ts b/src/components.d.ts
index 6baf753..558b652 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -11,7 +11,6 @@
Auth: typeof import('./components/Auth/index.vue')['default']
AuthAll: typeof import('./components/AuthAll/index.vue')['default']
BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default']
- copy: typeof import('./components/SearchArea/index copy.vue')['default']
Copyright: typeof import('./components/Copyright/index.vue')['default']
DeptSelect: typeof import('./components/DeptSelect/index.vue')['default']
Editor: typeof import('./components/Editor/index.vue')['default']
diff --git a/src/router/modules/system.ts b/src/router/modules/system.ts
index 1d2e9eb..f39f4b2 100644
--- a/src/router/modules/system.ts
+++ b/src/router/modules/system.ts
@@ -171,6 +171,78 @@
},
],
},
+ {
+ path: '/business',
+ component: Layout,
+ redirect: '/business/list',
+ name: 'BusinessLog',
+ meta: {
+ title: '业务日志',
+ icon: 'ep:key',
+ auth: '/sys/resource',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'BusinessList',
+ component: () => import('@/views/system/log/list.log.vue'),
+ meta: {
+ title: '业务日志',
+ auth: '/sys/resource',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/error',
+ component: Layout,
+ redirect: '/error/list',
+ name: 'ErrorLog',
+ meta: {
+ title: '异常日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'ErrorList',
+ component: () => import('@/views/system/log/listErrorLog.vue'),
+ meta: {
+ title: '异常日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
+ {
+ path: '/loginDiary',
+ component: Layout,
+ redirect: '/loginDiary/list',
+ name: 'loginDiaryLog',
+ meta: {
+ title: '登录日志',
+ icon: 'ep:key',
+ auth: '/sys/role',
+ },
+ children: [
+ {
+ path: 'list',
+ name: 'loginDiaryList',
+ component: () => import('@/views/system/log/LoginLog.vue'),
+ meta: {
+ title: '登录日志',
+ auth: '/sys/role',
+ sidebar: false,
+ breadcrumb: true,
+ },
+ },
+ ],
+ },
]
export default routes
diff --git a/src/views/system/log/list.log.vue b/src/views/system/log/list.log.vue
index 3058654..3ada883 100644
--- a/src/views/system/log/list.log.vue
+++ b/src/views/system/log/list.log.vue
@@ -1,14 +1,196 @@
-
- 日志管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
diff --git a/src/views/system/log/listErrorLog.vue b/src/views/system/log/listErrorLog.vue
new file mode 100644
index 0000000..b17e2c3
--- /dev/null
+++ b/src/views/system/log/listErrorLog.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
+
+ 详情
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/log/log_interface.ts b/src/views/system/log/log_interface.ts
new file mode 100644
index 0000000..9269bdd
--- /dev/null
+++ b/src/views/system/log/log_interface.ts
@@ -0,0 +1,21 @@
+export interface IlistQuery {
+ keywords: string
+ beginTime: string
+ endTime: string
+ // logType: '业务日志',
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
+
+export interface IlistQueryError {
+ keywords: string
+ beginTime: string
+ endTime: string
+ logType: string
+ offset: number
+ limit: number
+ sort: string
+ order: string
+}
diff --git a/src/views/system/log/loginLog.vue b/src/views/system/log/loginLog.vue
new file mode 100644
index 0000000..068b97b
--- /dev/null
+++ b/src/views/system/log/loginLog.vue
@@ -0,0 +1,160 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 清空日志
+
+
+
+
+
+
+
diff --git a/tsconfig.json b/tsconfig.json
index fc53447..a5d7d7b 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -10,16 +10,11 @@
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
- "lib": [
- "ESNext",
- "DOM"
- ],
+ "lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"baseUrl": "./",
"paths": {
- "@/*": [
- "src/*"
- ]
+ "@/*": ["src/*"]
},
"types": [
"vite/client",
@@ -28,12 +23,7 @@
"vite-plugin-vue-layouts/client"
]
},
- "include": [
- "src/**/*.ts",
- "src/**/*.d.ts",
- "src/**/*.tsx",
- "src/**/*.vue"
- ],
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [
{
"path": "./tsconfig.node.json"