优化操作日志、登录日志功能

This commit is contained in:
zjl 2024-08-30 10:52:27 +08:00
parent bb2f767725
commit c15decdccd
4 changed files with 64 additions and 19 deletions

View File

@ -12,7 +12,7 @@ VITE_DROP_CONSOLE = true
# 跨域代理,可以配置多个,请注意不要换行 # 跨域代理,可以配置多个,请注意不要换行
#VITE_PROXY = [["/appApi","http://localhost:8001"],["/upload","http://localhost:8001/upload"]] #VITE_PROXY = [["/appApi","http://localhost:8001"],["/upload","http://localhost:8001/upload"]]
VITE_PROXY=[["/api","http://192.168.124.203:8081/api"]] VITE_PROXY=[["/api","http://127.0.0.1:8081/api"]]
# API 接口地址 # API 接口地址
VITE_GLOB_API_URL = VITE_GLOB_API_URL =

View File

@ -11,6 +11,9 @@ importers:
'@element-plus/icons-vue': '@element-plus/icons-vue':
specifier: ^2.3.1 specifier: ^2.3.1
version: 2.3.1(vue@3.4.27(typescript@4.9.5)) version: 2.3.1(vue@3.4.27(typescript@4.9.5))
'@tinymce/tinymce-vue':
specifier: ^5.1.1
version: 5.1.1(vue@3.4.27(typescript@4.9.5))
'@vicons/antd': '@vicons/antd':
specifier: ^0.12.0 specifier: ^0.12.0
version: 0.12.0 version: 0.12.0
@ -71,9 +74,15 @@ importers:
qs: qs:
specifier: ^6.12.1 specifier: ^6.12.1
version: 6.12.1 version: 6.12.1
tinymce:
specifier: 5.10.3
version: 5.10.3
vue: vue:
specifier: ^3.4.27 specifier: ^3.4.27
version: 3.4.27(typescript@4.9.5) version: 3.4.27(typescript@4.9.5)
vue-cropper:
specifier: 0.5.8
version: 0.5.8
vue-router: vue-router:
specifier: ^4.3.2 specifier: ^4.3.2
version: 4.3.2(vue@3.4.27(typescript@4.9.5)) version: 4.3.2(vue@3.4.27(typescript@4.9.5))
@ -744,6 +753,11 @@ packages:
'@sxzz/popperjs-es@2.11.7': '@sxzz/popperjs-es@2.11.7':
resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==} resolution: {integrity: sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==}
'@tinymce/tinymce-vue@5.1.1':
resolution: {integrity: sha512-iO57HOWesFOhsaqjA5Ea6sDvQBmJJH3/dq00Uvg7metlct2kLF+ctRgoDsetLt6gmeZ7COPftr814/XzqnJ/dg==}
peerDependencies:
vue: ^3.0.0
'@tsconfig/node10@1.0.11': '@tsconfig/node10@1.0.11':
resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==}
@ -3510,6 +3524,9 @@ packages:
through@2.3.8: through@2.3.8:
resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
tinymce@5.10.3:
resolution: {integrity: sha512-O59ssHNnujWvSk5Gt8hIGrdNCMKVWVQv9F8siAgLTRgTh0t3NDHrP1UlLtCxArUi9DPWZvlBeUz8D5fJTu7vnA==}
tmp@0.0.33: tmp@0.0.33:
resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==}
engines: {node: '>=0.6.0'} engines: {node: '>=0.6.0'}
@ -3694,6 +3711,9 @@ packages:
terser: terser:
optional: true optional: true
vue-cropper@0.5.8:
resolution: {integrity: sha512-Xgi/aLQCcNCiBTUdovy/i4LWx0G7fQnAENBpDWA3J4i87Zlk9DJRksXrClsQ6nnaFRfQVkMimij5GEvAMaXdYw==}
vue-demi@0.14.8: vue-demi@0.14.8:
resolution: {integrity: sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==} resolution: {integrity: sha512-Uuqnk9YE9SsWeReYqK2alDI5YzciATE0r2SkA6iMAtuXvNTMNACJLJEXNXaEy94ECuBe4Sk6RzRU80kjdbIo1Q==}
engines: {node: '>=12'} engines: {node: '>=12'}
@ -4123,7 +4143,7 @@ snapshots:
'@types/node': 20.5.1 '@types/node': 20.5.1
chalk: 4.1.2 chalk: 4.1.2
cosmiconfig: 8.3.6(typescript@4.9.5) cosmiconfig: 8.3.6(typescript@4.9.5)
cosmiconfig-typescript-loader: 4.4.0(@types/node@20.5.1)(cosmiconfig@8.3.6(typescript@4.9.5))(ts-node@10.9.2(@types/node@20.5.1)(typescript@4.9.5))(typescript@4.9.5) cosmiconfig-typescript-loader: 4.4.0(@types/node@20.5.1)(cosmiconfig@8.3.6(typescript@4.9.5))(ts-node@10.9.2(@types/node@17.0.45)(typescript@4.9.5))(typescript@4.9.5)
lodash.isplainobject: 4.0.6 lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2 lodash.merge: 4.6.2
lodash.uniq: 4.5.0 lodash.uniq: 4.5.0
@ -4403,6 +4423,11 @@ snapshots:
'@sxzz/popperjs-es@2.11.7': {} '@sxzz/popperjs-es@2.11.7': {}
'@tinymce/tinymce-vue@5.1.1(vue@3.4.27(typescript@4.9.5))':
dependencies:
tinymce: 5.10.3
vue: 3.4.27(typescript@4.9.5)
'@tsconfig/node10@1.0.11': {} '@tsconfig/node10@1.0.11': {}
'@tsconfig/node12@1.0.11': {} '@tsconfig/node12@1.0.11': {}
@ -5084,11 +5109,11 @@ snapshots:
core-js@3.37.1: {} core-js@3.37.1: {}
cosmiconfig-typescript-loader@4.4.0(@types/node@20.5.1)(cosmiconfig@8.3.6(typescript@4.9.5))(ts-node@10.9.2(@types/node@20.5.1)(typescript@4.9.5))(typescript@4.9.5): cosmiconfig-typescript-loader@4.4.0(@types/node@20.5.1)(cosmiconfig@8.3.6(typescript@4.9.5))(ts-node@10.9.2(@types/node@17.0.45)(typescript@4.9.5))(typescript@4.9.5):
dependencies: dependencies:
'@types/node': 20.5.1 '@types/node': 20.5.1
cosmiconfig: 8.3.6(typescript@4.9.5) cosmiconfig: 8.3.6(typescript@4.9.5)
ts-node: 10.9.2(@types/node@20.5.1)(typescript@4.9.5) ts-node: 10.9.2(@types/node@17.0.45)(typescript@4.9.5)
typescript: 4.9.5 typescript: 4.9.5
cosmiconfig-typescript-loader@5.0.0(@types/node@17.0.45)(cosmiconfig@9.0.0(typescript@4.9.5))(typescript@4.9.5): cosmiconfig-typescript-loader@5.0.0(@types/node@17.0.45)(cosmiconfig@9.0.0(typescript@4.9.5))(typescript@4.9.5):
@ -7231,6 +7256,8 @@ snapshots:
through@2.3.8: {} through@2.3.8: {}
tinymce@5.10.3: {}
tmp@0.0.33: tmp@0.0.33:
dependencies: dependencies:
os-tmpdir: 1.0.2 os-tmpdir: 1.0.2
@ -7428,6 +7455,8 @@ snapshots:
sass: 1.77.4 sass: 1.77.4
terser: 5.31.0 terser: 5.31.0
vue-cropper@0.5.8: {}
vue-demi@0.14.8(vue@3.4.27(typescript@4.9.5)): vue-demi@0.14.8(vue@3.4.27(typescript@4.9.5)):
dependencies: dependencies:
vue: 3.4.27(typescript@4.9.5) vue: 3.4.27(typescript@4.9.5)

