56 lines
1.7 KiB
Plaintext
56 lines
1.7 KiB
Plaintext
@model WX.CRM.Model.Entity.BAS_PARAMETER
|
|
@using WX.CRM.WebHelper;
|
|
|
|
@{
|
|
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;">
|
|
关键字:
|
|
@Html.HiddenFor(m => m.PARAKEY)
|
|
</td>
|
|
<td style="width:310px">
|
|
@Html.TextAreaFor(m => m.PARAVALUE,50,60,null)
|
|
</td>
|
|
<td width="120px" style="color:red">用半角;分隔</td>
|
|
</tr>
|
|
</table>
|
|
}
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#btnSave").click(function () {
|
|
if ($("#CreateForm").valid()) {
|
|
$.r_ajax({
|
|
url: "/WeiXin/Message/Keyword",
|
|
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> |