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.
71 lines
2.6 KiB
71 lines
2.6 KiB
{extend name="public/container"}
|
|
{block name="head_top"}
|
|
<style>
|
|
|
|
</style>
|
|
{/block}
|
|
{block name="content"}
|
|
<div class="layui-fluid">
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-col-md12">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-row layui-col-space15">
|
|
<div class="layui-col-md12">
|
|
<form class="layui-form layui-form-pane">
|
|
<div class="layui-form-item layui-form-text">
|
|
<label class="layui-form-label">备注:</label>
|
|
<div class="layui-input-block">
|
|
<textarea name="mark" autocomplete="off" class="layui-textarea" placeholder="请输入备注">{$feedback.mark}</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">状态:</label>
|
|
<div class="layui-input-block">
|
|
<input type="radio" name="status" value="1" title="已处理" {if ($feedback.status==1)}checked{/if}>
|
|
<input type="radio" name="status" value="0" title="未处理" {if ($feedback.status==0)}checked{/if}>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<button class="layui-btn layui-btn-fluid" lay-submit>立即提交</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="{__ADMIN_PATH}js/layuiList.js"></script>
|
|
{/block}
|
|
{block name="script"}
|
|
<script>
|
|
layList.form.render();
|
|
|
|
layList.form.on("submit", (e) => {
|
|
|
|
$.ajax({
|
|
url: "{:Url('save_mark')}",
|
|
method: "POST",
|
|
data: {
|
|
...e.field,
|
|
id: "{$feedback.id}"
|
|
},
|
|
dataType: "json",
|
|
success(e) {
|
|
layList.msg(e.msg, () => {
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
parent.layer.close(index);
|
|
parent.window.location.reload();
|
|
});
|
|
},
|
|
error(e) {
|
|
layList.msg(e.msg);
|
|
}
|
|
});
|
|
|
|
return false;
|
|
});
|
|
</script>
|
|
{/block} |