ComplianceServer/oldcode/WEB/Views/Ww/HGQW/Keyword.cshtml

55 lines
1.7 KiB
Plaintext

@using WX.CRM.WebHelper;
@model WX.CRM.Model.crmModel.Hg_KeyWordAllModel
@{
ViewBag.Title = "企业微信合规关键字";
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<div class="mvctool bgb">
@Html.ToolButtonPlain("btnSave", "icon-save", "保存", false, "")
</div>
@using (Html.BeginForm("Keyword", "Message", null, FormMethod.Post, new { Id = "CreateForm" }))
{
@Html.ValidationSummary(true)
<table class="fromEditTable ">
<tr>
<td style="width:120px;">
关键字:
</td>
<td style="width:310px">
@Html.TextAreaFor(m => m.keywords, 30,60,new {style="height:400px" })
</td>
<td width="120px" style="color:red">用半角;分隔</td>
</tr>
</table>
}
<script type="text/javascript">
$(function () {
$("#btnSave").click(function () {
if ($("#CreateForm").valid()) {
$.r_ajax({
url: "/Ww/HGQW/SaveKeyword",
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>