Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaru
fgqyxxlr
Commits
c85f36fa
Commit
c85f36fa
authored
Oct 03, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
固定按钮位置(提交/关闭)
parent
e68e13bc
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
216 additions
and
262 deletions
+216
-262
src/main/resources/static/ruoyi/css/ry-ui.css
+6
-1
src/main/resources/static/ruoyi/js/ry-ui.js
+33
-3
src/main/resources/templates/monitor/job/add.html
+6
-6
src/main/resources/templates/monitor/job/edit.html
+6
-9
src/main/resources/templates/monitor/operlog/detail.html
+0
-5
src/main/resources/templates/system/config/add.html
+7
-10
src/main/resources/templates/system/config/edit.html
+8
-11
src/main/resources/templates/system/dept/add.html
+9
-13
src/main/resources/templates/system/dept/edit.html
+9
-12
src/main/resources/templates/system/dict/data/add.html
+7
-11
src/main/resources/templates/system/dict/data/edit.html
+7
-11
src/main/resources/templates/system/dict/type/add.html
+8
-12
src/main/resources/templates/system/dict/type/edit.html
+8
-12
src/main/resources/templates/system/menu/add.html
+7
-10
src/main/resources/templates/system/menu/edit.html
+7
-10
src/main/resources/templates/system/post/add.html
+9
-12
src/main/resources/templates/system/post/edit.html
+9
-12
src/main/resources/templates/system/role/add.html
+7
-10
src/main/resources/templates/system/role/edit.html
+7
-10
src/main/resources/templates/system/role/rule.html
+5
-11
src/main/resources/templates/system/user/add.html
+7
-11
src/main/resources/templates/system/user/edit.html
+6
-7
src/main/resources/templates/system/user/profile/edit.html
+7
-10
src/main/resources/templates/system/user/profile/resetPwd.html
+7
-10
src/main/resources/templates/system/user/resetPwd.html
+6
-9
src/main/resources/templates/vm/html/add.html.vm
+6
-9
src/main/resources/templates/vm/html/edit.html.vm
+6
-9
src/main/resources/templates/vm/html/list.html.vm
+6
-6
No files found.
src/main/resources/static/ruoyi/css/ry-ui.css
View file @
c85f36fa
...
...
@@ -335,8 +335,13 @@ label {
}
}
@media
(
min-width
:
768px
)
{
.select-list
li
{
float
:
left
;
}
}
.select-list
li
{
float
:
left
;
color
:
#333
;
margin
:
5px
15px
5px
0px
;
}
...
...
src/main/resources/static/ruoyi/js/ry-ui.js
View file @
c85f36fa
...
...
@@ -304,8 +304,16 @@
shade
:
0.3
,
title
:
title
,
content
:
url
,
btn
:
[
'确定'
,
'关闭'
],
// 弹层外区域关闭
shadeClose
:
true
shadeClose
:
true
,
yes
:
function
(
index
,
layero
)
{
var
iframeWin
=
layero
.
find
(
'iframe'
)[
0
];
iframeWin
.
contentWindow
.
submitHandler
();
},
cancel
:
function
(
index
)
{
return
true
;
}
});
},
// 弹出层指定参数选项
...
...
@@ -401,8 +409,23 @@
},
// 详细信息
detail
:
function
(
id
)
{
var
url
=
$
.
common
.
isEmpty
(
id
)
?
$
.
table
.
_option
.
detailUrl
:
$
.
table
.
_option
.
detailUrl
.
replace
(
"{id}"
,
id
);
$
.
modal
.
open
(
$
.
table
.
_option
.
modalName
+
"详细"
,
url
);
var
_url
=
$
.
common
.
isEmpty
(
id
)
?
$
.
table
.
_option
.
detailUrl
:
$
.
table
.
_option
.
detailUrl
.
replace
(
"{id}"
,
id
);
layer
.
open
({
type
:
2
,
area
:
[
'800px'
,
(
$
(
window
).
height
()
-
50
)
+
'px'
],
fix
:
false
,
//不固定
maxmin
:
true
,
shade
:
0.3
,
title
:
$
.
table
.
_option
.
modalName
+
"详细"
,
content
:
_url
,
btn
:
[
'<i class="fa fa-close"></i> 关闭'
],
// 弹层外区域关闭
shadeClose
:
true
,
cancel
:
function
(
index
)
{
return
true
;
}
});
},
// 删除信息
remove
:
function
(
id
)
{
...
...
@@ -494,6 +517,13 @@
return
true
;
}
return
false
;
},
// 表单验证
form
:
function
(
id
)
{
if
(
$
.
common
.
isEmpty
(
id
))
{
return
false
;
}
return
$
(
id
).
validate
().
form
();
}
},
// 树插件封装处理
...
...
src/main/resources/templates/monitor/job/add.html
View file @
c85f36fa
...
...
@@ -58,12 +58,6 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -86,6 +80,12 @@
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-job-add'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-job-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-job-add'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/monitor/job/edit.html
View file @
c85f36fa
...
...
@@ -59,12 +59,6 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
>
[[*{remark}]]
</textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -82,11 +76,14 @@
cronExpression
:{
required
:
true
,
},
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-job-edit'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-job-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-job-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/monitor/operlog/detail.html
View file @
c85f36fa
...
...
@@ -41,11 +41,6 @@
<div
class=
"form-control-static"
th:text=
"${operLog.errorMsg}"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include :: footer"
></div>
...
...
src/main/resources/templates/system/config/add.html
View file @
c85f36fa
...
...
@@ -38,17 +38,11 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/config"
var
prefix
=
ctx
+
"system/config"
;
$
(
"#form-config-add"
).
validate
({
rules
:
{
...
...
@@ -79,11 +73,14 @@
"configKey"
:
{
remote
:
"参数键名已经存在"
}
},
submitHandler
:
function
(
form
)
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-config-add'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-config-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-config-add'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/config/edit.html
View file @
c85f36fa
...
...
@@ -39,18 +39,12 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
>
[[*{remark}]]
</textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/config"
var
prefix
=
ctx
+
"system/config"
;
$
(
"#form-config-edit"
).
validate
({
rules
:
{
configKey
:
{
...
...
@@ -83,11 +77,14 @@
"configKey"
:
{
remote
:
"参数键名已经存在"
}
},
submitHandler
:
function
(
form
)
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-config-edit'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-config-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-config-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/dept/add.html
View file @
c85f36fa
...
...
@@ -51,19 +51,12 @@
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/dept"
var
prefix
=
ctx
+
"system/dept"
;
$
(
"#form-dept-add"
).
validate
({
rules
:{
deptName
:{
...
...
@@ -100,11 +93,14 @@
"deptName"
:
{
remote
:
"部门已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-dept-add'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-dept-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-dept-add'
).
serialize
());
}
}
/*部门管理-新增-选择父部门树*/
function
selectDeptTree
()
{
...
...
src/main/resources/templates/system/dept/edit.html
View file @
c85f36fa
...
...
@@ -52,18 +52,12 @@
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/dept"
var
prefix
=
ctx
+
"system/dept"
;
$
(
"#form-dept-edit"
).
validate
({
rules
:{
deptName
:{
...
...
@@ -103,11 +97,14 @@
"deptName"
:
{
remote
:
"部门已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-dept-edit'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-dept-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-dept-edit'
).
serialize
());
}
}
/*部门管理-修改-选择部门树*/
function
selectDeptTree
()
{
...
...
src/main/resources/templates/system/dict/data/add.html
View file @
c85f36fa
...
...
@@ -74,18 +74,11 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/dict/data"
var
prefix
=
ctx
+
"system/dict/data"
;
$
(
"#form-dict-add"
).
validate
({
rules
:{
...
...
@@ -99,11 +92,14 @@
required
:
true
,
digits
:
true
},
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-dict-add'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-dict-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-dict-add'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/dict/data/edit.html
View file @
c85f36fa
...
...
@@ -75,18 +75,11 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
>
[[*{remark}]]
</textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/dict/data"
var
prefix
=
ctx
+
"system/dict/data"
;
$
(
"#form-dict-edit"
).
validate
({
rules
:{
...
...
@@ -100,11 +93,14 @@
required
:
true
,
digits
:
true
},
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-dict-edit'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-dict-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-dict-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/dict/type/add.html
View file @
c85f36fa
...
...
@@ -32,18 +32,11 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/dict"
var
prefix
=
ctx
+
"system/dict"
;
$
(
"#form-dict-add"
).
validate
({
rules
:{
...
...
@@ -72,11 +65,14 @@
"dictType"
:
{
remote
:
"该字典类型已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-dict-add'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-dict-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-dict-add'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/dict/type/edit.html
View file @
c85f36fa
...
...
@@ -33,18 +33,11 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
>
[[*{remark}]]
</textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/dict"
var
prefix
=
ctx
+
"system/dict"
;
$
(
"#form-dict-edit"
).
validate
({
rules
:{
...
...
@@ -76,11 +69,14 @@
"dictType"
:
{
remote
:
"该字典类型已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-dict-edit'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-dict-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-dict-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/menu/add.html
View file @
c85f36fa
...
...
@@ -64,12 +64,6 @@
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -108,11 +102,14 @@
"menuName"
:
{
remote
:
"菜单已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-menu-add'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-menu-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-menu-add'
).
serialize
());
}
}
$
(
function
()
{
$
(
"input[name='icon']"
).
focus
(
function
()
{
...
...
src/main/resources/templates/system/menu/edit.html
View file @
c85f36fa
...
...
@@ -65,12 +65,6 @@
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -118,11 +112,14 @@
"menuName"
:
{
remote
:
"菜单已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-menu-edit'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-menu-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-menu-edit'
).
serialize
());
}
}
$
(
function
()
{
$
(
"input[name='icon']"
).
focus
(
function
()
{
...
...
src/main/resources/templates/system/post/add.html
View file @
c85f36fa
...
...
@@ -38,18 +38,12 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
></textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/post"
var
prefix
=
ctx
+
"system/post"
;
$
(
"#form-post-add"
).
validate
({
rules
:{
postName
:{
...
...
@@ -96,11 +90,14 @@
"postName"
:
{
remote
:
"岗位名称已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-post-add'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-post-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-post-add'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/post/edit.html
View file @
c85f36fa
...
...
@@ -39,18 +39,12 @@
<textarea
id=
"remark"
name=
"remark"
class=
"form-control"
>
[[*{remark}]]
</textarea>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
<script
type=
"text/javascript"
>
var
prefix
=
ctx
+
"system/post"
var
prefix
=
ctx
+
"system/post"
;
$
(
"#form-post-edit"
).
validate
({
rules
:{
postName
:{
...
...
@@ -103,11 +97,14 @@
"postName"
:
{
remote
:
"岗位名称已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-post-edit'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-post-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-post-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/role/add.html
View file @
c85f36fa
...
...
@@ -48,12 +48,6 @@
<div
id=
"menuTrees"
class=
"ztree"
></div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -116,11 +110,14 @@
"roleKey"
:
{
remote
:
"角色权限已经存在"
}
},
submitHandler
:
function
(
form
){
add
();
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-role-add"
))
{
add
();
}
}
function
add
()
{
var
roleName
=
$
(
"input[name='roleName']"
).
val
();
...
...
src/main/resources/templates/system/role/edit.html
View file @
c85f36fa
...
...
@@ -49,12 +49,6 @@
<div
id=
"menuTrees"
class=
"ztree"
></div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -123,10 +117,7 @@
"roleKey"
:
{
remote
:
"角色权限已经存在"
}
},
submitHandler
:
function
(
form
){
edit
();
}
}
});
function
edit
()
{
...
...
@@ -159,6 +150,12 @@
}
});
}
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-role-edit"
))
{
edit
();
}
}
</script>
</body>
</html>
src/main/resources/templates/system/role/rule.html
View file @
c85f36fa
...
...
@@ -35,12 +35,6 @@
<div
id=
"deptTrees"
class=
"ztree"
></div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -59,11 +53,11 @@
$
(
"#dataScope"
).
change
();
});
$
(
"#form-role-edit"
).
validate
(
{
submitHandler
:
function
(
form
)
{
edit
();
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-role-edit"
))
{
edit
();
}
}
function
edit
()
{
var
roleId
=
$
(
"input[name='roleId']"
).
val
();
...
...
src/main/resources/templates/system/user/add.html
View file @
c85f36fa
...
...
@@ -79,13 +79,6 @@
</label>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -167,11 +160,14 @@
"phonenumber"
:{
remote
:
"手机号码已经存在"
}
},
submitHandler
:
function
(
form
){
add
();
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-user-add"
))
{
add
();
}
}
function
add
()
{
var
userId
=
$
(
"input[name='userId']"
).
val
();
...
...
src/main/resources/templates/system/user/edit.html
View file @
c85f36fa
...
...
@@ -74,13 +74,6 @@
</label>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -147,6 +140,12 @@
edit
();
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-user-edit"
))
{
edit
();
}
}
function
edit
()
{
var
userId
=
$
(
"input[name='userId']"
).
val
();
...
...
src/main/resources/templates/system/user/profile/edit.html
View file @
c85f36fa
...
...
@@ -50,12 +50,6 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -113,11 +107,14 @@
"phonenumber"
:{
remote
:
"手机号码已经存在"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
ctx
+
"system/user/profile/update"
,
$
(
'#form-user-edit'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-user-edit"
))
{
$
.
operate
.
save
(
ctx
+
"system/user/profile/update"
,
$
(
'#form-user-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/system/user/profile/resetPwd.html
View file @
c85f36fa
...
...
@@ -31,12 +31,6 @@
<span
class=
"help-block m-b-none"
><i
class=
"fa fa-info-circle"
></i>
请再次输入您的密码
</span>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include :: footer"
></div>
...
...
@@ -82,11 +76,14 @@
equalTo
:
"两次密码输入不一致"
}
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
ctx
+
"system/user/profile/resetPwd"
,
$
(
'#form-user-resetPwd'
).
serialize
());
}
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-user-resetPwd"
))
{
$
.
operate
.
save
(
ctx
+
"system/user/profile/resetPwd"
,
$
(
'#form-user-resetPwd'
).
serialize
());
}
}
</script>
</body>
...
...
src/main/resources/templates/system/user/resetPwd.html
View file @
c85f36fa
...
...
@@ -18,12 +18,6 @@
<input
class=
"form-control"
type=
"password"
name=
"password"
id=
"password"
th:value=
"${@config.getKey('sys.user.initPassword')}"
>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include :: footer"
></div>
...
...
@@ -35,11 +29,14 @@
minlength
:
5
,
maxlength
:
20
},
},
submitHandler
:
function
(
form
){
$
.
operate
.
save
(
ctx
+
"system/user/resetPwd"
,
$
(
'#form-user-resetPwd'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-user-resetPwd"
))
{
$
.
operate
.
save
(
ctx
+
"system/user/resetPwd"
,
$
(
'#form-user-resetPwd'
).
serialize
());
}
}
</script>
</body>
...
...
src/main/resources/templates/vm/html/add.html.vm
View file @
c85f36fa
...
...
@@ -15,12 +15,6 @@
</div>
#end
#end
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -31,11 +25,14 @@
xxxx
:{
required
:
true
,
},
},
submitHandler
:
function
(
form
)
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-${classname}-add'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-${classname}-add"
))
{
$
.
operate
.
save
(
prefix
+
"/add"
,
$
(
'#form-${classname}-add'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/vm/html/edit.html.vm
View file @
c85f36fa
...
...
@@ -16,12 +16,6 @@
</div>
#end
#end
<div
class=
"form-group"
>
<div
class=
"form-control-static col-sm-offset-9"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
提交
</button>
<button
onclick=
"$.modal.close()"
class=
"btn btn-danger"
type=
"button"
>
关闭
</button>
</div>
</div>
</form>
</div>
<div
th:include=
"include::footer"
></div>
...
...
@@ -32,11 +26,14 @@
xxxx
:{
required
:
true
,
},
},
submitHandler
:
function
(
form
)
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-${classname}-edit'
).
serialize
());
}
});
function
submitHandler
()
{
if
(
$
.
validate
.
form
(
"#form-${classname}-edit"
))
{
$
.
operate
.
save
(
prefix
+
"/edit"
,
$
(
'#form-${classname}-edit'
).
serialize
());
}
}
</script>
</body>
</html>
src/main/resources/templates/vm/html/list.html.vm
View file @
c85f36fa
...
...
@@ -4,12 +4,12 @@
<head
th:include=
"include :: header"
></head>
<body
class=
"gray-bg"
>
<div
class=
"container-div"
>
<div
class=
"btn-group hidden-xs"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-
outline btn-success btn-rounded
"
onclick=
"$.operate.add()"
shiro:hasPermission=
"${moduleName}:${classname}:add"
>
<i
class=
"fa fa-plus"
></i>
新增
<div
class=
"btn-group
-sm
hidden-xs"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-
primary
"
onclick=
"$.operate.add()"
shiro:hasPermission=
"${moduleName}:${classname}:add"
>
<i
class=
"fa fa-plus"
></i>
添加
</a>
<a
class=
"btn btn-
outline btn-danger btn-round
ed"
onclick=
"$.operate.removeAll()"
shiro:hasPermission=
"${moduleName}:${classname}:remove"
>
<i
class=
"fa fa-
trash-o
"
></i>
删除
<a
class=
"btn btn-
danger btn-del btn-del disabl
ed"
onclick=
"$.operate.removeAll()"
shiro:hasPermission=
"${moduleName}:${classname}:remove"
>
<i
class=
"fa fa-
remove
"
></i>
删除
</a>
</div>
...
...
@@ -21,7 +21,7 @@
<script
th:inline=
"javascript"
>
var
editFlag
=
[[
$
{@
permission
.
hasPermi
(
'${moduleName}:${classname}:edit'
)}]];
var
removeFlag
=
[[
$
{@
permission
.
hasPermi
(
'${moduleName}:${classname}:remove'
)}]];
var
prefix
=
ctx
+
"${moduleName}/${classname}"
var
prefix
=
ctx
+
"${moduleName}/${classname}"
;
$
(
function
()
{
var
options
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment