完成用户管理,layui弹出有问题

This commit is contained in:
yubaolee
2017-09-06 17:32:35 +08:00
parent 184e2f6bb7
commit 068e6f600f
21 changed files with 18622 additions and 125 deletions

View File

@@ -68,8 +68,13 @@ layui.define(['jquery', 'layer'], function (exports) {
//构造器
var Class = function (options) {
var that = this;
that.config = $.extend({}, that.config, options);
var that = this;
that.config = $.extend({}, that.config, options);
//上级机构选择框
$(that.config.nameDOM).on("click", function () {
that.render();
});
};
//默认配置
Class.prototype.config = {
@@ -141,7 +146,7 @@ layui.define(['jquery', 'layer'], function (exports) {
}
exports('droptree', function (url, name, id) {
var options = {
var options = {
nameDOM: name, //显示的文本框ID"#catetoryName"
idDOM: id, //隐藏的文本框,如:"#categoryId"
url: url