Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
00ae954e
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1433
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
00ae954e
编写于
7月 26, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
【手机端】APP菜单权限点完成
上级
640074ff
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
56 addition
and
14 deletion
+56
-14
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointAdd.js
...mplate/js/appWorkPageAuthPoint/appWorkPageAuthPointAdd.js
+36
-7
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointEdit.js
...plate/js/appWorkPageAuthPoint/appWorkPageAuthPointEdit.js
+20
-7
未找到文件。
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointAdd.js
浏览文件 @
00ae954e
...
...
@@ -9,17 +9,46 @@ layui.config({
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
=
{
authMenuName
:
$
(
"
#authMenuName
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
menuId
:
parent
.
menuId
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
appworkpageauthpoint002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
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
'
;
}});
...
...
@@ -27,7 +56,7 @@ layui.config({
return
false
;
});
//取消
//
取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
...
...
userauth/src/main/resources/template/js/appWorkPageAuthPoint/appWorkPageAuthPointEdit.js
浏览文件 @
00ae954e
...
...
@@ -10,21 +10,34 @@ layui.config({
var
$
=
layui
.
$
,
form
=
layui
.
form
;
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
appworkpageauthpoint003
"
,
params
:{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
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
=
{
authMenuNam
e
:
$
(
"
#authMenuName
"
).
val
(),
titl
e
:
$
(
"
#authMenuName
"
).
val
(),
authMenu
:
$
(
"
#authMenu
"
).
val
(),
rowId
:
parent
.
rowId
,
menuId
:
parent
.
menuId
menuId
:
parent
.
menuId
,
parentId
:
json
.
bean
.
parentId
,
type
:
type
,
id
:
parent
.
rowId
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
appworkpageauthpoint004
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeAppWorkPageAuthPointMation
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
...
...
@@ -33,7 +46,7 @@ layui.config({
});
}});
//取消
//
取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录