代码拉取完成,页面将自动刷新
同步操作将从 谁家没一个小强/ayq-layui-form-designer 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=0,maximum-scale=0,user-scalable=yes,shrink-to-fit=no">
<title>layout 后台大布局 - Layui</title>
<link rel="stylesheet" href="./layui/css/layui.css" />
<link rel="stylesheet" href="./ayq/modules/formDesigner.css" />
<link rel="stylesheet" href="./ayq/modules/cron/cron.css" />
<style>
/* 图片上传 */
.uploader-list {
margin-left: -15px;
}
.uploader-list .info {
position: relative;
margin-top: -25px;
background-color: black;
color: white;
filter: alpha(Opacity=80);
-moz-opacity: 0.5;
opacity: 0.5;
width: 100px;
height: 25px;
text-align: center;
display: none;
}
.uploader-list .handle {
position: relative;
background-color: black;
color: white;
filter: alpha(Opacity=80);
-moz-opacity: 0.5;
opacity: 0.5;
width: 100px;
text-align: right;
height: 18px;
margin-bottom: -18px;
display: none;
}
.uploader-list .handle i {
margin-right: 5px;
}
.uploader-list .handle i:hover {
cursor: pointer;
}
.uploader-list .file-iteme {
margin: 12px 0 0 15px;
padding: 1px;
float: left;
}
</style>
</head>
<body >
<div >
<div id="testdemo" style="margin: 20px 20px;padding: 20px 20px;border: 1px solid #009688;">
</div>
</div>
<script type="text/javascript" src="./layui/layui.js"></script>
<script type="text/javascript" src="./ayq/modules/numberInput/numberInput.js"></script>
<script type="text/javascript" src="./ayq/modules/icon/iconPicker.js"></script>
<script type="text/javascript" src="./ayq/modules/cron/cron.js"></script>
<script type="text/javascript" src="./ayq/modules/iceEditor/iceEditor.js"></script>
<script type="text/javascript" src="./ayq/js/config.js?v=100"></script>
<script>
var demojs = [];
//JavaScript代码区域
layui.config(
{base: './ayq/modules/'}).use(['formPreview', 'form','layer'], function () {
var layer = layui.layer;
var $ = layui.jquery;
var index = layui.index;
var formPreview = layui.formPreview;
var form = layui.form;
var render;
if (window.localStorage.getItem('layui_form_json') !== undefined) {
demojs = JSON.parse(window.localStorage.getItem('layui_form_json'));
render = formPreview.render({
elem: '#testdemo',
data: demojs
});
}
//监听提交
form.on('submit(demo1)', function(data){
var iceEditorObjects = render.geticeEditorObjects();
var json = data.field;
for(let key in iceEditorObjects){
json[key] = iceEditorObjects[key].getHTML();
}
layer.msg( JSON.stringify(json), {icon: 6});
/*$.ajax({
url:"/activiti-manager/addActivitiManagera",
type:"POST",
data:temp,
contentType:"application/json",
dataType: "json",
success:function(res){
alert(res.message);
}
});*/
return false;
});
});
function getSubmitData(){
var data=$('#testdemo').form[0].serialize();
console.log(data);
return data;
}
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。