Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
97b18476
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1437
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看板
提交
97b18476
编写于
11月 29, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改密码页面完成,上传组件修改
上级
91ead49e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
149 addition
and
20 deletion
+149
-20
skyeye-web/src/main/webapp/assets/lib/layui/custom.js
skyeye-web/src/main/webapp/assets/lib/layui/custom.js
+46
-18
skyeye-web/src/main/webapp/assets/lib/layui/lay/modules/jQuery.upload.min.js
.../webapp/assets/lib/layui/lay/modules/jQuery.upload.min.js
+5
-1
skyeye-web/src/main/webapp/js/syspersonal/editpassword.js
skyeye-web/src/main/webapp/js/syspersonal/editpassword.js
+41
-0
skyeye-web/src/main/webapp/js/syspersonal/syspersonal.js
skyeye-web/src/main/webapp/js/syspersonal/syspersonal.js
+17
-0
skyeye-web/src/main/webapp/tpl/syspersonal/editpassword.html
skyeye-web/src/main/webapp/tpl/syspersonal/editpassword.html
+39
-0
skyeye-web/src/main/webapp/tpl/syspersonal/syspersonal.html
skyeye-web/src/main/webapp/tpl/syspersonal/syspersonal.html
+1
-1
未找到文件。
skyeye-web/src/main/webapp/assets/lib/layui/custom.js
浏览文件 @
97b18476
...
...
@@ -30,15 +30,20 @@ function _openNewWindows(mation){
mation
.
url
=
mation
.
url
+
"
?
"
+
s
.
slice
(
1
);
}
if
(
isNull
(
mation
.
area
)){
// mation.area = [window.screen.width / 3 * 2 + 'px', window.screen.height / 2 + 'px'];
mation
.
area
=
[
window
.
screen
.
width
/
3
*
2
+
'
px
'
,
(
layui
.
$
(
window
.
parent
.
window
).
height
()
-
200
)
+
'
px
'
];
}
if
(
isNull
(
mation
.
offset
)){
mation
.
offset
=
'
auto
'
;
}
if
(
isNull
(
mation
.
maxmin
)){
if
(
isNull
(
mation
.
maxmin
)){
//是否最大化
mation
.
maxmin
=
false
;
}
if
(
isNull
(
mation
.
zIndex
)){
//是否在桌面打开
mation
.
zIndex
=
false
;
}
if
(
isNull
(
mation
.
shade
)){
//遮罩层
mation
.
shade
=
0.5
;
}
var
index
=
layer
.
load
(
1
);
refreshCode
=
""
;
layui
.
$
.
ajax
({
...
...
@@ -47,24 +52,47 @@ function _openNewWindows(mation){
async
:
true
,
success
:
function
(
data
)
{
layer
.
close
(
index
);
var
pageIndex
;
//从桌面打开
// top.winui.window.open
var
pageIndex
=
layer
.
open
({
id
:
mation
.
pageId
,
type
:
2
,
title
:
mation
.
title
,
content
:
mation
.
url
,
area
:
mation
.
area
,
offset
:
mation
.
offset
,
maxmin
:
mation
.
maxmin
,
end
:
function
(){
if
(
typeof
(
mation
.
callBack
)
==
"
function
"
)
{
mation
.
callBack
(
refreshCode
);
}
}
});
if
(
mation
.
zIndex
){
pageIndex
=
top
.
winui
.
window
.
open
({
id
:
mation
.
pageId
,
type
:
2
,
title
:
mation
.
title
,
content
:
mation
.
url
,
area
:
mation
.
area
,
offset
:
mation
.
offset
,
maxmin
:
mation
.
maxmin
,
shade
:
mation
.
shade
,
end
:
function
(){
if
(
typeof
(
mation
.
callBack
)
==
"
function
"
)
{
mation
.
callBack
(
refreshCode
);
}
}
});
}
else
{
pageIndex
=
layer
.
open
({
id
:
mation
.
pageId
,
type
:
2
,
title
:
mation
.
title
,
content
:
mation
.
url
,
area
:
mation
.
area
,
offset
:
mation
.
offset
,
maxmin
:
mation
.
maxmin
,
shade
:
mation
.
shade
,
end
:
function
(){
if
(
typeof
(
mation
.
callBack
)
==
"
function
"
)
{
mation
.
callBack
(
refreshCode
);
}
}
});
}
if
(
mation
.
maxmin
){
layer
.
full
(
pageIndex
);
if
(
mation
.
zIndex
){
top
.
winui
.
window
.
full
(
pageIndex
);
}
else
{
layer
.
full
(
pageIndex
);
}
}
},
error
:
function
(
xml
)
{
...
...
skyeye-web/src/main/webapp/assets/lib/layui/lay/modules/jQuery.upload.min.js
浏览文件 @
97b18476
...
...
@@ -93,7 +93,11 @@ layui.define(["jquery"], function(exports) {
if
(
s
<
B
.
num
&&
p
[
s
])
{
var
ty
=
p
[
s
].
toLowerCase
().
split
(
"
.
"
).
splice
(
-
1
).
join
();
if
([
"
png
"
,
"
jpg
"
,
"
jpeg
"
,
"
gif
"
,
"
bmp
"
].
indexOf
(
ty
)
>=
0
)
{
h
=
a
(
"
<li class='item success'></li>
"
).
append
(
g
).
append
(
typeof
D
==
"
function
"
?
E
:
""
).
data
(
"
url
"
,
p
[
s
]).
attr
(
"
data-filename
"
,
c
(
p
[
s
])).
css
(
"
background-image
"
,
"
url('
"
+
fileBasePath
+
"
/assets/smpropic/
"
+
p
[
s
]
+
"
')
"
).
insertBefore
(
A
);
if
(
options
.
uploadType
==
'
1
'
){
h
=
a
(
"
<li class='item success'></li>
"
).
append
(
g
).
append
(
typeof
D
==
"
function
"
?
E
:
""
).
data
(
"
url
"
,
p
[
s
]).
attr
(
"
data-filename
"
,
c
(
p
[
s
])).
css
(
"
background-image
"
,
"
url('
"
+
fileBasePath
+
"
/assets/smpropic/
"
+
p
[
s
]
+
"
')
"
).
insertBefore
(
A
);
}
else
{
h
=
a
(
"
<li class='item success'></li>
"
).
append
(
g
).
append
(
typeof
D
==
"
function
"
?
E
:
""
).
data
(
"
url
"
,
p
[
s
]).
attr
(
"
data-filename
"
,
c
(
p
[
s
])).
css
(
"
background-image
"
,
"
url('
"
+
fileBasePath
+
p
[
s
]
+
"
')
"
).
insertBefore
(
A
);
}
h
.
attr
(
"
oldurl
"
,
p
[
s
]);
}
else
{
h
=
$
(
"
<li class=
\"
item success
\"
data-filename=
\"
YPCn1FUBacGJOuYKb6
\"
>
"
+
...
...
skyeye-web/src/main/webapp/js/syspersonal/editpassword.js
0 → 100644
浏览文件 @
97b18476
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
define
([
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
var
$
=
layui
.
$
,
form
=
layui
.
form
;
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
companyId
:
parent
.
companyId
,
departmentId
:
parent
.
departmentId
,
jobName
:
$
(
"
#jobName
"
).
val
(),
jobDesc
:
encodeURI
(
layedit
.
getContent
(
layContent
))
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
companyjob002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
return
false
;
});
//取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
(){
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
skyeye-web/src/main/webapp/js/syspersonal/syspersonal.js
浏览文件 @
97b18476
...
...
@@ -9,6 +9,23 @@ layui.config({
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
//修改密码
$
(
"
body
"
).
on
(
"
click
"
,
"
#updatePassword
"
,
function
(
e
){
_openNewWindows
({
url
:
"
../../tpl/syspersonal/editpassword.html
"
,
title
:
"
修改密码
"
,
pageId
:
"
editpassword
"
,
zIndex
:
true
,
area
:
[
'
700px
'
,
'
300px
'
],
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
top
.
winui
.
window
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
2000
});
}
else
if
(
refreshCode
==
'
-9999
'
)
{
top
.
winui
.
window
.
msg
(
"
操作失败
"
,
{
icon
:
2
,
time
:
2000
});
}
}});
});
exports
(
'
syspersonal
'
,
{});
});
skyeye-web/src/main/webapp/tpl/syspersonal/editpassword.html
0 → 100644
浏览文件 @
97b18476
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/font-awesome-4.7.0/css/font-awesome.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"width:600px;margin:0 auto;padding-top:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
新密码
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"password"
name=
"password"
win-verify=
"required"
placeholder=
"请输入新密码"
class=
"layui-input"
maxlength=
"50"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
确认密码
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"password1"
name=
"password1"
win-verify=
"required"
placeholder=
"请再次输入密码"
class=
"layui-input"
maxlength=
"50"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
>
保存
</button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/syspersonal/
'
}).
use
(
'
editpassword
'
);
</script>
</body>
</html>
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/syspersonal/syspersonal.html
浏览文件 @
97b18476
...
...
@@ -17,7 +17,7 @@
<i
class=
"fa fa-wechat"
></i>
<i
class=
"fa fa-qq"
></i>
</div>
<button
class=
"layui-btn layui-btn-fluid"
>
跟随
</button>
<button
type=
"button"
id=
"updatePassword"
class=
"layui-btn layui-btn-fluid"
>
修改密码
</button>
</div>
</div>
<p
class=
"layadmin-homepage-about"
>
关于我
</p>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录