This commit is contained in:
yubao
2017-12-18 22:37:51 +08:00
parent 2716e2567b
commit b96a5630f9
13 changed files with 494 additions and 34 deletions

View File

@@ -29,7 +29,7 @@ layui.config({
$.extend(config, options);
}
table.reload('mainList', {
url: '/<%=ModuleName%>Manager/Load',
url: '/<%=ModuleName%>s/Load',
where: config
});
}
@@ -91,9 +91,9 @@ layui.config({
},
end: mainList
});
var url = "/<%=ModuleName%>Manager/Add";
var url = "/<%=ModuleName%>s/Add";
if (update) {
url = "/<%=ModuleName%>Manager/Update";
url = "/<%=ModuleName%>s/Update";
}
//提交数据
form.on('submit(formSubmit)',
@@ -135,7 +135,7 @@ layui.config({
btnDel: function () { //批量删除
var checkStatus = table.checkStatus('mainList')
, data = checkStatus.data;
openauth.del("/<%=ModuleName%>Manager/Delete",
openauth.del("/<%=ModuleName%>s/Delete",
data.map(function (e) { return e.Id; }),
mainList);
}