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
c5b2b8d5
Commit
c5b2b8d5
authored
Jun 04, 2018
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除方法
parent
fe307344
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
22 deletions
+11
-22
src/main/java/com/ruoyi/RuoYiApplication.java
+1
-0
src/main/java/com/ruoyi/project/tool/swagger/TestController.java
+4
-4
src/main/resources/static/ruoyi/js/ry-table.js
+5
-17
src/main/resources/static/ruoyi/system/role/role.js
+1
-1
No files found.
src/main/java/com/ruoyi/RuoYiApplication.java
View file @
c5b2b8d5
...
...
@@ -17,6 +17,7 @@ public class RuoYiApplication
{
public
static
void
main
(
String
[]
args
)
{
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication
.
run
(
RuoYiApplication
.
class
,
args
);
System
.
out
.
println
(
"(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n"
+
" .-------. ____ __ \n"
+
...
...
src/main/java/com/ruoyi/project/tool/swagger/TestController.java
View file @
c5b2b8d5
...
...
@@ -38,17 +38,17 @@ public class TestController
@ApiOperation
(
"新增用户"
)
@PostMapping
(
"save"
)
public
Message
save
(
Test
T
est
)
public
Message
save
(
Test
t
est
)
{
return
testList
.
add
(
T
est
)
?
Message
.
success
()
:
Message
.
error
();
return
testList
.
add
(
t
est
)
?
Message
.
success
()
:
Message
.
error
();
}
@ApiOperation
(
"更新用户"
)
@ApiImplicitParam
(
name
=
"Test"
,
value
=
"单个用户信息"
,
dataType
=
"Test"
)
@PutMapping
(
"update"
)
public
Message
update
(
Test
T
est
)
public
Message
update
(
Test
t
est
)
{
return
testList
.
remove
(
Test
)
&&
testList
.
add
(
T
est
)
?
Message
.
success
()
:
Message
.
error
();
return
testList
.
remove
(
test
)
&&
testList
.
add
(
t
est
)
?
Message
.
success
()
:
Message
.
error
();
}
@ApiOperation
(
"删除用户"
)
...
...
src/main/resources/static/ruoyi/js/ry-table.js
View file @
c5b2b8d5
...
...
@@ -4,12 +4,12 @@
*/
(
function
(
$
)
{
$
.
extend
({
ryT
able
:
{
t
able
:
{
_option
:
{},
_params
:
{},
init
:
function
(
options
)
{
$
.
ryT
able
.
_option
=
options
;
$
.
ryTable
.
_params
=
options
.
queryParams
==
null
?
$
.
ryT
able
.
queryParams
:
options
.
queryParams
;
$
.
t
able
.
_option
=
options
;
$
.
table
.
_params
=
options
.
queryParams
==
null
?
$
.
t
able
.
queryParams
:
options
.
queryParams
;
$
(
'.bootstrap-table'
).
bootstrapTable
({
url
:
options
.
url
,
// 请求后台的URL(*)
contentType
:
"application/x-www-form-urlencoded"
,
// 编码类型
...
...
@@ -24,7 +24,7 @@
pageNumber
:
1
,
// 初始化加载第一页,默认第一页
pageSize
:
10
,
// 每页的记录行数(*)
pageList
:
[
10
,
25
,
50
],
// 可供选择的每页的行数(*)
queryParams
:
$
.
ryTable
.
_params
,
// 传递参数(*)
queryParams
:
$
.
table
.
_params
,
// 传递参数(*)
columns
:
options
.
columns
// 显示列信息(*)
});
},
...
...
@@ -40,20 +40,9 @@
},
refresh
:
function
()
{
$
(
".bootstrap-table"
).
bootstrapTable
(
'refresh'
,
{
url
:
$
.
ryT
able
.
_option
.
url
url
:
$
.
t
able
.
_option
.
url
});
}
}
});
})(
jQuery
);
function
default_params
(
params
)
{
return
{
// 传递参数查询参数
pageSize
:
params
.
limit
,
pageNum
:
params
.
offset
/
params
.
limit
+
1
,
searchValue
:
params
.
search
,
orderByColumn
:
params
.
sort
,
isAsc
:
params
.
order
};
}
\ No newline at end of file
src/main/resources/static/ruoyi/system/role/role.js
View file @
c5b2b8d5
...
...
@@ -50,7 +50,7 @@ $(function() {
}
}]
};
$
.
ryT
able
.
init
(
options
);
$
.
t
able
.
init
(
options
);
});
/*角色管理-搜索*/
...
...
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