Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
a7f7b72f
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1426
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看板
提交
a7f7b72f
编写于
8月 11, 2022
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表格组件修改
上级
bc27ca22
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
2270 addition
and
2222 deletion
+2270
-2222
userauth/src/main/resources/template/js/sysevemenu/sysevemenuadd.js
...rc/main/resources/template/js/sysevemenu/sysevemenuadd.js
+1
-0
userauth/src/main/resources/template/js/sysevemenu/sysevemenuedit.js
...c/main/resources/template/js/sysevemenu/sysevemenuedit.js
+1
-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/syseveuserstaff/syseveuserstafflist.js
...ources/template/js/syseveuserstaff/syseveuserstafflist.js
+2
-2
web/src/main/resources/template/assets/lib/layui/lay/modules/table.js
.../resources/template/assets/lib/layui/lay/modules/table.js
+2101
-2052
web/src/main/resources/template/assets/lib/layui/lay/modules/util.js
...n/resources/template/assets/lib/layui/lay/modules/util.js
+164
-164
未找到文件。
userauth/src/main/resources/template/js/sysevemenu/sysevemenuadd.js
浏览文件 @
a7f7b72f
...
...
@@ -32,6 +32,7 @@ layui.config({
url
:
reqBasePath
+
"
querySysEveWinList
"
,
params
:
{},
pagination
:
false
,
method
:
"
GET
"
,
template
:
selOption
,
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
json
)
{
...
...
userauth/src/main/resources/template/js/sysevemenu/sysevemenuedit.js
浏览文件 @
a7f7b72f
...
...
@@ -80,6 +80,7 @@ layui.config({
url
:
reqBasePath
+
"
querySysEveWinList
"
,
params
:
{},
pagination
:
false
,
method
:
"
GET
"
,
template
:
selOption
,
ajaxSendLoadBefore
:
function
(
hdb
)
{},
ajaxSendAfter
:
function
(
j
)
{
...
...
userauth/src/main/resources/template/js/sysevemenu/sysevemenulist.js
浏览文件 @
a7f7b72f
...
...
@@ -124,15 +124,12 @@ layui.config({
/********* tree 处理 start *************/
var
tree
=
fsTree
.
render
({
id
:
"
treeDemo
"
,
funcNo
:
funcNo
,
url
:
reqBasePath
+
"
querySysEveWinList
"
,
clickCallback
:
onClickTree
,
onDblClick
:
onClickTree
},
function
(
id
){
},
function
(
id
)
{
initLoadTable
();
});
// 绑定按钮事件
fsCommon
.
buttonEvent
(
"
tree
"
,
getTree
);
//异步加载的方法
function
onClickTree
(
event
,
treeId
,
treeNode
)
{
...
...
userauth/src/main/resources/template/js/syseveuserstaff/syseveuserstafflist.js
浏览文件 @
a7f7b72f
...
...
@@ -119,7 +119,7 @@ layui.config({
soulTable
.
render
(
this
);
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入员工姓名、员工工号
"
,
function
()
{
table
.
reload
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
table
.
reload
Data
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -302,7 +302,7 @@ layui.config({
});
function
loadTable
(){
table
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
table
.
reload
Data
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
(){
...
...
web/src/main/resources/template/assets/lib/layui/lay/modules/table.js
浏览文件 @
a7f7b72f
此差异已折叠。
点击以展开。
web/src/main/resources/template/assets/lib/layui/lay/modules/util.js
浏览文件 @
a7f7b72f
...
...
@@ -3,168 +3,168 @@
@Name:layui.util 工具集
@Author:贤心
@License:MIT
*/
layui
.
define
(
'
jquery
'
,
function
(
exports
)
{
"
use strict
"
;
var
$
=
layui
.
$
//外部接口
,
util
=
{
//固定块
fixbar
:
function
(
options
)
{
var
ELEM
=
'
layui-fixbar
'
,
TOP_BAR
=
'
layui-fixbar-top
'
,
dom
=
$
(
document
),
body
=
$
(
'
body
'
)
,
is
,
timer
;
options
=
$
.
extend
({
showHeight
:
200
//出现TOP的滚动条高度临界值
},
options
);
options
.
bar1
=
options
.
bar1
===
true
?
'

'
:
options
.
bar1
;
options
.
bar2
=
options
.
bar2
===
true
?
'

'
:
options
.
bar2
;
options
.
bgcolor
=
options
.
bgcolor
?
(
'
background-color:
'
+
options
.
bgcolor
)
:
''
;
var
icon
=
[
options
.
bar1
,
options
.
bar2
,
'

'
]
//图标:信息、问号、TOP
,
elem
=
$
([
'
<ul class="
'
+
ELEM
+
'
">
'
,
options
.
bar1
?
'
<li class="layui-icon" lay-type="bar1" style="
'
+
options
.
bgcolor
+
'
">
'
+
icon
[
0
]
+
'
</li>
'
:
''
,
options
.
bar2
?
'
<li class="layui-icon" lay-type="bar2" style="
'
+
options
.
bgcolor
+
'
">
'
+
icon
[
1
]
+
'
</li>
'
:
''
,
'
<li class="layui-icon
'
+
TOP_BAR
+
'
" lay-type="top" style="
'
+
options
.
bgcolor
+
'
">
'
+
icon
[
2
]
+
'
</li>
'
,
'
</ul>
'
].
join
(
''
))
,
topBar
=
elem
.
find
(
'
.
'
+
TOP_BAR
)
,
scroll
=
function
()
{
var
stop
=
dom
.
scrollTop
();
if
(
stop
>=
(
options
.
showHeight
))
{
is
||
(
topBar
.
show
(),
is
=
1
);
}
else
{
is
&&
(
topBar
.
hide
(),
is
=
0
);
}
};
if
(
$
(
'
.
'
+
ELEM
)[
0
])
return
;
typeof
options
.
css
===
'
object
'
&&
elem
.
css
(
options
.
css
);
body
.
append
(
elem
),
scroll
();
//bar点击事件
elem
.
find
(
'
li
'
).
on
(
'
click
'
,
function
()
{
var
othis
=
$
(
this
),
type
=
othis
.
attr
(
'
lay-type
'
);
if
(
type
===
'
top
'
)
{
$
(
'
html,body
'
).
animate
({
scrollTop
:
0
},
200
);
}
options
.
click
&&
options
.
click
.
call
(
this
,
type
);
});
//Top显示控制
dom
.
on
(
'
scroll
'
,
function
()
{
clearTimeout
(
timer
);
timer
=
setTimeout
(
function
()
{
scroll
();
},
100
);
});
}
//倒计时
,
countdown
:
function
(
endTime
,
serverTime
,
callback
)
{
var
that
=
this
,
type
=
typeof
serverTime
===
'
function
'
,
end
=
new
Date
(
endTime
).
getTime
()
,
now
=
new
Date
((
!
serverTime
||
type
)
?
new
Date
().
getTime
()
:
serverTime
).
getTime
()
,
count
=
end
-
now
,
time
=
[
Math
.
floor
(
count
/
(
1000
*
60
*
60
*
24
))
//天
,
Math
.
floor
(
count
/
(
1000
*
60
*
60
))
%
24
//时
,
Math
.
floor
(
count
/
(
1000
*
60
))
%
60
//分
,
Math
.
floor
(
count
/
1000
)
%
60
//秒
];
if
(
type
)
callback
=
serverTime
;
var
timer
=
setTimeout
(
function
()
{
that
.
countdown
(
endTime
,
now
+
1000
,
callback
);
},
1000
);
callback
&&
callback
(
count
>
0
?
time
:
[
0
,
0
,
0
,
0
],
serverTime
,
timer
);
if
(
count
<=
0
)
clearTimeout
(
timer
);
return
timer
;
}
//某个时间在当前时间的多久前
,
timeAgo
:
function
(
time
,
onlyDate
)
{
var
that
=
this
,
arr
=
[[],
[]]
,
stamp
=
new
Date
().
getTime
()
-
new
Date
(
time
).
getTime
();
//返回具体日期
if
(
stamp
>
1000
*
60
*
60
*
24
*
8
)
{
stamp
=
new
Date
(
time
);
arr
[
0
][
0
]
=
that
.
digit
(
stamp
.
getFullYear
(),
4
);
arr
[
0
][
1
]
=
that
.
digit
(
stamp
.
getMonth
()
+
1
);
arr
[
0
][
2
]
=
that
.
digit
(
stamp
.
getDate
());
//是否输出时间
if
(
!
onlyDate
)
{
arr
[
1
][
0
]
=
that
.
digit
(
stamp
.
getHours
());
arr
[
1
][
1
]
=
that
.
digit
(
stamp
.
getMinutes
());
arr
[
1
][
2
]
=
that
.
digit
(
stamp
.
getSeconds
());
}
return
arr
[
0
].
join
(
'
-
'
)
+
'
'
+
arr
[
1
].
join
(
'
:
'
);
}
//30天以内,返回“多久前”
if
(
stamp
>=
1000
*
60
*
60
*
24
)
{
return
((
stamp
/
1000
/
60
/
60
/
24
)
|
0
)
+
'
天前
'
;
}
else
if
(
stamp
>=
1000
*
60
*
60
)
{
return
((
stamp
/
1000
/
60
/
60
)
|
0
)
+
'
小时前
'
;
}
else
if
(
stamp
>=
1000
*
60
*
2
)
{
//2分钟以内为:刚刚
return
((
stamp
/
1000
/
60
)
|
0
)
+
'
分钟前
'
;
}
else
if
(
stamp
<
0
)
{
return
'
未来
'
;
}
else
{
return
'
刚刚
'
;
}
}
//数字前置补零
,
digit
:
function
(
num
,
length
)
{
var
str
=
''
;
num
=
String
(
num
);
length
=
length
||
2
;
for
(
var
i
=
num
.
length
;
i
<
length
;
i
++
)
{
str
+=
'
0
'
;
}
return
num
<
Math
.
pow
(
10
,
length
)
?
str
+
(
num
|
0
)
:
num
;
}
//转化为日期格式字符
,
toDateString
:
function
(
time
,
format
)
{
var
that
=
this
,
date
=
new
Date
(
time
||
new
Date
())
,
ymd
=
[
that
.
digit
(
date
.
getFullYear
(),
4
)
,
that
.
digit
(
date
.
getMonth
()
+
1
)
,
that
.
digit
(
date
.
getDate
())
]
,
hms
=
[
that
.
digit
(
date
.
getHours
())
,
that
.
digit
(
date
.
getMinutes
())
,
that
.
digit
(
date
.
getSeconds
())
];
format
=
format
||
'
yyyy-MM-dd HH:mm:ss
'
;
return
format
.
replace
(
/yyyy/g
,
ymd
[
0
])
.
replace
(
/MM/g
,
ymd
[
1
])
.
replace
(
/dd/g
,
ymd
[
2
])
.
replace
(
/HH/g
,
hms
[
0
])
.
replace
(
/mm/g
,
hms
[
1
])
.
replace
(
/ss/g
,
hms
[
2
]);
}
};
exports
(
'
util
'
,
util
);
*/
layui
.
define
(
'
jquery
'
,
function
(
exports
)
{
"
use strict
"
;
var
$
=
layui
.
$
//外部接口
,
util
=
{
//固定块
fixbar
:
function
(
options
)
{
var
ELEM
=
'
layui-fixbar
'
,
TOP_BAR
=
'
layui-fixbar-top
'
,
dom
=
$
(
document
),
body
=
$
(
'
body
'
)
,
is
,
timer
;
options
=
$
.
extend
({
showHeight
:
200
//出现TOP的滚动条高度临界值
},
options
);
options
.
bar1
=
options
.
bar1
===
true
?
'

'
:
options
.
bar1
;
options
.
bar2
=
options
.
bar2
===
true
?
'

'
:
options
.
bar2
;
options
.
bgcolor
=
options
.
bgcolor
?
(
'
background-color:
'
+
options
.
bgcolor
)
:
''
;
var
icon
=
[
options
.
bar1
,
options
.
bar2
,
'

'
]
//图标:信息、问号、TOP
,
elem
=
$
([
'
<ul class="
'
+
ELEM
+
'
">
'
,
options
.
bar1
?
'
<li class="layui-icon" lay-type="bar1" style="
'
+
options
.
bgcolor
+
'
">
'
+
icon
[
0
]
+
'
</li>
'
:
''
,
options
.
bar2
?
'
<li class="layui-icon" lay-type="bar2" style="
'
+
options
.
bgcolor
+
'
">
'
+
icon
[
1
]
+
'
</li>
'
:
''
,
'
<li class="layui-icon
'
+
TOP_BAR
+
'
" lay-type="top" style="
'
+
options
.
bgcolor
+
'
">
'
+
icon
[
2
]
+
'
</li>
'
,
'
</ul>
'
].
join
(
''
))
,
topBar
=
elem
.
find
(
'
.
'
+
TOP_BAR
)
,
scroll
=
function
()
{
var
stop
=
dom
.
scrollTop
();
if
(
stop
>=
(
options
.
showHeight
))
{
is
||
(
topBar
.
show
(),
is
=
1
);
}
else
{
is
&&
(
topBar
.
hide
(),
is
=
0
);
}
};
if
(
$
(
'
.
'
+
ELEM
)[
0
])
return
;
typeof
options
.
css
===
'
object
'
&&
elem
.
css
(
options
.
css
);
body
.
append
(
elem
),
scroll
();
//bar点击事件
elem
.
find
(
'
li
'
).
on
(
'
click
'
,
function
()
{
var
othis
=
$
(
this
),
type
=
othis
.
attr
(
'
lay-type
'
);
if
(
type
===
'
top
'
)
{
$
(
'
html,body
'
).
animate
({
scrollTop
:
0
},
200
);
}
options
.
click
&&
options
.
click
.
call
(
this
,
type
);
});
//Top显示控制
dom
.
on
(
'
scroll
'
,
function
()
{
clearTimeout
(
timer
);
timer
=
setTimeout
(
function
()
{
scroll
();
},
100
);
});
}
//倒计时
,
countdown
:
function
(
endTime
,
serverTime
,
callback
)
{
var
that
=
this
,
type
=
typeof
serverTime
===
'
function
'
,
end
=
new
Date
(
endTime
).
getTime
()
,
now
=
new
Date
((
!
serverTime
||
type
)
?
new
Date
().
getTime
()
:
serverTime
).
getTime
()
,
count
=
end
-
now
,
time
=
[
Math
.
floor
(
count
/
(
1000
*
60
*
60
*
24
))
//天
,
Math
.
floor
(
count
/
(
1000
*
60
*
60
))
%
24
//时
,
Math
.
floor
(
count
/
(
1000
*
60
))
%
60
//分
,
Math
.
floor
(
count
/
1000
)
%
60
//秒
];
if
(
type
)
callback
=
serverTime
;
var
timer
=
setTimeout
(
function
()
{
that
.
countdown
(
endTime
,
now
+
1000
,
callback
);
},
1000
);
callback
&&
callback
(
count
>
0
?
time
:
[
0
,
0
,
0
,
0
],
serverTime
,
timer
);
if
(
count
<=
0
)
clearTimeout
(
timer
);
return
timer
;
}
//某个时间在当前时间的多久前
,
timeAgo
:
function
(
time
,
onlyDate
)
{
var
that
=
this
,
arr
=
[[],
[]]
,
stamp
=
new
Date
().
getTime
()
-
new
Date
(
time
).
getTime
();
//返回具体日期
if
(
stamp
>
1000
*
60
*
60
*
24
*
8
)
{
stamp
=
new
Date
(
time
);
arr
[
0
][
0
]
=
that
.
digit
(
stamp
.
getFullYear
(),
4
);
arr
[
0
][
1
]
=
that
.
digit
(
stamp
.
getMonth
()
+
1
);
arr
[
0
][
2
]
=
that
.
digit
(
stamp
.
getDate
());
//是否输出时间
if
(
!
onlyDate
)
{
arr
[
1
][
0
]
=
that
.
digit
(
stamp
.
getHours
());
arr
[
1
][
1
]
=
that
.
digit
(
stamp
.
getMinutes
());
arr
[
1
][
2
]
=
that
.
digit
(
stamp
.
getSeconds
());
}
return
arr
[
0
].
join
(
'
-
'
)
+
'
'
+
arr
[
1
].
join
(
'
:
'
);
}
//30天以内,返回“多久前”
if
(
stamp
>=
1000
*
60
*
60
*
24
)
{
return
((
stamp
/
1000
/
60
/
60
/
24
)
|
0
)
+
'
天前
'
;
}
else
if
(
stamp
>=
1000
*
60
*
60
)
{
return
((
stamp
/
1000
/
60
/
60
)
|
0
)
+
'
小时前
'
;
}
else
if
(
stamp
>=
1000
*
60
*
2
)
{
//2分钟以内为:刚刚
return
((
stamp
/
1000
/
60
)
|
0
)
+
'
分钟前
'
;
}
else
if
(
stamp
<
0
)
{
return
'
未来
'
;
}
else
{
return
'
刚刚
'
;
}
}
//数字前置补零
,
digit
:
function
(
num
,
length
)
{
var
str
=
''
;
num
=
String
(
num
);
length
=
length
||
2
;
for
(
var
i
=
num
.
length
;
i
<
length
;
i
++
)
{
str
+=
'
0
'
;
}
return
num
<
Math
.
pow
(
10
,
length
)
?
str
+
(
num
|
0
)
:
num
;
}
//转化为日期格式字符
,
toDateString
:
function
(
time
,
format
)
{
var
that
=
this
,
date
=
new
Date
(
time
||
new
Date
())
,
ymd
=
[
that
.
digit
(
date
.
getFullYear
(),
4
)
,
that
.
digit
(
date
.
getMonth
()
+
1
)
,
that
.
digit
(
date
.
getDate
())
]
,
hms
=
[
that
.
digit
(
date
.
getHours
())
,
that
.
digit
(
date
.
getMinutes
())
,
that
.
digit
(
date
.
getSeconds
())
];
format
=
format
||
'
yyyy-MM-dd HH:mm:ss
'
;
return
format
.
replace
(
/yyyy/g
,
ymd
[
0
])
.
replace
(
/MM/g
,
ymd
[
1
])
.
replace
(
/dd/g
,
ymd
[
2
])
.
replace
(
/HH/g
,
hms
[
0
])
.
replace
(
/mm/g
,
hms
[
1
])
.
replace
(
/ss/g
,
hms
[
2
]);
}
};
exports
(
'
util
'
,
util
);
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录