中扬CRM客户关系管理系统
#
luxiaotao1123
2022-11-17 ae74afaa41ea017f94d6c9d7fbf3d15aaaaf59b2
#
2个文件已修改
19 ■■■■ 已修改文件
src/main/webapp/static/layui/lay/modules/formDesigner.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/planType/planType.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 () {
@@ -4694,7 +4696,7 @@
            });
            $('.generateHtml').on('click', function () {
            $('.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);
@@ -4862,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
src/main/webapp/views/planType/planType.html
@@ -122,7 +122,7 @@
    <div style="height: 90%; width: 100%;" id="formDesigner"></div>
    <hr>
    <div class="layui-form-item text-right" style="padding-right: 25px">
        <button class="layui-btn generateHtml" lay-filter="forEditSubmit" lay-submit>保存</button>
        <button class="layui-btn" lay-filter="forEditSubmit" lay-submit>保存</button>
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
    </div>
</script>
@@ -219,6 +219,8 @@
                            elem:'#formDesigner'
                        });
                        form.on('submit(forEditSubmit)', function () {
                            console.log(formDesIdx.getHtmlData());
                            return false;
                            let loadIndex = layer.load(2);
                            $.ajax({
                                url: baseUrl+"/planType/update/auth",