Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lakernote
EasyAdmin
提交
eb4f28ae
E
EasyAdmin
项目概览
lakernote
/
EasyAdmin
8 个月 前同步成功
通知
14
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
EasyAdmin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
eb4f28ae
编写于
9月 01, 2021
作者:
lakernote
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
(bugfix)[整体](行为日志修改显示异常的判断)
上级
0d74da55
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
23 addition
and
84 deletion
+23
-84
src/main/java/com/laker/admin/framework/aop/MetricsAspect.java
...ain/java/com/laker/admin/framework/aop/MetricsAspect.java
+1
-4
src/main/java/com/laker/admin/module/sys/controller/SysUserController.java
.../laker/admin/module/sys/controller/SysUserController.java
+9
-0
web/admin/component/pear/module/easyAdmin.js
web/admin/component/pear/module/easyAdmin.js
+2
-3
web/admin/view/ext/log.html
web/admin/view/ext/log.html
+2
-4
web/admin/view/flow/orderList.html
web/admin/view/flow/orderList.html
+1
-15
web/admin/view/system/deptment.html
web/admin/view/system/deptment.html
+1
-1
web/admin/view/system/power.html
web/admin/view/system/power.html
+1
-50
web/admin/view/system/task.html
web/admin/view/system/task.html
+1
-3
web/admin/view/system/user.html
web/admin/view/system/user.html
+5
-4
未找到文件。
src/main/java/com/laker/admin/framework/aop/MetricsAspect.java
浏览文件 @
eb4f28ae
...
...
@@ -3,8 +3,6 @@ package com.laker.admin.framework.aop;
import
cn.dev33.satoken.stp.StpUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.http.useragent.UserAgent
;
import
cn.hutool.json.JSON
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.laker.admin.module.ext.entity.ExtLog
;
...
...
@@ -83,8 +81,7 @@ public class MetricsAspect {
if
(
StrUtil
.
isNotBlank
(
response
)
&&
response
.
length
()
<=
500
)
{
logBean
.
setResponse
(
response
);
}
JSON
json
=
JSONUtil
.
parse
(
response
);
if
(
json
instanceof
JSONObject
)
{
if
(
JSONUtil
.
isJsonObj
(
response
))
{
Boolean
success
=
JSONUtil
.
parseObj
(
response
).
getBool
(
"success"
,
true
);
logBean
.
setStatus
(
success
);
}
...
...
src/main/java/com/laker/admin/module/sys/controller/SysUserController.java
浏览文件 @
eb4f28ae
...
...
@@ -2,6 +2,7 @@ package com.laker.admin.module.sys.controller;
import
cn.dev33.satoken.annotation.SaCheckPermission
;
import
cn.dev33.satoken.stp.StpUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.crypto.SecureUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -169,4 +170,12 @@ public class SysUserController {
return
Response
.
ok
(
allRole
);
}
@DeleteMapping
(
"/batch/{ids}"
)
@ApiOperation
(
value
=
"根据批量删除ids删除"
)
@SaCheckPermission
(
"dict.delete"
)
public
Response
batchRemove
(
@PathVariable
Long
[]
ids
)
{
return
Response
.
ok
(
sysUserService
.
removeByIds
(
CollUtil
.
toList
(
ids
)));
}
}
\ No newline at end of file
web/admin/component/pear/module/easyAdmin.js
浏览文件 @
eb4f28ae
...
...
@@ -216,8 +216,7 @@ layui.define(['jquery', 'element', 'form', 'table', 'yaml', 'common'], function
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
100px
'
,
'
65px
'
],
content
:
"
删除失败
"
area
:
[
'
260px
'
,
'
65px
'
]
});
}
}
...
...
@@ -313,7 +312,7 @@ layui.define(['jquery', 'element', 'form', 'table', 'yaml', 'common'], function
}
else
{
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
area
:
[
'
10
0px
'
,
'
65px
'
],
area
:
[
'
26
0px
'
,
'
65px
'
],
time
:
1000
});
}
...
...
web/admin/view/ext/log.html
浏览文件 @
eb4f28ae
...
...
@@ -72,9 +72,7 @@
let
easyAdmin
=
layui
.
easyAdmin
;
let
cols
=
[
[{
type
:
'
checkbox
'
},
[
{
title
:
'
用户
'
,
field
:
'
user.nickName
'
,
...
...
@@ -141,7 +139,7 @@
title
:
'
访问状态
'
,
field
:
'
status
'
,
align
:
'
center
'
,
width
:
6
0
,
width
:
8
0
,
templet
:
'
#log-bar
'
}
]
...
...
web/admin/view/flow/orderList.html
浏览文件 @
eb4f28ae
...
...
@@ -36,22 +36,10 @@
</div>
</div>
<!--<script type="text/html" id="user-toolbar">-->
<!-- <button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">-->
<!-- <i class="layui-icon layui-icon-add-1"></i>-->
<!-- 新增-->
<!-- </button>-->
<!-- <button class="pear-btn pear-btn-danger pear-btn-md" lay-event="batchRemove">-->
<!-- <i class="layui-icon layui-icon-delete"></i>-->
<!-- 删除-->
<!-- </button>-->
<!--</script>-->
<script
type=
"text/html"
id=
"user-bar"
>
<
button
class
=
"
pear-btn pear-btn-primary pear-btn-sm
"
lay
-
event
=
"
edit
"
><
i
class
=
"
layui-icon layui-icon-edit
"
><
/i
>
<
/button
>
<!--
<
button
class
=
"
pear-btn pear-btn-danger pear-btn-sm
"
lay
-
event
=
"
remove
"
><
i
class
=
"
layui-icon layui-icon-delete
"
><
/i>--
>
<!--
<
/button>--
>
</script>
...
...
@@ -77,9 +65,7 @@
let
common
=
layui
.
common
;
let
easyAdmin
=
layui
.
easyAdmin
;
let
cols
=
[
[{
type
:
'
checkbox
'
},
[
{
title
:
'
流程实例编号
'
,
field
:
'
orderNo
'
,
...
...
web/admin/view/system/deptment.html
浏览文件 @
eb4f28ae
...
...
@@ -160,7 +160,7 @@
if
(
result
.
success
)
{
layer
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
1000
,
area
:
[
'
100px
'
,
'
65px
'
]});
}
else
{
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
10
0px
'
,
'
65px
'
]});
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
26
0px
'
,
'
65px
'
]});
}
}
})
...
...
web/admin/view/system/power.html
浏览文件 @
eb4f28ae
...
...
@@ -17,10 +17,6 @@
<
i
class
=
"
layui-icon layui-icon-add-1
"
><
/i
>
新增
<
/button
>
<
button
class
=
"
pear-btn pear-btn-danger pear-btn-md
"
lay
-
event
=
"
batchRemove
"
>
<
i
class
=
"
layui-icon layui-icon-delete
"
><
/i
>
删除
<
/button
>
<
button
class
=
"
pear-btn pear-btn-success pear-btn-md
"
lay
-
event
=
"
expandAll
"
>
<
i
class
=
"
layui-icon layui-icon-spread-left
"
><
/i
>
展开
...
...
@@ -85,7 +81,6 @@
page
:
false
,
cols
:
[
[
{
type
:
'
checkbox
'
},
{
field
:
'
title
'
,
minWidth
:
200
,
title
:
'
菜单名称
'
},
{
field
:
'
icon
'
,
title
:
'
图标
'
,
templet
:
'
#icon
'
},
{
field
:
'
type
'
,
title
:
'
权限类型
'
,
templet
:
'
#power-type
'
},
...
...
@@ -138,7 +133,7 @@
if
(
result
.
success
)
{
layer
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
1000
,
area
:
[
'
100px
'
,
'
65px
'
]});
}
else
{
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
10
0px
'
,
'
65px
'
]});
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
26
0px
'
,
'
65px
'
]});
}
}
})
...
...
@@ -185,50 +180,6 @@
})
});
}
window
.
batchRemove
=
function
(
obj
)
{
let
data
=
table
.
checkStatus
(
obj
.
config
.
id
).
data
;
if
(
data
.
length
===
0
)
{
layer
.
msg
(
"
未选中数据
"
,
{
icon
:
3
,
time
:
1000
});
return
false
;
}
let
ids
=
""
;
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
ids
+=
data
[
i
].
powerId
+
"
,
"
;
}
ids
=
ids
.
substr
(
0
,
ids
.
length
-
1
);
layer
.
confirm
(
'
确定要删除这些权限
'
,
{
icon
:
3
,
title
:
'
提示
'
},
function
(
index
)
{
layer
.
close
(
index
);
let
loading
=
layer
.
load
();
$
.
ajax
({
url
:
MODULE_PATH
+
"
batchRemove/
"
+
ids
,
dataType
:
'
json
'
,
type
:
'
delete
'
,
success
:
function
(
result
)
{
layer
.
close
(
loading
);
if
(
result
.
success
)
{
layer
.
msg
(
result
.
msg
,
{
icon
:
1
,
time
:
1000
},
function
()
{
table
.
reload
(
'
user-table
'
);
});
}
else
{
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
});
}
}
})
});
}
})
</script>
</body>
...
...
web/admin/view/system/task.html
浏览文件 @
eb4f28ae
...
...
@@ -60,9 +60,7 @@
let
easyAdmin
=
layui
.
easyAdmin
;
let
table
=
layui
.
table
;
let
cols
=
[
[{
type
:
'
checkbox
'
},
[
{
title
:
'
任务的编码
'
,
field
:
'
taskCode
'
,
...
...
web/admin/view/system/user.html
浏览文件 @
eb4f28ae
...
...
@@ -239,7 +239,8 @@
if
(
result
.
success
)
{
layer
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
1000
,
area
:
[
'
100px
'
,
'
65px
'
]});
}
else
{
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
100px
'
,
'
65px
'
]});
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
260px
'
,
'
80px
'
]});
table
.
reload
(
'
user-table
'
);
}
}
})
...
...
@@ -301,8 +302,7 @@
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
time
:
1000
,
area
:
[
'
100px
'
,
'
60px
'
],
content
:
"
删除失败
"
area
:
[
'
260px
'
,
'
80px
'
]
});
}
}
...
...
@@ -329,7 +329,7 @@
layer
.
close
(
index
);
let
loading
=
layer
.
load
();
easyAdmin
.
http
({
url
:
MODULE_PATH
+
"
batchRemove/
"
+
i
ds
,
url
:
"
/sys/user/batch/
"
+
checkI
ds
,
dataType
:
'
json
'
,
type
:
'
delete
'
,
success
:
function
(
result
)
{
...
...
@@ -344,6 +344,7 @@
}
else
{
layer
.
msg
(
result
.
msg
,
{
icon
:
2
,
area
:
[
'
260px
'
,
'
80px
'
],
time
:
1000
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录