You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.0 KiB
53 lines
2.0 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title></title>
|
|
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
|
|
</head>
|
|
|
|
<body>
|
|
<form class="layui-form">
|
|
<div class="mainBox">
|
|
<div class="main-container">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label" style="width: 100px;">表单模板名称:</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" name="templateName" lay-verify="required" autocomplete="off"
|
|
placeholder="请输入表单模板名称" class="layui-input" style="width: 92%;">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="bottom">
|
|
<div class="button-container">
|
|
<button type="submit" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit=""
|
|
lay-filter="template-save" id="template-save">
|
|
设计表单模板<i class="layui-icon layui-icon-right"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script src="../../component/layui/layui.js"></script>
|
|
<script src="../../component/pear/pear.js"></script>
|
|
<script src="../../component/other/js/base64.js"></script>
|
|
<script>
|
|
layui.use(['form', 'jquery'], function () {
|
|
let form = layui.form;
|
|
let $ = layui.jquery;
|
|
|
|
|
|
form.on('submit(template-save)', function (data) {
|
|
let templateName = BASE64.encode(data.field.templateName);
|
|
parent.layer.close(parent.layer.getFrameIndex(window.name));
|
|
parent.formTemplateMaintainAdd(templateName);
|
|
return false;
|
|
});
|
|
})
|
|
</script>
|
|
<script>
|
|
</script>
|
|
</body>
|
|
|
|
</html> |