Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
b34ab52c
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1175
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b34ab52c
编写于
7月 24, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【角色管理】绑定权限修改
上级
2a290973
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
65 addition
and
84 deletion
+65
-84
userauth/src/main/resources/template/js/syseverole/sysEveRolePCMenu.js
...main/resources/template/js/syseverole/sysEveRolePCMenu.js
+50
-71
web/src/main/resources/template/assets/lib/layui/css/tree-table.css
...in/resources/template/assets/lib/layui/css/tree-table.css
+1
-1
web/src/main/resources/template/assets/lib/winui/css/customer/skyeye-custom.css
.../template/assets/lib/winui/css/customer/skyeye-custom.css
+14
-12
未找到文件。
userauth/src/main/resources/template/js/syseverole/sysEveRolePCMenu.js
浏览文件 @
b34ab52c
...
@@ -40,22 +40,16 @@ layui.config({
...
@@ -40,22 +40,16 @@ layui.config({
});
});
/********* tree 处理 start *************/
/********* tree 处理 start *************/
var
trees
=
{};
var
tree
;
var
treeDoms
=
$
(
"
ul.fsTree
"
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sys016
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sys016
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
$
(
"
#roleName
"
).
text
(
json
.
bean
.
roleName
);
$
(
"
#roleName
"
).
text
(
json
.
bean
.
roleName
);
$
(
"
#roleDesc
"
).
text
(
json
.
bean
.
roleDesc
);
$
(
"
#roleDesc
"
).
text
(
json
.
bean
.
roleDesc
);
checkeRows
=
json
.
rows
;
checkeRows
=
json
.
rows
;
if
(
treeDoms
.
length
>
0
)
{
$
(
treeDoms
).
each
(
function
(
i
)
{
tree
=
fsTree
.
render
({
var
treeId
=
$
(
this
).
attr
(
"
id
"
);
id
:
"
treeDemo
"
,
var
funcNo
=
$
(
this
).
attr
(
"
funcNo
"
);
url
:
reqBasePath
+
"
sys014
"
,
var
url
=
$
(
this
).
attr
(
"
url
"
);
var
tree
=
fsTree
.
render
({
id
:
treeId
,
funcNo
:
funcNo
,
url
:
reqBasePath
+
url
,
getTree
:
getTree
,
getTree
:
getTree
,
checkEnable
:
true
,
checkEnable
:
true
,
loadEnable
:
false
,
loadEnable
:
false
,
...
@@ -63,7 +57,7 @@ layui.config({
...
@@ -63,7 +57,7 @@ layui.config({
showIcon
:
false
,
showIcon
:
false
,
addDiyDom
:
addDiyDom
,
addDiyDom
:
addDiyDom
,
fontCss
:
setFontCss
fontCss
:
setFontCss
},
function
(
id
)
{
},
function
(
id
)
{
var
zTreeObj
=
$
.
fn
.
zTree
.
getZTreeObj
(
id
);
var
zTreeObj
=
$
.
fn
.
zTree
.
getZTreeObj
(
id
);
var
zTree
=
zTreeObj
.
getCheckedNodes
(
false
);
var
zTree
=
zTreeObj
.
getCheckedNodes
(
false
);
for
(
var
i
=
0
;
i
<
zTree
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
zTree
.
length
;
i
++
)
{
...
@@ -73,25 +67,21 @@ layui.config({
...
@@ -73,25 +67,21 @@ layui.config({
}
}
}
}
}
}
var
li_head
=
'
<li class="head"><a><div class="diy">所属系统</div><div class="diy">菜单权限</div><div class="diy">菜单类型</div></a></li>
'
;
var
li_head
=
'
<li class="head"><a>
'
+
var
rows
=
$
(
"
#
"
+
treeId
).
find
(
'
li
'
);
'
<div class="diy" style="width: 40%">菜单权限</div>
'
+
'
<div class="diy">所属系统</div>
'
+
'
<div class="diy">菜单类型</div>
'
+
'
</a></li>
'
;
var
rows
=
$
(
"
#treeDemo
"
).
find
(
'
li
'
);
if
(
rows
.
length
>
0
)
{
if
(
rows
.
length
>
0
)
{
rows
.
eq
(
0
).
before
(
li_head
)
rows
.
eq
(
0
).
before
(
li_head
);
}
else
{
}
else
{
$
(
"
#
"
+
treeId
).
append
(
li_head
);
$
(
"
#
"
+
treeId
).
append
(
li_head
);
$
(
"
#
"
+
treeId
).
append
(
'
<li ><div style="text-align: center;line-height: 30px;" >无符合条件数据</div></li>
'
)
$
(
"
#
"
+
treeId
).
append
(
'
<li ><div style="text-align: center;line-height: 30px;" >无符合条件数据</div></li>
'
)
}
}
});
});
if
(
treeDoms
.
length
==
1
)
{
// 绑定按钮事件
trees
[
treeId
]
=
tree
;
}
else
{
//深度拷贝对象
trees
[
treeId
]
=
$
.
extend
(
true
,
{},
tree
);
}
});
//绑定按钮事件
fsCommon
.
buttonEvent
(
"
tree
"
,
getTree
);
fsCommon
.
buttonEvent
(
"
tree
"
,
getTree
);
}
}});
}});
function
getTree
(
treeId
)
{
function
getTree
(
treeId
)
{
...
@@ -111,51 +101,40 @@ layui.config({
...
@@ -111,51 +101,40 @@ layui.config({
* 自定义DOM节点
* 自定义DOM节点
*/
*/
function
addDiyDom
(
treeId
,
treeNode
)
{
function
addDiyDom
(
treeId
,
treeNode
)
{
var
spaceWidth
=
15
;
var
liObj
=
$
(
"
#
"
+
treeNode
.
tId
);
var
aObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_a
"
);
var
aObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_a
"
);
var
switchObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_switch
"
);
var
switchObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_switch
"
);
var
icoObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_ico
"
);
var
icoObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_ico
"
);
var
spanObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_span
"
);
var
spanObj
=
$
(
"
#
"
+
treeNode
.
tId
+
"
_span
"
);
aObj
.
attr
(
'
title
'
,
''
);
aObj
.
attr
(
'
title
'
,
''
);
aObj
.
append
(
'
<div class="diy swich"></div>
'
);
aObj
.
append
(
'
<div class="diy swich" style="width: 40%"></div>
'
);
var
div
=
$
(
liObj
).
find
(
'
div
'
).
eq
(
0
);
switchObj
.
remove
();
switchObj
.
remove
();
spanObj
.
remove
();
spanObj
.
remove
();
icoObj
.
remove
();
icoObj
.
remove
();
var
div
=
$
(
"
#
"
+
treeNode
.
tId
).
find
(
'
.swich
'
).
eq
(
0
);
div
.
append
(
switchObj
);
div
.
append
(
switchObj
);
div
.
append
(
spanObj
);
div
.
append
(
spanObj
);
var
spaceStr
=
"
<span style='height:1px;display: inline-block;width:
"
+
(
spaceWidth
*
treeNode
.
level
)
+
"
px'></span>
"
;
switchObj
.
before
(
spaceStr
);
var
editStr
=
''
;
editStr
=
'
<div class="diy">
'
+
(
treeNode
.
sysName
==
null
?
'
'
:
treeNode
.
sysName
)
+
'
</div>
'
;
aObj
.
before
(
editStr
);
editStr
=
'
<div class="diy">
'
+
(
treeNode
.
appType
==
null
?
'
'
:
treeNode
.
appType
)
+
'
</div>
'
;
aObj
.
append
(
editStr
);
editStr
=
'
<div class="diy layui-hide">
'
+
(
treeNode
.
type
==
null
?
'
'
:
treeNode
.
type
)
+
'
</div>
'
;
aObj
.
append
(
editStr
);
}
switchObj
.
before
(
"
<span style='height:1px; display: inline-block; width:
"
+
(
15
*
treeNode
.
level
)
+
"
px'></span>
"
);
// 所属系统
aObj
.
append
(
'
<div class="diy">
'
+
treeNode
.
sysName
+
'
</div>
'
);
// 菜单类型
aObj
.
append
(
'
<div class="diy">
'
+
treeNode
.
pageType
+
'
</div>
'
);
}
var
lastValue
=
""
,
nodeList
=
[],
fontCss
=
{},
hiddenNodes
=
[];
var
lastValue
=
""
,
nodeList
=
[],
hiddenNodes
=
[];
$
(
"
#menuName
"
).
val
(
''
);
$
(
"
#menuName
"
).
val
(
''
);
var
key
=
$
(
"
#menuName
"
);
var
key
=
$
(
"
#menuName
"
);
key
.
bind
(
"
focus
"
,
focusKey
)
key
.
bind
(
"
focus
"
,
function
(
e
)
{
.
bind
(
"
blur
"
,
blurKey
)
.
bind
(
"
propertychange
"
,
searchNode
)
//property(属性)change(改变)的时候,触发事件
.
bind
(
"
input
"
,
searchNode
);
function
focusKey
(
e
)
{
if
(
key
.
hasClass
(
"
empty
"
))
{
if
(
key
.
hasClass
(
"
empty
"
))
{
key
.
removeClass
(
"
empty
"
);
key
.
removeClass
(
"
empty
"
);
}
}
}
}).
bind
(
"
blur
"
,
function
(
e
)
{
function
blurKey
(
e
)
{
if
(
key
.
get
(
0
).
value
===
""
)
{
if
(
key
.
get
(
0
).
value
===
""
)
{
key
.
addClass
(
"
empty
"
);
key
.
addClass
(
"
empty
"
);
}
}
}
}).
bind
(
"
propertychange
"
,
searchNode
)
//property(属性)change(改变)的时候,触发事件
.
bind
(
"
input
"
,
searchNode
);
//搜索树
//搜索树
function
searchNode
(
e
)
{
function
searchNode
(
e
)
{
...
@@ -247,7 +226,7 @@ layui.config({
...
@@ -247,7 +226,7 @@ layui.config({
}
}
function
setFontCss
(
treeId
,
treeNode
)
{
function
setFontCss
(
treeId
,
treeNode
)
{
return
(
!!
treeNode
.
highlight
)
?
{
color
:
"
#00ff66
"
,
"
font-weight
"
:
"
bold
"
}
:
{
color
:
"
#333
"
,
"
font-weight
"
:
"
normal
"
};
return
(
!!
treeNode
.
highlight
)
?
{
color
:
"
#00ff66
"
,
"
font-weight
"
:
"
bold
"
}
:
{
color
:
"
#333
"
,
"
font-weight
"
:
"
normal
"
};
}
}
// 取消
// 取消
...
...
web/src/main/resources/template/assets/lib/layui/css/tree-table.css
浏览文件 @
b34ab52c
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
.ztree
li
>
span
{
.ztree
li
>
span
{
display
:
block
!important
;
display
:
block
!important
;
position
:
absolute
;
position
:
absolute
;
margin-left
:
6
0.5%
!important
;
margin-left
:
8
0.5%
!important
;
margin-top
:
10px
!important
;
margin-top
:
10px
!important
;
}
}
...
...
web/src/main/resources/template/assets/lib/winui/css/customer/skyeye-custom.css
浏览文件 @
b34ab52c
/*标识类的样式*/
/*标识类的样式*/
.skyeye-badge
{
.skyeye-badge
{
margin-bottom
:
5px
;
margin-bottom
:
5px
;
color
:
#46799b
!important
;
color
:
#46799b
!important
;
background-color
:
#e0eaf1
!important
;
background-color
:
#e0eaf1
!important
;
}
}
/*图片预览时底部操作按钮所在DOM的样式*/
/*图片预览时底部操作按钮所在DOM的样式*/
.skyeye-image-operator
{
.skyeye-image-operator
{
position
:
fixed
;
position
:
fixed
;
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
cursor
:
pointer
;
cursor
:
pointer
;
bottom
:
0px
;
bottom
:
0px
;
left
:
0px
;
left
:
0px
;
background-color
:
rgba
(
190
,
190
,
190
,
0.3
);
background-color
:
rgba
(
190
,
190
,
190
,
0.3
);
box-shadow
:
0
0
10px
rgb
(
0
0
0
/
20%
);
box-shadow
:
0
0
10px
rgb
(
0
0
0
/
20%
);
}
}
/*提示信息*/
/*提示信息*/
.winui-tip
{
.winui-tip
{
border-radius
:
3px
;
border-radius
:
3px
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.07
);
border
:
1px
solid
rgba
(
0
,
0
,
0
,
.07
);
padding
:
5px
5px
;
padding
:
5px
5px
;
font-size
:
13px
;
font-size
:
13px
;
position
:
relative
;
position
:
relative
;
...
@@ -29,36 +28,39 @@
...
@@ -29,36 +28,39 @@
text-align
:
left
;
text-align
:
left
;
}
}
.alert-info
{
.alert-info
{
color
:
#2f73c8
;
color
:
#2f73c8
;
background-color
:
#d9e7f9
;
background-color
:
#d9e7f9
;
}
}
.alert-warning
{
.alert-warning
{
color
:
#94780a
;
color
:
#94780a
;
background-color
:
#f9e69b
;
background-color
:
#f9e69b
;
}
}
.alert-danger
{
.alert-danger
{
color
:
#d83945
;
color
:
#d83945
;
background-color
:
#fbdbde
;
background-color
:
#fbdbde
;
}
}
.alert-success
{
.alert-success
{
color
:
#155724
;
color
:
#155724
;
background-color
:
#d4edda
;
background-color
:
#d4edda
;
}
}
.alert-primary
{
.alert-primary
{
color
:
#3f037a
;
color
:
#3f037a
;
background
:
#d8bff2
;
background
:
#d8bff2
;
}
}
.alert-secondary
{
.alert-secondary
{
color
:
#383d41
;
color
:
#383d41
;
background-color
:
#e2e3e5
;
background-color
:
#e2e3e5
;
}
}
.layui-table-fixed
.layui-table-body
{
height
:
auto
!important
;
}
/***************************竖向选项卡开始********************************/
/***************************竖向选项卡开始********************************/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录