From c006303854f0e689e2aeedeea389cc91657d0503 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期六, 19 十一月 2022 09:13:58 +0800
Subject: [PATCH] #
---
src/main/webapp/static/layui/lay/modules/formDesigner.js | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/static/layui/lay/modules/formDesigner.js b/src/main/webapp/static/layui/lay/modules/formDesigner.js
index 37b4292..530fe04 100644
--- a/src/main/webapp/static/layui/lay/modules/formDesigner.js
+++ b/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
--
Gitblit v1.9.1