Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
a381bdb3
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
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看板
提交
a381bdb3
编写于
12月 16, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 菜单权限点重构
上级
af0b0277
变更
16
显示空白变更内容
内联
并排
Showing
16 changed file
with
128 addition
and
789 deletion
+128
-789
userauth/src/main/resources/template/js/appWorkPage/appWorkPageList.js
...main/resources/template/js/appWorkPage/appWorkPageList.js
+2
-5
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointAdd.js
...mplate/js/appWorkPageAuthPoint/appWorkPageAuthPointAdd.js
+0
-64
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointEdit.js
...plate/js/appWorkPageAuthPoint/appWorkPageAuthPointEdit.js
+0
-54
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointList.js
...plate/js/appWorkPageAuthPoint/appWorkPageAuthPointList.js
+0
-155
userauth/src/main/resources/template/js/authPoint/authPointList.js
...src/main/resources/template/js/authPoint/authPointList.js
+27
-36
userauth/src/main/resources/template/js/authPoint/authPointWrite.js
...rc/main/resources/template/js/authPoint/authPointWrite.js
+86
-0
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuList.js
...c/main/resources/template/js/sysEveMenu/sysEveMenuList.js
+1
-4
userauth/src/main/resources/template/js/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.js
...template/js/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.js
+0
-65
userauth/src/main/resources/template/js/sysEveMenuAuthPoint/sysEveMenuAuthPointEdit.js
...emplate/js/sysEveMenuAuthPoint/sysEveMenuAuthPointEdit.js
+0
-55
userauth/src/main/resources/template/tpl/appWorkPageAuthPoint/appWorkPageAuthPointAdd.html
...ate/tpl/appWorkPageAuthPoint/appWorkPageAuthPointAdd.html
+0
-92
userauth/src/main/resources/template/tpl/appWorkPageAuthPoint/appWorkPageAuthPointEdit.html
...te/tpl/appWorkPageAuthPoint/appWorkPageAuthPointEdit.html
+0
-92
userauth/src/main/resources/template/tpl/appWorkPageAuthPoint/appWorkPageAuthPointList.html
...te/tpl/appWorkPageAuthPoint/appWorkPageAuthPointList.html
+0
-61
userauth/src/main/resources/template/tpl/authPoint/authPointList.html
.../main/resources/template/tpl/authPoint/authPointList.html
+6
-8
userauth/src/main/resources/template/tpl/authPoint/authPointWrite.html
...main/resources/template/tpl/authPoint/authPointWrite.html
+4
-4
userauth/src/main/resources/template/tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.html
...plate/tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.html
+0
-92
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+2
-2
未找到文件。
userauth/src/main/resources/template/js/appWorkPage/appWorkPageList.js
浏览文件 @
a381bdb3
var
rowId
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
...
...
@@ -46,7 +44,7 @@ layui.config({
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
32
0
,
toolbar
:
'
#tableBar
'
}
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
20
0
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
...
...
@@ -134,9 +132,8 @@ layui.config({
// 权限点
function
authpoint
(
data
)
{
menuId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/appWorkPageAuthPoint/appWorkPageAuthPointList.html
"
,
url
:
'
../../tpl/authPoint/authPointList.html?objectId=
'
+
data
.
id
+
'
&objectKey=
'
+
data
.
serviceClassName
,
title
:
"
权限点
"
,
pageId
:
"
appWorkPageAuthPointList
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
...
...
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointAdd.js
已删除
100644 → 0
浏览文件 @
af0b0277
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
// 所属父级节点类型
var
parentType
=
parent
.
parentType
;
// 所属父级节点id
var
parentId
=
parent
.
parentId
;
// 所属菜单id
var
menuId
=
parent
.
menuId
;
if
(
isNull
(
parentType
))
{
// 如果为空,则需要添加权限点
$
(
"
#showForm
"
).
html
(
$
(
"
#authPointTemplate
"
).
html
());
}
else
if
(
parentType
==
1
)
{
// 如果为1,则需要添加数据权限分组
$
(
"
#showForm
"
).
html
(
$
(
"
#groupTemplate
"
).
html
());
}
else
if
(
parentType
==
2
)
{
// 如果为2,写需要添加数据权限
$
(
"
#showForm
"
).
html
(
$
(
"
#dataAuthPointTemplate
"
).
html
());
}
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
title
:
$
(
"
#authMenuName
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
menuId
:
menuId
,
parentId
:
parentId
};
if
(
isNull
(
parentType
))
{
// 如果为空,则需要添加权限点
params
.
type
=
1
;
}
else
if
(
parentType
==
1
)
{
// 如果为1,则需要添加数据权限分组
params
.
type
=
2
;
}
else
if
(
parentType
==
2
)
{
// 如果为2,写需要添加数据权限
params
.
type
=
3
;
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeAppWorkPageAuthPointMation
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointEdit.js
已删除
100644 → 0
浏览文件 @
af0b0277
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
appworkpageauthpoint003
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
var
type
=
json
.
bean
.
type
;
if
(
type
==
1
)
{
// 如果为1,则需要编辑权限点
$
(
"
#showForm
"
).
html
(
$
(
"
#authPointTemplate
"
).
html
());
}
else
if
(
type
==
2
)
{
// 如果为2,则需要编辑数据权限分组
$
(
"
#showForm
"
).
html
(
$
(
"
#groupTemplate
"
).
html
());
}
else
if
(
type
==
3
)
{
// 如果为3,写需要编辑数据权限
$
(
"
#showForm
"
).
html
(
$
(
"
#dataAuthPointTemplate
"
).
html
());
}
$
(
"
#authMenuName
"
).
val
(
json
.
bean
.
authMenuName
);
$
(
"
#authMenu
"
).
val
(
json
.
bean
.
authMenu
);
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
title
:
$
(
"
#authMenuName
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
menuId
:
parent
.
menuId
,
parentId
:
json
.
bean
.
parentId
,
type
:
type
,
id
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeAppWorkPageAuthPointMation
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
}});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointList.js
已删除
100644 → 0
浏览文件 @
af0b0277
var
menuId
=
''
;
var
rowId
=
""
;
var
parentId
=
""
;
var
parentType
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
tableTreeDj
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
form
=
layui
.
form
,
tableTree
=
layui
.
tableTreeDj
;
authBtn
(
'
1563605451628
'
);
menuId
=
parent
.
menuId
;
tableTree
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
reqBasePath
+
'
appworkpageauthpoint001
'
,
where
:
getTableParams
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
authMenuName
'
,
title
:
'
权限点名称
'
,
width
:
120
},
{
field
:
'
authMenu
'
,
title
:
'
接口url
'
,
width
:
200
},
{
field
:
'
menuNum
'
,
title
:
'
权限点编号
'
,
align
:
'
center
'
,
width
:
120
},
{
field
:
'
useNum
'
,
title
:
'
使用数量
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
typeName
'
,
title
:
'
类型
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
}
},
{
keyId
:
'
id
'
,
keyPid
:
'
parentId
'
,
title
:
'
authMenuName
'
,
});
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
del
'
)
{
//删除
del
(
data
,
obj
);
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
addChild
'
)
{
// 新增分组/新增数据权限
addPage
(
data
);
}
});
// 删除
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
appworkpageauthpoint005
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
}
// 编辑权限点
function
edit
(
data
)
{
rowId
=
data
.
id
;
var
title
=
''
;
if
(
data
.
type
==
1
)
{
title
=
'
编辑权限点
'
;
}
else
if
(
data
.
type
==
2
)
{
title
=
'
编辑分组
'
;
}
else
if
(
data
.
type
==
3
)
{
title
=
'
编辑数据权限
'
;
}
_openNewWindows
({
url
:
"
../../tpl/appWorkPageAuthPoint/appWorkPageAuthPointEdit.html
"
,
title
:
title
,
pageId
:
"
appWorkPageAuthPointEdit
"
,
area
:
[
'
500px
'
,
'
300px
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 新增权限点
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
addPage
(
null
);
});
function
addPage
(
data
)
{
var
title
=
'
新增权限点
'
;
parentId
=
"
0
"
;
parentType
=
""
;
if
(
!
isNull
(
data
))
{
parentId
=
data
.
id
;
parentType
=
data
.
type
;
if
(
parentType
==
1
)
{
// 如果是权限点,则新增分组
title
=
'
新增分组
'
;
}
else
if
(
parentType
==
2
)
{
// 如果是分组,则新增数据权限
title
=
'
新增数据权限
'
;
}
}
_openNewWindows
({
url
:
"
../../tpl/appWorkPageAuthPoint/appWorkPageAuthPointAdd.html
"
,
title
:
title
,
pageId
:
"
appWorkPageAuthPointAdd
"
,
area
:
[
'
500px
'
,
'
300px
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
}
return
false
;
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
tableTree
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
authMenuName
:
$
(
"
#authMenuName
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
menuNum
:
$
(
"
#menuNum
"
).
val
(),
menuId
:
menuId
};
}
exports
(
'
appWorkPageAuthPointList
'
,
{});
});
userauth/src/main/resources/template/js/
sysEveMenuAuthPoint/sysEveMenuA
uthPointList.js
→
userauth/src/main/resources/template/js/
authPoint/a
uthPointList.js
浏览文件 @
a381bdb3
var
menuId
=
''
;
var
objectKey
=
""
;
var
objectId
=
""
;
var
rowId
=
""
;
...
...
@@ -17,19 +18,23 @@ layui.config({
form
=
layui
.
form
,
tableTree
=
layui
.
tableTreeDj
;
authBtn
(
'
1552958039634
'
);
menuId
=
parent
.
menuId
;
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
tableTree
.
render
({
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
url
:
reqBasePath
+
'
sysevemenuauthpoint001
'
,
url
:
reqBasePath
+
'
queryAuthPointList
'
,
where
:
getTableParams
(),
limit
:
10000
,
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
name
'
,
title
:
'
权限点名称
'
,
width
:
1
50
},
{
field
:
'
name
'
,
title
:
'
权限点名称
'
,
width
:
2
50
},
{
field
:
'
authMenu
'
,
title
:
'
接口url
'
,
width
:
300
},
{
field
:
'
orderBy
'
,
title
:
'
排序
'
,
align
:
'
center
'
,
width
:
80
},
{
field
:
'
menuNum
'
,
title
:
'
权限点编号
'
,
align
:
'
center
'
,
width
:
120
},
...
...
@@ -52,6 +57,7 @@ layui.config({
keyId
:
'
id
'
,
keyPid
:
'
parentId
'
,
title
:
'
name
'
,
defaultShow
:
true
});
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
...
...
@@ -70,7 +76,7 @@ layui.config({
function
del
(
data
,
obj
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevemenuauthpoint005
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
DELETE
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
deleteAuthPointById
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
DELETE
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
...
...
@@ -79,19 +85,14 @@ layui.config({
// 编辑权限点
function
edit
(
data
)
{
rowId
=
data
.
id
;
var
title
=
''
;
if
(
data
.
type
==
1
)
{
title
=
'
编辑权限点
'
;
}
else
if
(
data
.
type
==
2
)
{
title
=
'
编辑分组
'
;
}
else
if
(
data
.
type
==
3
)
{
title
=
'
编辑数据权限
'
;
var
url
=
'
../../tpl/authPoint/authPointWrite.html?objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
;
if
(
!
isNull
(
data
))
{
url
+=
'
&parentType=
'
+
data
.
type
+
'
&id=
'
+
data
.
id
}
_openNewWindows
({
url
:
"
../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointEdit.html
"
,
title
:
title
,
pageId
:
"
sysEveMenuA
uthPointEdit
"
,
url
:
url
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
]
,
pageId
:
"
a
uthPointEdit
"
,
area
:
[
'
500px
'
,
'
300px
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
...
...
@@ -105,24 +106,14 @@ layui.config({
});
function
addPage
(
data
)
{
var
title
=
'
新增权限点
'
;
parentId
=
"
0
"
;
parentType
=
""
;
var
url
=
'
../../tpl/authPoint/authPointWrite.html?objectId=
'
+
objectId
+
'
&objectKey=
'
+
objectKey
;
if
(
!
isNull
(
data
))
{
parentId
=
data
.
id
;
parentType
=
data
.
type
;
if
(
parentType
==
1
)
{
// 如果是权限点,则新增分组
title
=
'
新增分组
'
;
}
else
if
(
parentType
==
2
)
{
// 如果是分组,则新增数据权限
title
=
'
新增数据权限
'
;
}
url
+=
'
&parentType=
'
+
data
.
type
+
'
&parentId=
'
+
data
.
id
}
_openNewWindows
({
url
:
"
../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.html
"
,
title
:
title
,
pageId
:
"
sysEveMenuA
uthPointAdd
"
,
url
:
url
,
title
:
systemLanguage
[
"
com.skyeye.addPageTitle
"
][
languageType
]
,
pageId
:
"
a
uthPointAdd
"
,
area
:
[
'
500px
'
,
'
300px
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
...
...
@@ -140,8 +131,8 @@ layui.config({
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{
object
Id
:
menu
Id
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
return
$
.
extend
(
true
,
{
object
Key
:
objectKey
,
objectId
:
object
Id
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
sysEveMenuA
uthPointList
'
,
{});
exports
(
'
a
uthPointList
'
,
{});
});
userauth/src/main/resources/template/js/authPoint/authPointWrite.js
0 → 100644
浏览文件 @
a381bdb3
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
var
objectKey
=
GetUrlParam
(
"
objectKey
"
);
var
objectId
=
GetUrlParam
(
"
objectId
"
);
var
parentId
=
GetUrlParam
(
"
parentId
"
);
var
parentType
=
GetUrlParam
(
"
parentType
"
);
var
id
=
GetUrlParam
(
"
id
"
);
var
type
=
null
;
if
(
!
isNull
(
id
))
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryAuthPointById
"
,
params
:
{
id
:
id
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
type
=
json
.
bean
.
type
;
parentId
=
json
.
bean
.
parentId
;
if
(
type
==
1
)
{
// 如果为1,则需要编辑权限点
$
(
"
#showForm
"
).
html
(
$
(
"
#authPointTemplate
"
).
html
());
}
else
if
(
type
==
2
)
{
// 如果为2,则需要编辑数据权限分组
$
(
"
#showForm
"
).
html
(
$
(
"
#groupTemplate
"
).
html
());
}
else
if
(
type
==
3
)
{
// 如果为3,写需要编辑数据权限
$
(
"
#showForm
"
).
html
(
$
(
"
#dataAuthPointTemplate
"
).
html
());
$
(
"
#orderBy
"
).
val
(
json
.
bean
.
orderBy
);
}
$
(
"
#name
"
).
val
(
json
.
bean
.
name
);
$
(
"
#authMenu
"
).
val
(
json
.
bean
.
authMenu
);
matchingLanguage
();
form
.
render
();
}});
}
else
{
if
(
isNull
(
parentType
))
{
// 如果为空,则需要添加权限点
parentId
=
"
0
"
;
type
=
1
;
$
(
"
#showForm
"
).
html
(
$
(
"
#authPointTemplate
"
).
html
());
}
else
if
(
parentType
==
1
)
{
// 如果为1,则需要添加数据权限分组
type
=
2
;
$
(
"
#showForm
"
).
html
(
$
(
"
#groupTemplate
"
).
html
());
}
else
if
(
parentType
==
2
)
{
// 如果为2,写需要添加数据权限
type
=
3
;
$
(
"
#showForm
"
).
html
(
$
(
"
#dataAuthPointTemplate
"
).
html
());
}
matchingLanguage
();
form
.
render
();
}
form
.
on
(
'
submit(formWriteBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
name
:
$
(
"
#name
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
parentId
:
parentId
,
objectId
:
objectId
,
objectKey
:
objectKey
,
orderBy
:
null
,
type
:
type
,
id
:
isNull
(
id
)
?
''
:
id
};
if
(
params
.
type
==
3
)
{
params
.
orderBy
=
$
(
"
#orderBy
"
).
val
()
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeAuthPoint
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
userauth/src/main/resources/template/js/sysEveMenu/sysEveMenuList.js
浏览文件 @
a381bdb3
var
rowId
=
""
;
var
menuId
=
''
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
...
...
@@ -176,9 +174,8 @@ layui.config({
// 权限点
function
authpoint
(
data
)
{
menuId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointList.html
"
,
url
:
'
../../tpl/authPoint/authPointList.html?objectId=
'
+
data
.
id
+
'
&objectKey=
'
+
data
.
serviceClassName
,
title
:
systemLanguage
[
"
com.skyeye.authorityPointPage
"
][
languageType
],
pageId
:
"
sysEveMenuAuthPointList
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
...
...
userauth/src/main/resources/template/js/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.js
已删除
100644 → 0
浏览文件 @
af0b0277
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
// 所属父级节点类型
var
parentType
=
parent
.
parentType
;
// 所属父级节点id
var
parentId
=
parent
.
parentId
;
// 所属菜单id
var
menuId
=
parent
.
menuId
;
if
(
isNull
(
parentType
))
{
// 如果为空,则需要添加权限点
$
(
"
#showForm
"
).
html
(
$
(
"
#authPointTemplate
"
).
html
());
}
else
if
(
parentType
==
1
)
{
// 如果为1,则需要添加数据权限分组
$
(
"
#showForm
"
).
html
(
$
(
"
#groupTemplate
"
).
html
());
}
else
if
(
parentType
==
2
)
{
// 如果为2,写需要添加数据权限
$
(
"
#showForm
"
).
html
(
$
(
"
#dataAuthPointTemplate
"
).
html
());
}
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
name
:
$
(
"
#name
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
objectId
:
menuId
,
parentId
:
parentId
};
if
(
isNull
(
parentType
))
{
// 如果为空,则需要添加权限点
params
.
type
=
1
;
}
else
if
(
parentType
==
1
)
{
// 如果为1,则需要添加数据权限分组
params
.
type
=
2
;
}
else
if
(
parentType
==
2
)
{
// 如果为2,写需要添加数据权限
params
.
type
=
3
;
}
params
[
"
orderBy
"
]
=
params
.
type
==
3
?
$
(
"
#orderBy
"
).
val
()
:
null
;
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeSysEveMenuAuthPointMation
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
userauth/src/main/resources/template/js/sysEveMenuAuthPoint/sysEveMenuAuthPointEdit.js
已删除
100644 → 0
浏览文件 @
af0b0277
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
;
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
sysevemenuauthpoint003
"
,
params
:
{
id
:
parent
.
rowId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
var
type
=
json
.
bean
.
type
;
if
(
type
==
1
)
{
// 如果为1,则需要编辑权限点
$
(
"
#showForm
"
).
html
(
$
(
"
#authPointTemplate
"
).
html
());
}
else
if
(
type
==
2
)
{
// 如果为2,则需要编辑数据权限分组
$
(
"
#showForm
"
).
html
(
$
(
"
#groupTemplate
"
).
html
());
}
else
if
(
type
==
3
)
{
// 如果为3,写需要编辑数据权限
$
(
"
#showForm
"
).
html
(
$
(
"
#dataAuthPointTemplate
"
).
html
());
$
(
"
#orderBy
"
).
val
(
json
.
bean
.
orderBy
);
}
$
(
"
#name
"
).
val
(
json
.
bean
.
name
);
$
(
"
#authMenu
"
).
val
(
json
.
bean
.
authMenu
);
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
name
:
$
(
"
#name
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
objectId
:
parent
.
menuId
,
parentId
:
json
.
bean
.
parentId
,
orderBy
:
type
==
3
?
$
(
"
#orderBy
"
).
val
()
:
null
,
type
:
type
,
id
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeSysEveMenuAuthPointMation
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
}});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
userauth/src/main/resources/template/tpl/appWorkPageAuthPoint/appWorkPageAuthPointAdd.html
已删除
100644 → 0
浏览文件 @
af0b0277
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto; padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<!-- 新增权限点 -->
<script
type=
"text/x-handlebars-template"
id=
"authPointTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
权限点名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenuName
"
name
=
"
authMenuName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入权限点名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
接口url
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入接口url
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formAddBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<!-- 新增分组 -->
<script
type=
"text/x-handlebars-template"
id=
"groupTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenuName
"
name
=
"
authMenuName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
分组名称
。
例如
:
类型
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
标识
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入标识
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
分组标识
,
切记不可重复
,
重复则按同一组计算
。
例如
:
state
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formAddBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<!-- 新增数据权限 -->
<script
type=
"text/x-handlebars-template"
id=
"dataAuthPointTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenuName
"
name
=
"
authMenuName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
数据权限名称
。
例如
:
我创建的
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
表达式
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入表达式
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
数据权限表达式
。
例如
:
type
==
myCreate
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formAddBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/appWorkPageAuthPoint/
'
}).
use
(
'
appWorkPageAuthPointAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/appWorkPageAuthPoint/appWorkPageAuthPointEdit.html
已删除
100644 → 0
浏览文件 @
af0b0277
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto; padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<!-- 新增权限点 -->
<script
type=
"text/x-handlebars-template"
id=
"authPointTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
权限点名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenuName
"
name
=
"
authMenuName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入权限点名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
接口url
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入接口url
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formEditBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<!-- 新增分组 -->
<script
type=
"text/x-handlebars-template"
id=
"groupTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenuName
"
name
=
"
authMenuName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
分组名称
。
例如
:
类型
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
标识
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入标识
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
分组标识
,
切记不可重复
,
重复则按同一组计算
。
例如
:
state
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formEditBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<!-- 新增数据权限 -->
<script
type=
"text/x-handlebars-template"
id=
"dataAuthPointTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenuName
"
name
=
"
authMenuName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
数据权限名称
。
例如
:
我创建的
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
表达式
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入表达式
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
数据权限表达式
。
例如
:
type
==
myCreate
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formEditBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/appWorkPageAuthPoint/
'
}).
use
(
'
appWorkPageAuthPointEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/appWorkPageAuthPoint/appWorkPageAuthPointList.html
已删除
100644 → 0
浏览文件 @
af0b0277
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding:10px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
权限点名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"authMenuName"
name=
"authMenuName"
placeholder=
"请输入权限点名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
接口url
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"authMenu"
name=
"authMenu"
placeholder=
"请输入接口url"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
权限点编号
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"menuNum"
name=
"menuNum"
placeholder=
"请输入权限点编号"
class=
"layui-input"
/>
</div>
<button
type=
"reset"
class=
"layui-btn layui-btn-primary list-form-search"
><language
showName=
"com.skyeye.reset"
></language></button>
<button
class=
"layui-btn list-form-search"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1563605451628"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i>
新增权限点
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1552958039634
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1552958039634
'
)
&&
d
.
type
==
1
){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
addChild
"
>
新增分组
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1552958039634
'
)
&&
d
.
type
==
2
){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
addChild
"
>
新增数据权限
<
/a
>
{{
#
}
}}
{{
#
if
(
d
.
useNum
==
0
&&
auth
(
'
1563605489864
'
)
&&
d
.
childNum
==
0
){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/appWorkPageAuthPoint/
'
}).
use
(
'
appWorkPageAuthPointList
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/
sysEveMenuAuthPoint/sysEveMenuA
uthPointList.html
→
userauth/src/main/resources/template/tpl/
authPoint/a
uthPointList.html
浏览文件 @
a381bdb3
...
...
@@ -10,22 +10,20 @@
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1552958039634"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"1552958039634"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language>
权限点
</button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1552958039634
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1552958039634
'
)
&&
d
.
type
==
1
){
}}
{{
#
if
(
d
.
type
==
1
)
{
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
addChild
"
>
新增分组
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1552958039634
'
)
&&
d
.
type
==
2
)
{
}}
{{
#
if
(
d
.
type
==
2
)
{
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
addChild
"
>
新增数据权限
<
/a
>
{{
#
}
}}
{{
#
if
(
d
.
useNum
==
0
&&
auth
(
'
1552958005402
'
)
&&
d
.
childNum
==
0
){
}}
{{
#
if
(
d
.
useNum
==
0
&&
d
.
childNum
==
0
){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
...
...
@@ -33,7 +31,7 @@
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/
sysEveMenuAuthPoint/
'
}).
use
(
'
sysEveMenuA
uthPointList
'
);
layui
.
config
({
base
:
'
../../js/
authPoint/
'
}).
use
(
'
a
uthPointList
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/
sysEveMenuAuthPoint/sysEveMenuAuthPointEdit
.html
→
userauth/src/main/resources/template/tpl/
authPoint/authPointWrite
.html
浏览文件 @
a381bdb3
...
...
@@ -30,7 +30,7 @@
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
form
Edit
Bean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
form
Write
Bean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
...
...
@@ -54,7 +54,7 @@
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
form
Edit
Bean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
form
Write
Bean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
...
...
@@ -85,7 +85,7 @@
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
form
Edit
Bean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
form
Write
Bean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
...
...
@@ -93,7 +93,7 @@
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/
sysEveMenuAuthPoint/
'
}).
use
(
'
sysEveMenuAuthPointEdit
'
);
layui
.
config
({
base
:
'
../../js/
authPoint/
'
}).
use
(
'
authPointWrite
'
);
</script>
</body>
</html>
\ No newline at end of file
userauth/src/main/resources/template/tpl/sysEveMenuAuthPoint/sysEveMenuAuthPointAdd.html
已删除
100644 → 0
浏览文件 @
af0b0277
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"margin:0 auto; padding:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<!-- 新增权限点 -->
<script
type=
"text/x-handlebars-template"
id=
"authPointTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
权限点名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
name
"
name
=
"
name
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入权限点名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
接口url
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入接口url
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formAddBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<!-- 新增分组 -->
<script
type=
"text/x-handlebars-template"
id=
"groupTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
name
"
name
=
"
name
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
分组名称
。
例如
:
类型
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
标识
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入标识
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
分组标识
,
切记不可重复
,
重复则按同一组计算
。
例如
:
state
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formAddBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<!-- 新增数据权限 -->
<script
type=
"text/x-handlebars-template"
id=
"dataAuthPointTemplate"
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
name
"
name
=
"
name
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
maxlength
=
"
50
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
数据权限名称
。
例如
:
我创建的
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
label
class
=
"
layui-form-label
"
>
表达式
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
authMenu
"
name
=
"
authMenu
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入表达式
"
class
=
"
layui-input
"
maxlength
=
"
100
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
数据权限表达式
。
例如
:
type
==
myCreate
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
"
>
<
div
class
=
"
layui-input-block
"
>
<
button
class
=
"
winui-btn
"
id
=
"
cancle
"
><
language
showName
=
"
com.skyeye.cancel
"
><
/language></
button
>
<
button
class
=
"
winui-btn
"
lay
-
submit
lay
-
filter
=
"
formAddBean
"
><
language
showName
=
"
com.skyeye.save
"
><
/language></
button
>
<
/div
>
<
/div
>
</script>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/sysEveMenuAuthPoint/
'
}).
use
(
'
sysEveMenuAuthPointAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
a381bdb3
...
...
@@ -16,8 +16,8 @@
"registrationType"
:
{
"name"
:
"户口类型"
,
"className"
:
"skyeye-pro#com.skyeye.common.enumeration.RegistrationType"
},
"applicableObjectsType"
:
{
"name"
:
"适用对象类型"
,
"className"
:
"skyeye-pro#com.skyeye.common.enumeration.ApplicableObjectsType"
},
"menuType"
:
{
"name"
:
"APP菜单类型"
,
"className"
:
"skyeye-pro#com.skyeye.menu
app
.classenum.MenuType"
},
"urlType"
:
{
"name"
:
"APP菜单URL类型"
,
"className"
:
"skyeye-pro#com.skyeye.menu
app
.classenum.UrlType"
},
"menuType"
:
{
"name"
:
"APP菜单类型"
,
"className"
:
"skyeye-pro#com.skyeye.menu.classenum.MenuType"
},
"urlType"
:
{
"name"
:
"APP菜单URL类型"
,
"className"
:
"skyeye-pro#com.skyeye.menu.classenum.UrlType"
},
"bossInterviewArrangementState"
:
{
"name"
:
"面试安排状态"
,
"className"
:
"skyeye-boss#com.skyeye.arrangement.classenum.ArrangementState"
},
"bossInterviewArrangementState1"
:
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录