username@email.com
2021-11-23 516ba4b650a58c367232273124a1ac966f35b5ca
zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml
@@ -26,6 +26,12 @@
                label: '回答', name: 'Anwser', labtype: 'txt', hidden: false, width: 300
            },
            {
                label: '操作', name: 'caozuo', labtype: 'txt', hidden: false, width: 50,
                formatter: function (cellvalue, options, rowObject) {
                    return "<a onclick=\"OpenWindow('修改','98%','100%', '/Zhuanjiahuida/Edit?id=" + rowObject.Id + "')\"  >回答</a>&nbsp;&nbsp;&nbsp;<a onclick=\"_pagedel('" + rowObject.Id + "')\"  >删除</a>";
                }
            },
            
        ];
        dataUrl = "/Zhuanjiahuida/GetList";
@@ -48,8 +54,42 @@
        //    OpenWindow("新增基本工资", "98%", "100%", "/Zhuanjiahuida/Edit/");
        //}
        var _pagedel = function (id) {
            if (confirm('是否删除记录')) {
                $.ajax({
                    type: "GET",
                    url: "/Zhuanjiahuida/Nullify?Id=" + id,
                    dataType: "json",
                    global: false,
                    data: '',
                    success: function (data) {
                        if (data.Result) {
                            layer.msg('删除成功', { icon: 6 });
                            window._reloadPageData();
                        }
                        else {
                            // toastr.error("");
                            layer.msg('删除失败', { icon: 5 });
                        }
                    },
                    error: function () {
                        if ($.isNumber(imgLoad)) {
                            layer.close(imgLoad);
                        }
                        //toastr.error("保存失败");
                        layer.msg('保存失败', { icon: 5 });
                    }
                });
            }
        }
        var _afterSave = function (result) {
            if (result) {