文档类型管理完善

This commit is contained in:
hogan
2019-01-26 01:10:53 +08:00
parent 96c2a66131
commit 054f85de36
8 changed files with 249 additions and 112 deletions

View File

@ -4,7 +4,7 @@
}
.layui-form-label {
width: 110px;
width: 80px;
font-weight:bold;
}
@ -24,7 +24,7 @@
.form-module-footer {
border: 0px solid red;
height: 60px;
height: 55px;
width: 100%;
position: absolute;
border-top: 5px solid #e8e8e8;
@ -33,6 +33,11 @@
bottom: 0px;
width: 100%;
text-align: right;
z-index:100;
padding:6px;
}
z-index: 100;
padding: 0px;
}
.form-module-footer button {
margin-right: 10px;
margin-top: 10px;
}

View File

@ -136,7 +136,8 @@
callback: reloadTable //执行完成回调函数
*/
create: function (options, formpage) {
$("#docContentEdit").load(options.url, options.paramters, function (responseText, textStatus, jqXHR) {
//docContentEdit
$("#" + options.elmid).load(options.url, options.paramters, function (responseText, textStatus, jqXHR) {
switch (textStatus) {
case "success":
freejs.dialogWindow.open($.extend({
@ -149,7 +150,7 @@
submit: {
url: "/Admin/Document/DocContentCreate",
}
}, options), form);
}, options), formpage);
break;
case "error":
freejs.showMessage({ title: "提示", msg: "页面加载失败", type: 2 });
@ -214,6 +215,39 @@
},
close: function () {
}
},
loadHtml: function (options) {
//options = {
// url: "/Admin/Document/DocType", paramters: {},loadIndex:1
//};
$("#page_content").load(options.url, options.paramters, function (responseText, textStatus, jqXHR) {
freejs.closeLoading(options.loadIndex);
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
setTimeout(function () {
if (options.loadIndex >= 0) freejs.closeLoading(options.loadIndex);
}, 5000);
}
};
window.freejs = new base();