中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-17 ae74afaa41ea017f94d6c9d7fbf3d15aaaaf59b2
src/main/webapp/static/layui/lay/modules/formDesigner.js
@@ -78,6 +78,8 @@
                        return options || null;
                    }, getData: function () {
                        return options.data || null;
                    }, getHtmlData: function () {
                        return that.getHtmlData() || null;
                    }, geticeEditorObjects: function () {
                        return iceEditorObjects || null;
                    },getImages:function () {
@@ -4671,6 +4673,7 @@
                var _html = $('<div style="height:100%;width:100%;"></div>');
                var _script = $('<div style="height:100%;width:100%;"></div>');;
                that.generateHtml(options.data, _html,_script);
                console.log(_html.html());
                var _htmlCode = staticField.htmlCode.format(_html.html(),_script.html());
                document.getElementById('generate-code-view').value = style_html(_htmlCode, 4, ' ', 400);
                layer.open({
@@ -4692,6 +4695,15 @@
                });
            });
            $('.generateHtmlData').on('click', function () {
                var _html = $('<div style="height:100%;width:100%;"></div>');
                var _script = $('<div style="height:100%;width:100%;"></div>');
                that.generateHtml(options.data, _html,_script);
                console.log(_html.html());
                return _html.html();
            });
            that.renderForm();
        }
@@ -4852,6 +4864,17 @@
            return json;
        }
        //获取表单数据回调
        Class.prototype.getHtmlData = function () {
            var that = this,
                options = that.config;
            var _html = $('<div style="height:100%;width:100%;"></div>');
            var _script = $('<div style="height:100%;width:100%;"></div>');
            that.generateHtml(options.data, _html,_script);
            return _html.html();
        }
        //递归改变禁用属性
        Class.prototype.findItemToDisable = function (jsondata) {
            var that = this