Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fenghuo12
zheng
提交
0a29102c
Z
zheng
项目概览
fenghuo12
/
zheng
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zheng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0a29102c
编写于
2月 26, 2017
作者:
shuzheng5201314
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加新增权限表单
上级
b458716a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
143 addition
and
13 deletion
+143
-13
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/permission/create.jsp
.../src/main/webapp/WEB-INF/jsp/manage/permission/create.jsp
+139
-0
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/permission/index.jsp
...r/src/main/webapp/WEB-INF/jsp/manage/permission/index.jsp
+4
-13
未找到文件。
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/permission/create.jsp
0 → 100644
浏览文件 @
0a29102c
<%@ page
contentType=
"text/html; charset=utf-8"
%>
<%@ taglib
uri=
"http://java.sun.com/jstl/core_rt"
prefix=
"c"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/fmt"
prefix=
"fmt"
%>
<%@ taglib
uri=
"http://java.sun.com/jsp/jstl/functions"
prefix=
"fn"
%>
<%@ taglib
uri=
"http://www.springframework.org/tags"
prefix=
"spring"
%>
<%@ taglib
uri=
"http://www.springframework.org/tags/form"
prefix=
"form"
%>
<%@taglib
prefix=
"shiro"
uri=
"http://shiro.apache.org/tags"
%>
<c:set
var=
"basePath"
value=
"
${
pageContext
.
request
.
contextPath
}
"
/>
<div
id=
"createDialog"
class=
"crudDialog"
>
<form
id=
"createForm"
method=
"post"
>
<div
class=
"radio"
>
<div
class=
"radio radio-inline radio-success"
>
<input
id=
"type_1"
type=
"radio"
name=
"type"
value=
"1"
checked
>
<label
for=
"type_1"
>
目录
</label>
</div>
<div
class=
"radio radio-inline radio-info"
>
<input
id=
"type_2"
type=
"radio"
name=
"type"
value=
"0"
>
<label
for=
"type_2"
>
菜单
</label>
</div>
<div
class=
"radio radio-inline radio-warning"
>
<input
id=
"type_3"
type=
"radio"
name=
"type"
value=
"0"
>
<label
for=
"type_3"
>
按钮
</label>
</div>
</div>
<div
class=
"form-group"
>
<select
id=
"systemId"
name=
"systemId"
>
<option
value=
"0"
>
请选择所属系统
</option>
<c:forEach
var=
"upmsSystem"
items=
"
${
upmsSystems
}
"
>
<option
value=
"${upmsSystem.systemId}"
>
${upmsSystem.title}
</option>
</c:forEach>
</select>
<select
id=
"pid"
name=
"pid"
>
<option
value=
"0"
>
请选择所属上级
</option>
</select>
</div>
<div
class=
"form-group"
>
<label
for=
"name"
>
名称
</label>
<input
id=
"name"
type=
"text"
class=
"form-control"
name=
"name"
maxlength=
"20"
>
</div>
<div
class=
"form-group"
>
<label
for=
"permissionValue"
>
权限值
</label>
<input
id=
"permissionValue"
type=
"text"
class=
"form-control"
name=
"permissionValue"
maxlength=
"50"
>
</div>
<div
class=
"form-group"
>
<label
for=
"uri"
>
路径
</label>
<input
id=
"uri"
type=
"text"
class=
"form-control"
name=
"uri"
maxlength=
"100"
>
</div>
<div
class=
"form-group"
>
<label
for=
"icon"
>
图标
</label>
<input
id=
"icon"
type=
"text"
class=
"form-control"
name=
"icon"
maxlength=
"50"
>
</div>
<div
class=
"radio"
>
<div
class=
"radio radio-inline radio-success"
>
<input
id=
"status_1"
type=
"radio"
name=
"status"
value=
"1"
checked
>
<label
for=
"status_1"
>
正常
</label>
</div>
<div
class=
"radio radio-inline"
>
<input
id=
"status_0"
type=
"radio"
name=
"status"
value=
"0"
>
<label
for=
"status_0"
>
锁定
</label>
</div>
</div>
<div
class=
"form-group text-right dialog-buttons"
>
<a
class=
"waves-effect waves-button"
href=
"javascript:;"
onclick=
"createSubmit();"
>
保存
</a>
<a
class=
"waves-effect waves-button"
href=
"javascript:;"
onclick=
"createDialog.close();"
>
取消
</a>
</div>
</form>
</div>
<script>
function
createSubmit
()
{
$
.
ajax
({
type
:
'
post
'
,
url
:
'
${basePath}/manage/user/create
'
,
data
:
$
(
'
#createForm
'
).
serialize
(),
beforeSend
:
function
()
{
if
(
$
(
'
#username
'
).
val
()
==
''
)
{
$
(
'
#username
'
).
focus
();
return
false
;
}
if
(
$
(
'
#password
'
).
val
()
==
''
||
$
(
'
#password
'
).
val
().
length
<
5
)
{
$
(
'
#password
'
).
focus
();
return
false
;
}
},
success
:
function
(
result
)
{
if
(
result
.
code
!=
1
)
{
if
(
result
.
data
instanceof
Array
)
{
$
.
each
(
result
.
data
,
function
(
index
,
value
)
{
$
.
confirm
({
theme
:
'
dark
'
,
animation
:
'
rotateX
'
,
closeAnimation
:
'
rotateX
'
,
title
:
false
,
content
:
value
.
errorMsg
,
buttons
:
{
confirm
:
{
text
:
'
确认
'
,
btnClass
:
'
waves-effect waves-button waves-light
'
}
}
});
});
}
else
{
$
.
confirm
({
theme
:
'
dark
'
,
animation
:
'
rotateX
'
,
closeAnimation
:
'
rotateX
'
,
title
:
false
,
content
:
result
.
data
.
errorMsg
,
buttons
:
{
confirm
:
{
text
:
'
确认
'
,
btnClass
:
'
waves-effect waves-button waves-light
'
}
}
});
}
}
else
{
createDialog
.
close
();
$table
.
bootstrapTable
(
'
refresh
'
);
}
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
$
.
confirm
({
theme
:
'
dark
'
,
animation
:
'
rotateX
'
,
closeAnimation
:
'
rotateX
'
,
title
:
false
,
content
:
textStatus
,
buttons
:
{
confirm
:
{
text
:
'
确认
'
,
btnClass
:
'
waves-effect waves-button waves-light
'
}
}
});
}
});
}
</script>
\ No newline at end of file
zheng-upms/zheng-upms-server/src/main/webapp/WEB-INF/jsp/manage/permission/index.jsp
浏览文件 @
0a29102c
...
...
@@ -13,12 +13,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
权限管理
</title>
<link
href=
"${basePath}/resources/zheng-ui/plugins/bootstrap-3.3.0/css/bootstrap.min.css"
rel=
"stylesheet"
/>
<link
href=
"${basePath}/resources/zheng-ui/plugins/material-design-iconic-font-2.2.0/css/material-design-iconic-font.min.css"
rel=
"stylesheet"
/>
<link
href=
"${basePath}/resources/zheng-ui/plugins/bootstrap-table-1.11.0/bootstrap-table.min.css"
rel=
"stylesheet"
/>
<link
href=
"${basePath}/resources/zheng-ui/plugins/waves-0.7.5/waves.min.css"
rel=
"stylesheet"
/>
<link
href=
"${basePath}/resources/zheng-ui/plugins/jquery-confirm/jquery-confirm.min.css"
rel=
"stylesheet"
/>
<link
href=
"${basePath}/resources/zheng-ui/css/common.css"
rel=
"stylesheet"
/>
<jsp:include
page=
"/resources/inc/head.jsp"
flush=
"true"
/>
</head>
<body>
<div
id=
"main"
>
...
...
@@ -29,13 +24,7 @@
</div>
<table
id=
"table"
></table>
</div>
<script
src=
"${basePath}/resources/zheng-ui/plugins/jquery.1.12.4.min.js"
></script>
<script
src=
"${basePath}/resources/zheng-ui/plugins/bootstrap-3.3.0/js/bootstrap.min.js"
></script>
<script
src=
"${basePath}/resources/zheng-ui/plugins/bootstrap-table-1.11.0/bootstrap-table.min.js"
></script>
<script
src=
"${basePath}/resources/zheng-ui/plugins/bootstrap-table-1.11.0/locale/bootstrap-table-zh-CN.min.js"
></script>
<script
src=
"${basePath}/resources/zheng-ui/plugins/waves-0.7.5/waves.min.js"
></script>
<script
src=
"${basePath}/resources/zheng-ui/plugins/jquery-confirm/jquery-confirm.min.js"
></script>
<script
src=
"${basePath}/resources/zheng-ui/js/common.js"
></script>
<jsp:include
page=
"/resources/inc/footer.jsp"
flush=
"true"
/>
<script>
var
$table
=
$
(
'
#table
'
);
$
(
function
()
{
...
...
@@ -117,6 +106,7 @@ function createAction() {
content
:
'
url:${basePath}/manage/permission/create
'
,
onContentReady
:
function
()
{
initMaterialInput
();
$
(
'
select
'
).
select2
();
}
});
}
...
...
@@ -144,6 +134,7 @@ function updateAction() {
content
:
'
url:${basePath}/manage/permission/update/
'
+
rows
[
0
].
permissionId
,
onContentReady
:
function
()
{
initMaterialInput
();
$
(
'
select
'
).
select2
();
}
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录