Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FLIPPED-AURORA
gin-vue-admin
提交
4b63baf4
G
gin-vue-admin
项目概览
FLIPPED-AURORA
/
gin-vue-admin
大约 1 年 前同步成功
通知
345
Star
18155
Fork
5506
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gin-vue-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4b63baf4
编写于
7月 02, 2020
作者:
Mr.奇淼(
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
屏蔽七牛云相关配置
上级
535d8dd9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
249 addition
and
9 deletion
+249
-9
server/db/qmplus.sql
server/db/qmplus.sql
+61
-9
web/src/api/sysOperationRecord.js
web/src/api/sysOperationRecord.js
+0
-0
web/src/view/superAdmin/operation/sysOperationRecord.vue
web/src/view/superAdmin/operation/sysOperationRecord.vue
+188
-0
未找到文件。
server/db/qmplus.sql
浏览文件 @
4b63baf4
...
...
@@ -11,7 +11,7 @@
Target Server Version : 50640
File Encoding : 65001
Date:
28/06/2020 21:23:47
Date:
02/07/2020 14:59:22
*/
SET
NAMES
utf8mb4
;
...
...
@@ -167,6 +167,11 @@ INSERT INTO `casbin_rule` VALUES ('p', '888', '/sysDictionary/deleteSysDictionar
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysDictionary/updateSysDictionary'
,
'PUT'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysDictionary/findSysDictionary'
,
'GET'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysDictionary/getSysDictionaryList'
,
'GET'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysOperationRecord/createSysOperationRecord'
,
'POST'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysOperationRecord/deleteSysOperationRecord'
,
'DELETE'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysOperationRecord/updateSysOperationRecord'
,
'PUT'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysOperationRecord/findSysOperationRecord'
,
'GET'
,
''
,
''
,
''
);
INSERT
INTO
`casbin_rule`
VALUES
(
'p'
,
'888'
,
'/sysOperationRecord/getSysOperationRecordList'
,
'GET'
,
''
,
''
,
''
);
-- ----------------------------
-- Table structure for exa_customers
...
...
@@ -177,21 +182,18 @@ CREATE TABLE `exa_customers` (
`created_at`
timestamp
(
0
)
NULL
DEFAULT
NULL
,
`updated_at`
timestamp
(
0
)
NULL
DEFAULT
NULL
,
`deleted_at`
timestamp
(
0
)
NULL
DEFAULT
NULL
,
`customer_name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`customer_name`
varchar
(
255
)
CHARACTER
SET
utf8
mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
,
`customer_phone_data`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
`sys_user_id`
int
(
10
)
UNSIGNED
NULL
DEFAULT
NULL
,
`sys_user_authority_id`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
INDEX
`idx_exa_customers_deleted_at`
(
`deleted_at`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
6
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_bin
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Records of exa_customers
-- ----------------------------
INSERT
INTO
`exa_customers`
VALUES
(
1
,
'2020-02-25 18:01:48'
,
'2020-04-10 12:29:29'
,
NULL
,
'测试客户'
,
'1761111111'
,
10
,
'888'
);
INSERT
INTO
`exa_customers`
VALUES
(
2
,
'2020-04-10 12:25:53'
,
'2020-04-10 12:25:53'
,
'2020-04-10 13:43:56'
,
'test'
,
'123123123'
,
10
,
'888'
);
INSERT
INTO
`exa_customers`
VALUES
(
3
,
'2020-04-10 13:44:12'
,
'2020-04-10 13:44:12'
,
'2020-04-10 13:44:13'
,
'123123'
,
'123123'
,
10
,
'888'
);
INSERT
INTO
`exa_customers`
VALUES
(
4
,
'2020-04-10 13:47:10'
,
'2020-04-10 13:47:10'
,
'2020-04-10 13:47:12'
,
'22222222'
,
'222222222222222'
,
10
,
'888'
);
-- ----------------------------
-- Table structure for exa_file_chunks
...
...
@@ -340,7 +342,7 @@ CREATE TABLE `sys_apis` (
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
INDEX
`idx_apis_deleted_at`
(
`deleted_at`
)
USING
BTREE
,
INDEX
`idx_sys_apis_deleted_at`
(
`deleted_at`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
1
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
9
6
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Records of sys_apis
...
...
@@ -415,6 +417,11 @@ INSERT INTO `sys_apis` VALUES (87, '2020-06-23 18:48:13', '2020-06-23 18:48:13',
INSERT
INTO
`sys_apis`
VALUES
(
88
,
'2020-06-23 18:48:13'
,
'2020-06-23 18:48:13'
,
NULL
,
NULL
,
'/sysDictionary/updateSysDictionary'
,
'更新字典'
,
'sysDictionary'
,
'PUT'
);
INSERT
INTO
`sys_apis`
VALUES
(
89
,
'2020-06-23 18:48:13'
,
'2020-06-23 18:48:13'
,
NULL
,
NULL
,
'/sysDictionary/findSysDictionary'
,
'根据ID获取字典'
,
'sysDictionary'
,
'GET'
);
INSERT
INTO
`sys_apis`
VALUES
(
90
,
'2020-06-23 18:48:13'
,
'2020-06-23 18:48:13'
,
NULL
,
NULL
,
'/sysDictionary/getSysDictionaryList'
,
'获取字典列表'
,
'sysDictionary'
,
'GET'
);
INSERT
INTO
`sys_apis`
VALUES
(
91
,
'2020-06-29 13:21:35'
,
'2020-06-29 13:21:35'
,
NULL
,
NULL
,
'/sysOperationRecord/createSysOperationRecord'
,
'新增操作记录'
,
'sysOperationRecord'
,
'POST'
);
INSERT
INTO
`sys_apis`
VALUES
(
92
,
'2020-06-29 13:21:35'
,
'2020-06-29 13:21:35'
,
NULL
,
NULL
,
'/sysOperationRecord/deleteSysOperationRecord'
,
'删除操作记录'
,
'sysOperationRecord'
,
'DELETE'
);
INSERT
INTO
`sys_apis`
VALUES
(
93
,
'2020-06-29 13:21:35'
,
'2020-06-29 13:21:35'
,
NULL
,
NULL
,
'/sysOperationRecord/updateSysOperationRecord'
,
'更新操作记录'
,
'sysOperationRecord'
,
'PUT'
);
INSERT
INTO
`sys_apis`
VALUES
(
94
,
'2020-06-29 13:21:35'
,
'2020-06-29 13:21:35'
,
NULL
,
NULL
,
'/sysOperationRecord/findSysOperationRecord'
,
'根据ID获取操作记录'
,
'sysOperationRecord'
,
'GET'
);
INSERT
INTO
`sys_apis`
VALUES
(
95
,
'2020-06-29 13:21:35'
,
'2020-06-29 13:21:35'
,
NULL
,
NULL
,
'/sysOperationRecord/getSysOperationRecordList'
,
'获取操作记录列表'
,
'sysOperationRecord'
,
'GET'
);
-- ----------------------------
-- Table structure for sys_authorities
...
...
@@ -475,6 +482,7 @@ INSERT INTO `sys_authority_menus` VALUES ('888', 41);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'888'
,
42
);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'888'
,
50
);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'888'
,
51
);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'888'
,
52
);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'8881'
,
1
);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'8881'
,
2
);
INSERT
INTO
`sys_authority_menus`
VALUES
(
'8881'
,
18
);
...
...
@@ -527,7 +535,7 @@ CREATE TABLE `sys_base_menus` (
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
INDEX
`idx_base_menus_deleted_at`
(
`deleted_at`
)
USING
BTREE
,
INDEX
`idx_sys_base_menus_deleted_at`
(
`deleted_at`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
2
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
5
3
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Records of sys_base_menus
...
...
@@ -555,6 +563,7 @@ INSERT INTO `sys_base_menus` VALUES (42, '2020-04-02 14:19:36', '2020-04-24 10:1
INSERT
INTO
`sys_base_menus`
VALUES
(
45
,
'2020-04-29 17:19:34'
,
'2020-04-30 17:44:44'
,
NULL
,
0
,
0
,
'iconList'
,
'iconList'
,
0
,
'view/iconList/index.vue'
,
'图标集合'
,
'star-on'
,
NULL
,
2
,
0
,
0
);
INSERT
INTO
`sys_base_menus`
VALUES
(
50
,
'2020-06-24 19:49:54'
,
'2020-06-28 20:34:47'
,
NULL
,
0
,
3
,
'dictionary'
,
'dictionary'
,
0
,
'view/superAdmin/dictionary/sysDictionary.vue'
,
'字典管理'
,
'notebook-2'
,
NULL
,
5
,
0
,
0
);
INSERT
INTO
`sys_base_menus`
VALUES
(
51
,
'2020-06-24 19:51:33'
,
'2020-06-28 20:35:04'
,
NULL
,
0
,
3
,
'dictionaryDetail/:id'
,
'dictionaryDetail'
,
1
,
'view/superAdmin/dictionary/sysDictionaryDetail.vue'
,
'字典详情'
,
's-order'
,
NULL
,
1
,
0
,
0
);
INSERT
INTO
`sys_base_menus`
VALUES
(
52
,
'2020-06-29 13:31:17'
,
'2020-07-02 14:31:40'
,
NULL
,
0
,
3
,
'operation'
,
'operation'
,
0
,
'view/superAdmin/operation/sysOperationRecord.vue'
,
'操作历史'
,
'time'
,
NULL
,
6
,
1
,
0
);
-- ----------------------------
-- Table structure for sys_data_authority_id
...
...
@@ -598,7 +607,7 @@ CREATE TABLE `sys_dictionaries` (
`desc`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'描述'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
INDEX
`idx_sys_dictionaries_deleted_at`
(
`deleted_at`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
3
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Records of sys_dictionaries
...
...
@@ -629,6 +638,49 @@ CREATE TABLE `sys_dictionary_details` (
INSERT
INTO
`sys_dictionary_details`
VALUES
(
9
,
'2020-06-24 20:44:11'
,
'2020-06-24 20:44:11'
,
'2020-06-28 21:23:18'
,
'男'
,
1
,
1
,
0
,
2
);
INSERT
INTO
`sys_dictionary_details`
VALUES
(
10
,
'2020-06-24 20:44:20'
,
'2020-06-24 20:52:30'
,
'2020-06-28 21:23:18'
,
'女'
,
0
,
1
,
1
,
2
);
-- ----------------------------
-- Table structure for sys_operation_records
-- ----------------------------
DROP
TABLE
IF
EXISTS
`sys_operation_records`
;
CREATE
TABLE
`sys_operation_records`
(
`id`
int
(
10
)
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`created_at`
datetime
(
0
)
NULL
DEFAULT
NULL
,
`updated_at`
datetime
(
0
)
NULL
DEFAULT
NULL
,
`deleted_at`
datetime
(
0
)
NULL
DEFAULT
NULL
,
`ip`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
COMMENT
'请求ip'
,
`method`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
,
`path`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
,
`status`
int
(
11
)
NULL
DEFAULT
NULL
,
`latency`
bigint
(
20
)
NULL
DEFAULT
NULL
,
`agent`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
,
`error_message`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
,
`body`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_bin
NULL
DEFAULT
NULL
COMMENT
'请求Body'
,
`user_id`
int
(
11
)
NULL
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
INDEX
`idx_sys_operation_records_deleted_at`
(
`deleted_at`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
18
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_bin
ROW_FORMAT
=
Compact
;
-- ----------------------------
-- Records of sys_operation_records
-- ----------------------------
INSERT
INTO
`sys_operation_records`
VALUES
(
1
,
'2020-07-02 14:26:18'
,
'2020-07-02 14:26:18'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
15621200
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
2
,
'2020-07-02 14:26:18'
,
'2020-07-02 14:26:18'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/authority/getAuthorityList'
,
200
,
13668800
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
'{
\"
page
\"
:1,
\"
pageSize
\"
:999}'
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
3
,
'2020-07-02 14:30:20'
,
'2020-07-02 14:30:20'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
19526100
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
4
,
'2020-07-02 14:31:18'
,
'2020-07-02 14:31:18'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
21476700
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
5
,
'2020-07-02 14:31:20'
,
'2020-07-02 14:31:20'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
15621000
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
6
,
'2020-07-02 14:31:23'
,
'2020-07-02 14:31:23'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenuList'
,
200
,
12692200
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
'{
\"
page
\"
:1,
\"
pageSize
\"
:999}'
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
7
,
'2020-07-02 14:31:29'
,
'2020-07-02 14:31:29'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getBaseMenuById'
,
200
,
15621600
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
'{
\"
id
\"
:52}'
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
8
,
'2020-07-02 14:31:40'
,
'2020-07-02 14:31:40'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenuList'
,
200
,
10743400
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
'{
\"
page
\"
:1,
\"
pageSize
\"
:999}'
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
9
,
'2020-07-02 14:31:43'
,
'2020-07-02 14:31:43'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
14646100
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
10
,
'2020-07-02 14:31:43'
,
'2020-07-02 14:31:43'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenuList'
,
200
,
14645000
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
'{
\"
page
\"
:1,
\"
pageSize
\"
:999}'
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
11
,
'2020-07-02 14:33:41'
,
'2020-07-02 14:33:41'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
19525200
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
12
,
'2020-07-02 14:33:41'
,
'2020-07-02 14:33:41'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
28313500
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
13
,
'2020-07-02 14:34:40'
,
'2020-07-02 14:34:40'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
14646300
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
14
,
'2020-07-02 14:34:41'
,
'2020-07-02 14:34:41'
,
NULL
,
'127.0.0.1'
,
'GET'
,
'/sysDictionary/getSysDictionaryList?page=1&pageSize=10'
,
200
,
11715200
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
15
,
'2020-07-02 14:51:13'
,
'2020-07-02 14:51:13'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
26360200
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
16
,
'2020-07-02 14:51:57'
,
'2020-07-02 14:51:57'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
18549000
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
INSERT
INTO
`sys_operation_records`
VALUES
(
17
,
'2020-07-02 14:52:31'
,
'2020-07-02 14:52:31'
,
NULL
,
'127.0.0.1'
,
'POST'
,
'/menu/getMenu'
,
200
,
14646500
,
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
,
''
,
''
,
0
);
-- ----------------------------
-- Table structure for sys_users
-- ----------------------------
...
...
web/src/api/sys
_operation_r
ecord.js
→
web/src/api/sys
OperationR
ecord.js
浏览文件 @
4b63baf4
文件已移动
web/src/view/superAdmin/operation/sys
_operation_r
ecord.vue
→
web/src/view/superAdmin/operation/sys
OperationR
ecord.vue
浏览文件 @
4b63baf4
<
template
>
<div>
<div
class=
"search-term"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<el-form
:inline=
"true"
:model=
"searchInfo"
class=
"demo-form-inline"
>
<el-form-item
label=
"请求方法"
>
<el-input
placeholder=
"搜索条件"
v-model=
"searchInfo.method"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"请求路径"
>
<el-input
placeholder=
"搜索条件"
v-model=
"searchInfo.path"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结果状态码"
>
<el-input
placeholder=
"搜索条件"
v-model=
"searchInfo.status"
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"onSubmit"
type=
"primary"
>
查询
</el-button>
</el-form-item>
<el-form-item>
<el-button
@
click=
"o
penDialog"
type=
"primary"
>
新增操作记录
</el-button>
<el-button
@
click=
"o
nSubmit"
type=
"primary"
>
查询
</el-button>
</el-form-item>
</el-form>
</div>
...
...
@@ -27,30 +24,57 @@
style=
"width: 100%"
tooltip-effect=
"dark"
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
label=
"日期"
width=
"180"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreatedAt
|
formatDate
}}
</
template
>
</el-table-column>
<el-table-column
label=
"请求ip"
prop=
"ip"
width=
"120"
></el-table-column>
<el-table-column
label=
"请求方法"
prop=
"method"
width=
"120"
></el-table-column>
<el-table-column
label=
"请求路径"
prop=
"path"
width=
"120"
></el-table-column>
<el-table-column
label=
"结果状态码"
prop=
"status"
width=
"120"
></el-table-column>
<el-table-column
label=
"latency"
prop=
"latency"
width=
"120"
></el-table-column>
<el-table-column
label=
"agent"
prop=
"agent"
width=
"120"
></el-table-column>
<el-table-column
label=
"error_message"
prop=
"error_message"
width=
"120"
></el-table-column>
<el-table-column
label=
"user_id"
prop=
"user_id"
width=
"120"
></el-table-column>
<el-table-column
type=
"expand"
>
<template
slot-scope=
"props"
>
<el-form
label-position=
"left"
class=
"table-expand"
>
<el-form-item
label=
"请求ip"
>
<span>
{{
props
.
row
.
ip
}}
</span>
</el-form-item>
<el-form-item
label=
"请求日期"
>
<span>
{{
props
.
row
.
CreatedAt
|
formatDate
}}
</span>
</el-form-item>
<el-form-item
label=
"请求方法"
>
<span>
{{
props
.
row
.
method
}}
</span>
</el-form-item>
<el-form-item
label=
"请求路径"
>
<span>
{{
props
.
row
.
path
}}
</span>
</el-form-item>
<el-form-item
label=
"结果状态码"
>
<span>
{{
props
.
row
.
status
}}
</span>
</el-form-item>
<el-form-item
label=
"latency"
>
<span>
{{
props
.
row
.
latency
}}
</span>
</el-form-item>
<el-form-item
label=
"agent"
>
<span>
{{
props
.
row
.
agent
}}
</span>
</el-form-item>
<el-form-item
label=
"error_message"
>
<span>
{{
props
.
row
.
error_message
}}
</span>
</el-form-item>
<el-form-item
label=
"user_id"
>
<span>
{{
props
.
row
.
user_id
}}
</span>
</el-form-item>
</el-form>
</
template
>
</el-table-column>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
label=
"日期"
width=
"180"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreatedAt
|
formatDate
}}
</
template
>
</el-table-column>
<el-table-column
label=
"请求ip"
prop=
"ip"
width=
"120"
></el-table-column>
<el-table-column
label=
"请求方法"
prop=
"method"
width=
"120"
></el-table-column>
<el-table-column
label=
"请求路径"
prop=
"path"
width=
"240"
></el-table-column>
<el-table-column
label=
"error_message"
prop=
"error_message"
width=
"120"
></el-table-column>
<el-table-column
label=
"user_id"
prop=
"user_id"
width=
"120"
></el-table-column>
<el-table-column
label=
"按钮组"
>
<
template
slot-scope=
"scope"
>
<el-button
@
click=
"updateSysOperationRecord(scope.row)"
size=
"small"
type=
"primary"
>
变更
</el-button>
<el-popover
placement=
"top"
width=
"160"
v-model=
"scope.row.visible"
>
<p>
确定要删除吗?
</p>
<div
style=
"text-align: right; margin: 0"
>
...
...
@@ -73,25 +97,14 @@
@
size-change=
"handleSizeChange"
layout=
"total, sizes, prev, pager, next, jumper"
></el-pagination>
<el-dialog
:before-close=
"closeDialog"
:visible.sync=
"dialogFormVisible"
title=
"弹窗操作"
>
此处请使用表单生成器生成form填充 表单默认绑定 formData 如手动修改过请自行修改key
<div
class=
"dialog-footer"
slot=
"footer"
>
<el-button
@
click=
"closeDialog"
>
取 消
</el-button>
<el-button
@
click=
"enterDialog"
type=
"primary"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
{
createSysOperationRecord
,
deleteSysOperationRecord
,
updateSysOperationRecord
,
findSysOperationRecord
,
getSysOperationRecordList
}
from
"
@/api/sys_operation_record
"
;
// 此处请自行替换地址
deleteSysOperationRecord
,
getSysOperationRecordList
}
from
"
@/api/sysOperationRecord
"
;
// 此处请自行替换地址
import
{
formatTimeToStr
}
from
"
@/utils/data
"
;
import
infoList
from
"
@/components/mixins/infoList
"
;
...
...
@@ -105,7 +118,14 @@ export default {
visible
:
false
,
type
:
""
,
formData
:
{
ip
:
null
,
method
:
null
,
path
:
null
,
status
:
null
,
latency
:
null
,
agent
:
null
,
error_message
:
null
,
user_id
:
null
,
ip
:
null
,
method
:
null
,
path
:
null
,
status
:
null
,
latency
:
null
,
agent
:
null
,
error_message
:
null
,
user_id
:
null
}
};
},
...
...
@@ -120,40 +140,18 @@ export default {
},
formatBoolean
:
function
(
bool
)
{
if
(
bool
!=
null
)
{
return
bool
?
"
是
"
:
"
否
"
;
return
bool
?
"
是
"
:
"
否
"
;
}
else
{
return
""
;
}
}
},
methods
:
{
//条件搜索前端看此方法
onSubmit
()
{
this
.
page
=
1
this
.
pageSize
=
10
this
.
getTableData
()
},
async
updateSysOperationRecord
(
row
)
{
const
res
=
await
findSysOperationRecord
({
ID
:
row
.
ID
});
this
.
type
=
"
update
"
;
if
(
res
.
code
==
0
)
{
this
.
formData
=
res
.
data
.
resysOperationRecord
;
this
.
dialogFormVisible
=
true
;
}
},
closeDialog
()
{
this
.
dialogFormVisible
=
false
;
this
.
formData
=
{
ip
:
null
,
method
:
null
,
path
:
null
,
status
:
null
,
latency
:
null
,
agent
:
null
,
error_message
:
null
,
user_id
:
null
,
};
//条件搜索前端看此方法
onSubmit
()
{
this
.
page
=
1
;
this
.
pageSize
=
10
;
this
.
getTableData
();
},
async
deleteSysOperationRecord
(
row
)
{
this
.
visible
=
false
;
...
...
@@ -165,32 +163,6 @@ export default {
});
this
.
getTableData
();
}
},
async
enterDialog
()
{
let
res
;
switch
(
this
.
type
)
{
case
"
create
"
:
res
=
await
createSysOperationRecord
(
this
.
formData
);
break
;
case
"
update
"
:
res
=
await
updateSysOperationRecord
(
this
.
formData
);
break
;
default
:
res
=
await
createSysOperationRecord
(
this
.
formData
);
break
;
}
if
(
res
.
code
==
0
)
{
this
.
$message
({
type
:
"
success
"
,
message
:
"
创建/更改成功
"
})
this
.
closeDialog
();
this
.
getTableData
();
}
},
openDialog
()
{
this
.
type
=
"
create
"
;
this
.
dialogFormVisible
=
true
;
}
},
created
()
{
...
...
@@ -199,5 +171,18 @@ export default {
};
</
script
>
<
style
>
<
style
lang=
"scss"
>
.table-expand
{
padding-left
:
60px
;
font-size
:
0
;
label
{
width
:
90px
;
color
:
#99a9bf
;
.el-form-item
{
margin-right
:
0
;
margin-bottom
:
0
;
width
:
50%
;
}
}
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录