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
553358aa
Commit
553358aa
authored
Nov 25, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增提交静默更新表格方法
parent
650f89ac
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
45 additions
and
11 deletions
+45
-11
bin/clean.bat
+15
-0
bin/package.bat
+1
-0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+22
-4
ruoyi-admin/src/main/resources/templates/system/dept/dept.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/menu/menu.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/role/add.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/role/edit.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/role/rule.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/user/add.html
+1
-1
ruoyi-admin/src/main/resources/templates/system/user/edit.html
+1
-1
No files found.
bin/clean.bat
0 → 100644
View file @
553358aa
@echo off
echo.
echo [Ϣ] ·
echo.
pause
echo.
cd %~dp0
cd..
call mvn clean
cd bin
pause
\ No newline at end of file
package.bat
→
bin/
package.bat
View file @
553358aa
...
...
@@ -6,6 +6,7 @@ pause
echo.
cd %~dp0
cd..
call mvn clean package -Dmaven.test.skip=true
...
...
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
553358aa
...
...
@@ -99,7 +99,6 @@
// 刷新表格
refresh
:
function
()
{
$
(
"#bootstrap-table"
).
bootstrapTable
(
'refresh'
,
{
url
:
$
.
table
.
_option
.
url
,
silent
:
true
});
},
...
...
@@ -135,7 +134,7 @@
$
.
table
.
_option
=
options
;
_striped
=
$
.
common
.
isEmpty
(
options
.
striped
)
?
false
:
options
.
striped
;
_expandColumn
=
$
.
common
.
isEmpty
(
options
.
expandColumn
)
?
'1'
:
options
.
expandColumn
;
var
treeTable
=
$
(
'#bootstrap-table'
).
bootstrapTreeTable
({
var
treeTable
=
$
(
'#bootstrap-t
ree-t
able'
).
bootstrapTreeTable
({
code
:
options
.
code
,
// 用于设置父子关系
parentCode
:
options
.
parentCode
,
// 用于设置父子关系
type
:
'get'
,
// 请求方式(*)
...
...
@@ -528,7 +527,7 @@
dataType
:
"json"
,
data
:
data
,
success
:
function
(
result
)
{
$
.
operate
.
s
aveSuccess
(
result
);
$
.
operate
.
s
uccessCallback
(
result
);
}
};
$
.
ajax
(
config
)
...
...
@@ -543,7 +542,7 @@
}
$
.
modal
.
closeLoading
();
},
//
保存结果提示msg
//
成功结果提示msg(父窗体全局更新)
saveSuccess
:
function
(
result
)
{
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
$
.
modal
.
msgReload
(
"保存成功,正在刷新数据请稍后……"
,
modal_status
.
SUCCESS
);
...
...
@@ -551,6 +550,25 @@
$
.
modal
.
alertError
(
result
.
msg
);
}
$
.
modal
.
closeLoading
();
},
// 成功回调执行事件(父窗体静默更新)
successCallback
:
function
(
result
)
{
if
(
result
.
code
==
web_status
.
SUCCESS
)
{
if
(
window
.
parent
.
$
(
"#bootstrap-table"
).
length
>
0
)
{
$
.
modal
.
close
();
window
.
parent
.
$
.
modal
.
msgSuccess
(
result
.
msg
);
window
.
parent
.
$
.
table
.
refresh
();
}
else
if
(
window
.
parent
.
$
(
"#bootstrap-tree-table"
).
length
>
0
)
{
$
.
modal
.
close
();
window
.
parent
.
$
.
modal
.
msgSuccess
(
result
.
msg
);
window
.
parent
.
$
.
treeTable
.
refresh
();
}
else
{
$
.
modal
.
msgReload
(
"保存成功,正在刷新数据请稍后……"
,
modal_status
.
SUCCESS
);
}
}
else
{
$
.
modal
.
alertError
(
result
.
msg
);
}
$
.
modal
.
closeLoading
();
}
},
// 校验封装处理
...
...
ruoyi-admin/src/main/resources/templates/system/dept/dept.html
View file @
553358aa
...
...
@@ -40,7 +40,7 @@
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
data-mobile-responsive=
"true"
></table>
<table
id=
"bootstrap-t
ree-t
able"
data-mobile-responsive=
"true"
></table>
</div>
</div>
</div>
...
...
ruoyi-admin/src/main/resources/templates/system/menu/menu.html
View file @
553358aa
...
...
@@ -40,7 +40,7 @@
</a>
</div>
<div
class=
"col-sm-12 select-table table-striped"
>
<table
id=
"bootstrap-table"
data-mobile-responsive=
"true"
></table>
<table
id=
"bootstrap-t
ree-t
able"
data-mobile-responsive=
"true"
></table>
</div>
</div>
</div>
...
...
ruoyi-admin/src/main/resources/templates/system/role/add.html
View file @
553358aa
...
...
@@ -143,7 +143,7 @@
$
.
modal
.
alertError
(
"系统错误"
);
},
success
:
function
(
data
)
{
$
.
operate
.
s
aveSuccess
(
data
);
$
.
operate
.
s
uccessCallback
(
data
);
}
});
}
...
...
ruoyi-admin/src/main/resources/templates/system/role/edit.html
View file @
553358aa
...
...
@@ -146,7 +146,7 @@
$
.
modal
.
alertError
(
"系统错误"
);
},
success
:
function
(
data
)
{
$
.
operate
.
s
aveSuccess
(
data
);
$
.
operate
.
s
uccessCallback
(
data
);
}
});
}
...
...
ruoyi-admin/src/main/resources/templates/system/role/rule.html
View file @
553358aa
...
...
@@ -80,7 +80,7 @@
$
.
modal
.
alertError
(
"系统错误"
);
},
success
:
function
(
data
)
{
$
.
operate
.
s
aveSuccess
(
data
);
$
.
operate
.
s
uccessCallback
(
data
);
}
});
}
...
...
ruoyi-admin/src/main/resources/templates/system/user/add.html
View file @
553358aa
...
...
@@ -203,7 +203,7 @@
$
.
modal
.
alertError
(
"系统错误"
);
},
success
:
function
(
data
)
{
$
.
operate
.
s
aveSuccess
(
data
);
$
.
operate
.
s
uccessCallback
(
data
);
}
});
}
...
...
ruoyi-admin/src/main/resources/templates/system/user/edit.html
View file @
553358aa
...
...
@@ -177,7 +177,7 @@
$
.
modal
.
alertError
(
"系统错误"
);
},
success
:
function
(
data
)
{
$
.
operate
.
s
aveSuccess
(
data
);
$
.
operate
.
s
uccessCallback
(
data
);
}
});
}
...
...
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