diff --git a/WebRoot/html/formDesign/ayq/modules/formDesigner.js b/WebRoot/html/formDesign/ayq/modules/formDesigner.js index 899b077..7f5161f 100644 --- a/WebRoot/html/formDesign/ayq/modules/formDesigner.js +++ b/WebRoot/html/formDesign/ayq/modules/formDesigner.js @@ -4588,31 +4588,23 @@ layui.config({base: './ayq/modules/'}).define(["layer", 'flow', "laytpl", "eleme //注册预览事件 $('.previewForm').on('click', function () { window.localStorage.setItem('layui_form_json', JSON.stringify(options.data)); - layer.confirm('请选择你要预览页面的方式?', { - btn: ['弹窗', '新页面'] //按钮 - }, function () { - //iframe窗 - layer.open({ - type: 2, - title: '表单预览', - btn: ['关闭'], //可以无限个按钮 - btn1: function (index, layero) { - layer.close(index); - }, - closeBtn: 1, //不显示关闭按钮 - shade: [0], - area: ['100%', '100%'], - offset: 'auto', //右下角弹出 - anim: 2, - content: ['./preview.html', 'yes'], //iframe的url,no代表不显示滚动条 - end: function () { //此处用于演示 - //加载结束 - } - }); - }, function () { - window.open("./preview.html"); + layer.open({ + type: 2, + title: '表单预览', + btn: ['关闭'], //可以无限个按钮 + btn1: function (index, layero) { + layer.close(index); + }, + closeBtn: 1, //不显示关闭按钮 + shade: [0], + area: ['100%', '100%'], + offset: 'auto', //右下角弹出 + anim: 2, + content: ['./preview.html', 'yes'], //iframe的url,no代表不显示滚动条 + end: function () { //此处用于演示 + //加载结束 + } }); - }); $('body').append(staticField.importHtml); $('body').append(staticField.exportHtml); diff --git a/WebRoot/html/formDesign/ayq/modules/staticField.js b/WebRoot/html/formDesign/ayq/modules/staticField.js index d4e58d0..14ec06a 100644 --- a/WebRoot/html/formDesign/ayq/modules/staticField.js +++ b/WebRoot/html/formDesign/ayq/modules/staticField.js @@ -181,6 +181,9 @@ layui.define(['layer'], function (exports) { '