|
@@ -123,27 +123,6 @@
|
|
|
});
|
|
|
this.getData();
|
|
|
},
|
|
|
- add: function (obj) {
|
|
|
- App.openLayer({
|
|
|
- title: "新增角色",
|
|
|
- content: App.getUrl("/Rolemeun/add"),
|
|
|
- height: "600",
|
|
|
- width: "800"
|
|
|
- });
|
|
|
- },
|
|
|
- edit: function (obj) {
|
|
|
- window.location.href = App.getUrl("register/editSbdw?id=" + obj.data.id);
|
|
|
- },
|
|
|
- edit2: function (obj) {
|
|
|
- window.location.href = App.getUrl("register/editCkSbdw?id=" + obj.data.id);
|
|
|
- },
|
|
|
- del: function (obj) {
|
|
|
- App.msg.confirm("确定删除该角色吗?", function () {
|
|
|
- App.postJson("/api/Rolemeun/del", { id: obj.data.id }, function (res) {
|
|
|
- if (res.success) methods.reload();
|
|
|
- });
|
|
|
- });
|
|
|
- },
|
|
|
loadPage: function (totalCount) {
|
|
|
var self = this;
|
|
|
layui.laypage.render({
|