封装后台js框架,编写文档模块的列表、新增修改

This commit is contained in:
hogan
2019-01-22 18:01:17 +08:00
parent 57f8ddc5e7
commit e9890b771a
35 changed files with 331 additions and 261 deletions

View File

@ -31,14 +31,29 @@
var path_json = $(this).attr("datajson");
var index = freejs.showLoading({ msg: "数据加载中......" });
$("#page_content").load(path_item, $.parseJSON(path_json), function () {
//初始化绑定页面的时间,例如时间控件
$("#page_content").load(path_item, $.parseJSON(path_json), function (responseText, textStatus, jqXHR) {
freejs.closeLoading(index);
index = -1;
layui.use('form', function () {
var form = layui.form;
switch (textStatus) {
case "success":
//初始化绑定页面的时间,例如时间控件
index = -1;
layui.use('form', function () {
var form = layui.form;
});
});
break;
//case "notmodified":
//case "error":
//case "timeout":
//case "parsererror":
//spf.loadHtml(mcid, "/Service/Error/", function (jElement, responseText) {
// loadResultShow(jElement, responseText, spTitle, spHead);
//});
//break;
case "error":
$("#page_content").html(responseText);
break;
}
});
//如果出现长时间未关闭定时关闭loading