glhcp/server/app/admin/view/content/demand_report/add.html

57 lines
1.8 KiB
HTML
Raw Normal View History

2023-08-18 02:55:12 +00:00
{layout name="layout2" /}
<style>
.layui-form-item .layui-input-inline { width: 340px; }
</style>
<div class="layui-card layui-form" style="box-shadow:none;">
<div class="layui-card-body">
<div class="layui-form-item">
<label for="title" class="layui-form-label"><span style="color:red;">*</span>需求名称:</label>
<div class="layui-input-inline">
<input type="text" name="name" id="title" lay-verType="tips" lay-verify="required" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label for="content" class="layui-form-label">帮助内容:</label>
<div class="layui-input-inline">
<textarea name="content" id="content" lay-verify="content"></textarea>
</div>
</div>
<div class="layui-form-item layui-hide">
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
</div>
</div>
</div>
<script>
layui.config({
base: "/static/lib/"
}).extend({
likeedit: "likeedit/likeedit"
}).use(["likeedit", "form"], function(){
var form = layui.form;
var likeedit = layui.likeedit;
var content = likeedit.build("content", {
uploadImage: {
url: '{:url("file/lists")}?type=10'
}
});
form.verify({
content: function() {
likeedit.sync(content)
}
});
like.delUpload();
$(document).on("click", ".add-upload-image", function () {
like.imageUpload({
limit: 1,
field: "image",
that: $(this)
});
});
})
</script>