73 lines
2.2 KiB
Plaintext
73 lines
2.2 KiB
Plaintext
@model WX.CRM.Model.Entity.BAS_FEEDBACK
|
|
@using WX.CRM.WebHelper;
|
|
|
|
@{
|
|
ViewBag.Title = "意见反馈";
|
|
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
|
|
|
}
|
|
|
|
<script type="text/javascript" charset="utf-8" src="/Scripts/ueditor/ueditor.config.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="/Scripts/ueditor/ueditor.all.min.js"> </script>
|
|
<script type="text/javascript" charset="utf-8" src="/Scripts/ueditor/lang/zh-cn/zh-cn.js"></script>
|
|
|
|
|
|
<div class="mvctool bgb">
|
|
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
|
|
</div>
|
|
|
|
@using (Html.BeginForm("Reply", "Feedback", null, FormMethod.Post, new { Id = "CreateForm" }))
|
|
{
|
|
@Html.ValidationSummary(true)
|
|
<table class="fromEditTable ">
|
|
<tr>
|
|
<td style="width:80px;">
|
|
内容:
|
|
</td>
|
|
<td colspan="2" style="width:430px">
|
|
|
|
@Model.CONTENT
|
|
@Html.HiddenFor(m => m.PKID)
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:80px;">
|
|
回复:
|
|
</td>
|
|
<td colspan="2" style="width:430px">
|
|
@Html.TextAreaFor(m => m.REPLY, new { rows = "15", cols = "80" })
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/Base/Feedback/Reply",
|
|
type: "Post",
|
|
data: $("#CreateForm").serialize(),
|
|
dataType: "json",
|
|
loading: true,
|
|
success: function (data) {
|
|
if (data.type == 1) {
|
|
window.parent.frameReturnByMes(data.message);
|
|
window.parent.frameReturnByReload(true);
|
|
window.parent.frameReturnByClose();
|
|
}
|
|
else {
|
|
$.messager.alert("警告", data.message, "error");
|
|
}
|
|
}
|
|
});
|
|
}
|
|
return false;
|
|
});
|
|
});
|
|
|
|
|
|
|
|
</script> |