From 516ba4b650a58c367232273124a1ac966f35b5ca Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 23 十一月 2021 10:42:45 +0800
Subject: [PATCH] 专家资料查询

---
 zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml b/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml
index 496c7c0..23bd36b 100644
--- a/zhengcaioa/zhengcaioa/Views/Zhuanjiahuida/Index.cshtml
+++ b/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) {

--
Gitblit v1.9.1