mirror of https://gitee.com/y_project/RuoYi.git
删除方法
parent
fe307344b7
commit
c5b2b8d5ca
|
@ -17,6 +17,7 @@ public class RuoYiApplication
|
||||||
{
|
{
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
|
// System.setProperty("spring.devtools.restart.enabled", "false");
|
||||||
SpringApplication.run(RuoYiApplication.class, args);
|
SpringApplication.run(RuoYiApplication.class, args);
|
||||||
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" +
|
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" +
|
||||||
" .-------. ____ __ \n" +
|
" .-------. ____ __ \n" +
|
||||||
|
|
|
@ -38,17 +38,17 @@ public class TestController
|
||||||
|
|
||||||
@ApiOperation("新增用户")
|
@ApiOperation("新增用户")
|
||||||
@PostMapping("save")
|
@PostMapping("save")
|
||||||
public Message save(Test Test)
|
public Message save(Test test)
|
||||||
{
|
{
|
||||||
return testList.add(Test) ? Message.success() : Message.error();
|
return testList.add(test) ? Message.success() : Message.error();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("更新用户")
|
@ApiOperation("更新用户")
|
||||||
@ApiImplicitParam(name = "Test", value = "单个用户信息", dataType = "Test")
|
@ApiImplicitParam(name = "Test", value = "单个用户信息", dataType = "Test")
|
||||||
@PutMapping("update")
|
@PutMapping("update")
|
||||||
public Message update(Test Test)
|
public Message update(Test test)
|
||||||
{
|
{
|
||||||
return testList.remove(Test) && testList.add(Test) ? Message.success() : Message.error();
|
return testList.remove(test) && testList.add(test) ? Message.success() : Message.error();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("删除用户")
|
@ApiOperation("删除用户")
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
*/
|
*/
|
||||||
(function($) {
|
(function($) {
|
||||||
$.extend({
|
$.extend({
|
||||||
ryTable: {
|
table: {
|
||||||
_option: {},
|
_option: {},
|
||||||
_params: {},
|
_params: {},
|
||||||
init: function(options) {
|
init: function(options) {
|
||||||
$.ryTable._option = options;
|
$.table._option = options;
|
||||||
$.ryTable._params = options.queryParams == null ? $.ryTable.queryParams : options.queryParams;
|
$.table._params = options.queryParams == null ? $.table.queryParams : options.queryParams;
|
||||||
$('.bootstrap-table').bootstrapTable({
|
$('.bootstrap-table').bootstrapTable({
|
||||||
url: options.url, // 请求后台的URL(*)
|
url: options.url, // 请求后台的URL(*)
|
||||||
contentType: "application/x-www-form-urlencoded", // 编码类型
|
contentType: "application/x-www-form-urlencoded", // 编码类型
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
pageNumber: 1, // 初始化加载第一页,默认第一页
|
pageNumber: 1, // 初始化加载第一页,默认第一页
|
||||||
pageSize: 10, // 每页的记录行数(*)
|
pageSize: 10, // 每页的记录行数(*)
|
||||||
pageList: [10, 25, 50], // 可供选择的每页的行数(*)
|
pageList: [10, 25, 50], // 可供选择的每页的行数(*)
|
||||||
queryParams: $.ryTable._params, // 传递参数(*)
|
queryParams: $.table._params, // 传递参数(*)
|
||||||
columns: options.columns // 显示列信息(*)
|
columns: options.columns // 显示列信息(*)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -40,20 +40,9 @@
|
||||||
},
|
},
|
||||||
refresh: function() {
|
refresh: function() {
|
||||||
$(".bootstrap-table").bootstrapTable('refresh', {
|
$(".bootstrap-table").bootstrapTable('refresh', {
|
||||||
url: $.ryTable._option.url
|
url: $.table._option.url
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
function default_params(params) {
|
|
||||||
return {
|
|
||||||
// 传递参数查询参数
|
|
||||||
pageSize: params.limit,
|
|
||||||
pageNum: params.offset / params.limit + 1,
|
|
||||||
searchValue: params.search,
|
|
||||||
orderByColumn: params.sort,
|
|
||||||
isAsc: params.order
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -50,7 +50,7 @@ $(function() {
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
$.ryTable.init(options);
|
$.table.init(options);
|
||||||
});
|
});
|
||||||
|
|
||||||
/*角色管理-搜索*/
|
/*角色管理-搜索*/
|
||||||
|
|
Loading…
Reference in New Issue