Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
0fe52011
"src/main/vscode:/vscode.git/clone" did not exist on "144968ee40eca672d2bca5b8584885e2a7e3d6fb"
Commit
0fe52011
authored
Nov 12, 2018
by
Huang
Browse files
no commit message
parent
e2a64d42
Changes
111
Show whitespace changes
Inline
Side-by-side
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/sys/sysUserOnlineList.js
0 → 100644
View file @
0fe52011
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginStartTimestsamp
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endStartTimestsamp
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#beginLastAccessTime
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endLastAccessTime
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/sys/sysUserOnlineTotal.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/sys/sysUserOnlineTotal.js
0 → 100644
View file @
0fe52011
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginStartTimestsamp
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endStartTimestsamp
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#beginLastAccessTime
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endLastAccessTime
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#beginCreateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endCreateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
var
name
=
setInterval
(
function
(){
if
(
$
(
"
#run
"
).
attr
(
'
checked
'
)){
location
.
reload
();
}
}
,
//每20秒执行一次
20000
);
});
function
sumColumnIndex
(
id
,
index
){
var
sum
=
0
;
$
(
"
table tbody tr
"
).
each
(
function
(){
sum
=
sum
+
Number
(
$
(
this
).
find
(
"
td:eq(
"
+
(
index
-
1
)
+
"
)
"
).
html
());
});
$
(
"
#
"
+
id
).
html
(
sum
);
}
function
sumColumn
(
id
,
columnName
){
if
(
columnName
==
null
)
columnName
=
id
;
var
sum
=
0
;
$
(
"
.
"
+
columnName
).
each
(
function
(){
sum
=
sum
+
Number
(
$
(
this
).
html
());
});
$
(
"
#
"
+
id
).
html
(
sum
);
}
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/sys/userForm.js
0 → 100644
View file @
0fe52011
function
validateFormPage
(){
$
(
"
#no
"
).
focus
();
jeeSpring
.
inputForm
=
$
(
"
#inputForm
"
).
validate
({
rules
:
{
loginName
:
{
remote
:
ctx
+
"
/sys/user/checkLoginName?oldLoginName=
"
+
encodeURIComponent
(
$
(
"
#loginName
"
).
val
())}
//设置了远程验证,在初始化时必须预先调用一次。
},
messages
:
{
loginName
:
{
remote
:
"
用户登录名已存在
"
},
confirmNewPassword
:
{
equalTo
:
"
输入与上面相同的密码
"
}
},
submitHandler
:
function
(
form
){
//loading('正在提交,请稍等...');
form
.
submit
();
},
errorContainer
:
"
#messageBox
"
,
errorPlacement
:
function
(
error
,
element
)
{
//$("#messageBox").text("输入有误,请先更正。");
if
(
element
.
is
(
"
:checkbox
"
)
||
element
.
is
(
"
:radio
"
)
||
element
.
parent
().
is
(
"
.input-append
"
)){
error
.
appendTo
(
element
.
parent
().
parent
());
}
else
{
error
.
insertAfter
(
element
);
}
}
});
//在ready函数中预先调用一次远程校验函数。
//否则打开修改对话框,不做任何更改直接submit,这时再触发远程校验,耗时较长,
//submit函数在等待远程校验结果然后再提交,而layer对话框不会阻塞会直接关闭同时会销毁表单,因此submit没有提交就被销毁了导致提交表单失败。
$
(
"
#inputForm
"
).
validate
().
element
(
$
(
"
#loginName
"
));
}
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/sys/userList.js
0 → 100644
View file @
0fe52011
function
refresh
()
{
//刷新
window
.
location
=
ctx
+
"
/sys/user/list
"
;
}
var
setting
=
{
data
:
{
simpleData
:
{
enable
:
true
,
idKey
:
"
id
"
,
pIdKey
:
"
pId
"
,
rootPId
:
'
0
'
}},
callback
:
{
onClick
:
function
(
event
,
treeId
,
treeNode
)
{
var
id
=
treeNode
.
id
==
'
0
'
?
''
:
treeNode
.
id
;
window
.
location
=
ctx
+
"
/sys/user/list?office.id=
"
+
id
+
"
&office.name=
"
+
encodeURI
(
treeNode
.
name
);
}
}
};
function
refreshTree
()
{
$
.
getJSON
(
ctx
+
"
/sys/office/treeData
"
,
function
(
data
)
{
$
.
fn
.
zTree
.
init
(
$
(
"
#ztree
"
),
setting
,
data
).
expandAll
(
true
);
});
}
refreshTree
();
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/one/formLeaveForm.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/one/formLeaveForm.js
0 → 100644
View file @
0fe52011
var
validateForm
;
function
doSubmit
(){
//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
if
(
validateForm
.
form
()){
$
(
"
#inputForm
"
).
submit
();
return
true
;
}
return
false
;
}
$
(
document
).
ready
(
function
()
{
validateForm
=
$
(
"
#inputForm
"
).
validate
({
submitHandler
:
function
(
form
){
loading
(
'
正在提交,请稍等...
'
);
form
.
submit
();
/*top.closeSelectTabs()*/
/*$.ajax({
url:$("#inputForm").attr("action"),type:"POST",data:$("#inputForm").serialize(),async:false,
success:function(data){},
error:function(data){}
});*/
},
errorContainer
:
"
#messageBox
"
,
errorPlacement
:
function
(
error
,
element
)
{
$
(
"
#messageBox
"
).
text
(
"
输入有误,请先更正。
"
);
if
(
element
.
is
(
"
:checkbox
"
)
||
element
.
is
(
"
:radio
"
)
||
element
.
parent
().
is
(
"
.input-append
"
)){
error
.
appendTo
(
element
.
parent
().
parent
());
}
else
{
error
.
insertAfter
(
element
);
}
}
});
laydate
({
elem
:
'
#beginDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/one/formLeaveList.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/one/formLeaveList.js
0 → 100644
View file @
0fe52011
$
(
document
).
ready
(
function
()
{
});
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/one/formLeaveTotal.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/one/formLeaveTotal.js
0 → 100644
View file @
0fe52011
$
(
document
).
ready
(
function
()
{
var
name
=
setInterval
(
function
(){
if
(
$
(
"
#run
"
).
attr
(
'
checked
'
)){
location
.
reload
();
}
}
,
//每20秒执行一次
20000
);
});
function
sumColumnIndex
(
id
,
index
){
var
sum
=
0
;
$
(
"
table tbody tr
"
).
each
(
function
(){
sum
=
sum
+
Number
(
$
(
this
).
find
(
"
td:eq(
"
+
(
index
-
1
)
+
"
)
"
).
html
());
});
$
(
"
#
"
+
id
).
html
(
sum
);
}
function
sumColumn
(
id
,
columnName
){
if
(
columnName
==
null
)
columnName
=
id
;
var
sum
=
0
;
$
(
"
.
"
+
columnName
).
each
(
function
(){
sum
=
sum
+
Number
(
$
(
this
).
html
());
});
$
(
"
#
"
+
id
).
html
(
sum
);
}
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/onetomany/testDataMainForm.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/onetomany/testDataMainForm.js
0 → 100644
View file @
0fe52011
var
validateForm
;
function
doSubmit
(){
//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
if
(
validateForm
.
form
()){
$
(
"
#inputForm
"
).
submit
();
return
true
;
}
return
false
;
}
$
(
document
).
ready
(
function
()
{
validateForm
=
$
(
"
#inputForm
"
).
validate
({
submitHandler
:
function
(
form
){
loading
(
'
正在提交,请稍等...
'
);
form
.
submit
();
/*top.closeSelectTabs()*/
/*$.ajax({
url:$("#inputForm").attr("action"),type:"POST",data:$("#inputForm").serialize(),async:false,
success:function(data){},
error:function(data){}
});*/
},
errorContainer
:
"
#messageBox
"
,
errorPlacement
:
function
(
error
,
element
)
{
$
(
"
#messageBox
"
).
text
(
"
输入有误,请先更正。
"
);
if
(
element
.
is
(
"
:checkbox
"
)
||
element
.
is
(
"
:radio
"
)
||
element
.
parent
().
is
(
"
.input-append
"
)){
error
.
appendTo
(
element
.
parent
().
parent
());
}
else
{
error
.
insertAfter
(
element
);
}
}
});
laydate
({
elem
:
'
#inDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
function
addRow
(
list
,
idx
,
tpl
,
row
){
$
(
list
).
append
(
Mustache
.
render
(
tpl
,
{
idx
:
idx
,
delBtn
:
true
,
row
:
row
}));
$
(
list
+
idx
).
find
(
"
select
"
).
each
(
function
(){
$
(
this
).
val
(
$
(
this
).
attr
(
"
data-value
"
));
});
$
(
list
+
idx
).
find
(
"
input[type='checkbox'], input[type='radio']
"
).
each
(
function
(){
var
ss
=
$
(
this
).
attr
(
"
data-value
"
).
split
(
'
,
'
);
for
(
var
i
=
0
;
i
<
ss
.
length
;
i
++
){
if
(
$
(
this
).
val
()
==
ss
[
i
]){
$
(
this
).
attr
(
"
checked
"
,
"
checked
"
);
}
}
});
}
function
delRow
(
obj
,
prefix
){
var
id
=
$
(
prefix
+
"
_id
"
);
var
delFlag
=
$
(
prefix
+
"
_delFlag
"
);
if
(
id
.
val
()
==
""
){
$
(
obj
).
parent
().
parent
().
remove
();
}
else
if
(
delFlag
.
val
()
==
"
0
"
){
delFlag
.
val
(
"
1
"
);
$
(
obj
).
html
(
"
÷
"
).
attr
(
"
title
"
,
"
撤销删除
"
);
$
(
obj
).
parent
().
parent
().
addClass
(
"
error
"
);
}
else
if
(
delFlag
.
val
()
==
"
1
"
){
delFlag
.
val
(
"
0
"
);
$
(
obj
).
html
(
"
×
"
).
attr
(
"
title
"
,
"
删除
"
);
$
(
obj
).
parent
().
parent
().
removeClass
(
"
error
"
);
}
}
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/onetomany/testDataMainList.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/onetomany/testDataMainList.js
0 → 100644
View file @
0fe52011
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginInDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endInDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#updateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/onetomany/testDataMainTotal.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/onetomany/testDataMainTotal.js
0 → 100644
View file @
0fe52011
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginInDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endInDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#updateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
var
name
=
setInterval
(
function
(){
if
(
$
(
"
#run
"
).
attr
(
'
checked
'
)){
location
.
reload
();
}
}
,
//每20秒执行一次
20000
);
});
function
sumColumnIndex
(
id
,
index
){
var
sum
=
0
;
$
(
"
table tbody tr
"
).
each
(
function
(){
sum
=
sum
+
Number
(
$
(
this
).
find
(
"
td:eq(
"
+
(
index
-
1
)
+
"
)
"
).
html
());
});
$
(
"
#
"
+
id
).
html
(
sum
);
}
function
sumColumn
(
id
,
columnName
){
if
(
columnName
==
null
)
columnName
=
id
;
var
sum
=
0
;
$
(
"
.
"
+
columnName
).
each
(
function
(){
sum
=
sum
+
Number
(
$
(
this
).
html
());
});
$
(
"
#
"
+
id
).
html
(
sum
);
}
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/testDataForm.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/testDataForm.js
0 → 100644
View file @
0fe52011
var
validateForm
;
function
doSubmit
(){
//回调函数,在编辑和保存动作时,供openDialog调用提交表单。
if
(
validateForm
.
form
()){
$
(
"
#inputForm
"
).
submit
();
return
true
;
}
return
false
;
}
$
(
document
).
ready
(
function
()
{
validateForm
=
$
(
"
#inputForm
"
).
validate
({
submitHandler
:
function
(
form
){
loading
(
'
正在提交,请稍等...
'
);
form
.
submit
();
/*top.closeSelectTabs()*/
/*$.ajax({
url:$("#inputForm").attr("action"),type:"POST",data:$("#inputForm").serialize(),async:false,
success:function(data){},
error:function(data){}
});*/
},
errorContainer
:
"
#messageBox
"
,
errorPlacement
:
function
(
error
,
element
)
{
$
(
"
#messageBox
"
).
text
(
"
输入有误,请先更正。
"
);
if
(
element
.
is
(
"
:checkbox
"
)
||
element
.
is
(
"
:radio
"
)
||
element
.
parent
().
is
(
"
.input-append
"
)){
error
.
appendTo
(
element
.
parent
().
parent
());
}
else
{
error
.
insertAfter
(
element
);
}
}
});
laydate
({
elem
:
'
#inDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
JeeSpringCloud/jeespring-web/src/main/webapp/staticViews/modules/test/testDataList.css
0 → 100644
View file @
0fe52011
@charset
"UTF-8"
;
\ No newline at end of file
Prev
1
2
3
4
5
6
Next
Write
Preview
Supports
Markdown
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