View File

@ -1,5 +1,13 @@
import { FormSchema } from '@/components/Form/index'; import { FormSchema } from '@/components/Form/index';
export const schemas: FormSchema[] = [ export const schemas: FormSchema[] = [
{
field: 'username',
component: 'Input',
label: '操作用户',
componentProps: {
placeholder: '请输入操作用户',
},
},
{ {
field: 'type', field: 'type',
component: 'Select', component: 'Select',

View File

@ -1,24 +1,32 @@
import { FormSchema } from '@/components/Form/index'; import { FormSchema } from '@/components/Form/index';
export const schemas: FormSchema[] = [ export const schemas: FormSchema[] = [
{ {
field: 'type', field: 'title',
component: 'Select', component: 'Input',
label: '请求类型', label: '日志标题',
componentProps: { componentProps: {
placeholder: '请选择请求类型', placeholder: '请输入日志标题',
clearable:true,
options: [
{
label: '登录',
value: '0',
},
{
label: '退出',
value: '1',
},
],
}, },
}, },
// {
// field: 'type',
// component: 'Select',
// label: '请求类型',
// componentProps: {
// placeholder: '请选择请求类型',
// clearable:true,
// options: [
// {
// label: '登录',
// value: '0',
// },
// {
// label: '退出',
// value: '1',
// },
// ],
// },
// },
{ {
field: 'status', field: 'status',
component: 'Select', component: 'Select',