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
f85b5202
Commit
f85b5202
authored
May 15, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持响应完成后的回调函数
parent
f96113d5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
16 deletions
+25
-16
README.md
+1
-1
ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
+5
-3
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+19
-7
ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html
+0
-5
No files found.
README.md
View file @
f85b5202
...
...
@@ -4,7 +4,7 @@
性别男,若依是给还没有出生女儿取的名字(寓意:你若不离不弃,我必生死相依)
若依
基于hplus和inspinia两套后台系统模板开发
。有需要可自行到群内下载。
若依
参考后台模板
。有需要可自行到群内下载。
> 如需单应用,请移步 [RuoYi-fast](https://gitee.com/y_project/RuoYi-fast) `(保持同步更新)`,如需Oracle版本,请移步 [RuoYi-oracle](http://doc.ruoyi.vip/#/standard/xmkz) `(不定时更新)`
...
...
ruoyi-admin/src/main/resources/static/ruoyi/js/common.js
View file @
f85b5202
...
...
@@ -238,10 +238,12 @@ var log = {
$
.
ajaxSetup
({
complete
:
function
(
XMLHttpRequest
,
textStatus
)
{
if
(
textStatus
==
'timeout'
)
{
$
.
modal
.
alertWarning
(
"服务器超时,请稍后再试!"
);
$
.
modal
.
alertWarning
(
"服务器超时,请稍后再试!"
);
$
.
modal
.
enable
();
$
.
modal
.
closeLoading
();
}
else
if
(
textStatus
==
"parsererror"
)
{
$
.
modal
.
alertWarning
(
"服务器错误,请联系管理员!"
);
}
else
if
(
textStatus
==
"parsererror"
||
textStatus
==
"error"
)
{
$
.
modal
.
alertWarning
(
"服务器错误,请联系管理员!"
);
$
.
modal
.
enable
();
$
.
modal
.
closeLoading
();
}
}
...
...
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
f85b5202
...
...
@@ -688,7 +688,7 @@
// 操作封装处理
operate
:
{
// 提交数据
submit
:
function
(
url
,
type
,
dataType
,
data
)
{
submit
:
function
(
url
,
type
,
dataType
,
data
,
callback
)
{
var
config
=
{
url
:
url
,
type
:
type
,
...
...
@@ -698,18 +698,21 @@
$
.
modal
.
loading
(
"正在处理中,请稍后..."
);
},
success
:
function
(
result
)
{
if
(
typeof
callback
==
"function"
)
{
callback
(
result
);
}
$
.
operate
.
ajaxSuccess
(
result
);
}
};
$
.
ajax
(
config
)
},
// post请求传输
post
:
function
(
url
,
data
)
{
$
.
operate
.
submit
(
url
,
"post"
,
"json"
,
data
);
post
:
function
(
url
,
data
,
callback
)
{
$
.
operate
.
submit
(
url
,
"post"
,
"json"
,
data
,
callback
);
},
// get请求传输
get
:
function
(
url
)
{
$
.
operate
.
submit
(
url
,
"get"
,
"json"
,
""
);
$
.
operate
.
submit
(
url
,
"get"
,
"json"
,
""
,
callback
);
},
// 详细信息
detail
:
function
(
id
,
width
,
height
)
{
...
...
@@ -834,7 +837,7 @@
return
url
;
},
// 保存信息 刷新表格
save
:
function
(
url
,
data
)
{
save
:
function
(
url
,
data
,
callback
)
{
var
config
=
{
url
:
url
,
type
:
"post"
,
...
...
@@ -845,13 +848,16 @@
$
.
modal
.
disable
();
},
success
:
function
(
result
)
{
if
(
typeof
callback
==
"function"
)
{
callback
(
result
);
}
$
.
operate
.
successCallback
(
result
);
}
};
$
.
ajax
(
config
)
},
// 保存信息 弹出提示框
saveModal
:
function
(
url
,
data
)
{
saveModal
:
function
(
url
,
data
,
callback
)
{
var
config
=
{
url
:
url
,
type
:
"post"
,
...
...
@@ -861,6 +867,9 @@
$
.
modal
.
loading
(
"正在处理中,请稍后..."
);
},
success
:
function
(
result
)
{
if
(
typeof
callback
==
"function"
)
{
callback
(
result
);
}
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
$
.
modal
.
alertSuccess
(
result
.
msg
)
}
else
if
(
result
.
code
==
web_status
.
WARNING
)
{
...
...
@@ -874,7 +883,7 @@
$
.
ajax
(
config
)
},
// 保存选项卡信息
saveTab
:
function
(
url
,
data
)
{
saveTab
:
function
(
url
,
data
,
callback
)
{
var
config
=
{
url
:
url
,
type
:
"post"
,
...
...
@@ -884,6 +893,9 @@
$
.
modal
.
loading
(
"正在处理中,请稍后..."
);
},
success
:
function
(
result
)
{
if
(
typeof
callback
==
"function"
)
{
callback
(
result
);
}
$
.
operate
.
successTabCallback
(
result
);
}
};
...
...
ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html
View file @
f85b5202
...
...
@@ -2,10 +2,6 @@
<html
lang=
"zh"
xmlns:th=
"http://www.thymeleaf.org"
>
<head>
<th:block
th:include=
"include :: header('用户个人信息')"
/>
<style
type=
"text/css"
>
</style>
</head>
<body
class=
"gray-bg"
style=
"font: 14px Helvetica Neue, Helvetica, PingFang SC, 微软雅黑, Tahoma, Arial, sans-serif !important;"
>
...
...
@@ -220,7 +216,6 @@
}
}
/*用户管理-修改密码*/
$
(
"#form-user-resetPwd"
).
validate
({
onkeyup
:
false
,
...
...
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