From e649be7905be7e74f6e09d8d74a7bd7bcd3923b7 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 27 七月 2021 16:17:35 +0800
Subject: [PATCH] 修改

---
 zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml |   71 +++++++++++++++++++++++++++++++++++
 1 files changed, 70 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml
index 3f84bd5..18d1827 100644
--- a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml
@@ -12,7 +12,7 @@
 
         
         loseherght = 60;
-        //gridConfig = { multiselect: true, selectcol: "Id" };
+        gridConfig = { multiselect: true, selectcol: "Id" };
         dataCol = [
             { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
             { label: '鎰忓悜鏃堕棿', name: 'YixiangtimeName', labtype: 'txt', hidden: false, width: 100 },
@@ -56,7 +56,76 @@
 
 
 
+        var _pageDelete = function () {
+            var duanxin = GetGridSelect();
+            var baifangid = "";
+            if (duanxin != '') {
+                for (var i = 0; i < duanxin.length; i++) {
+                    baifangid += duanxin[i] + ','
+                }
+                baifangid = baifangid.substring(0, baifangid.length - 1);
+            } else {
+                toastr.error("璇烽�夋嫨鎰忓悜璁㈠崟");
+                return;
+            }
 
+            // 1銆佹墦寮�寮瑰嚭灞�
+            var index = layer.open({
+                type: 1,銆�銆�//鍩烘湰灞傜被鍨�
+                icon: 0, //鍥炬爣
+                content: '纭畾瑕佸垹闄ゆ剰鍚戣鍗曞悧锛�',   //鍐呭
+                shade: 0.3,  //閬僵,濡傛灉鎯冲畾涔夊埆鐨勯鑹�,鍙互shade:[0.5,'#fff']
+                shadeClose: 1,   //鏄惁鐐瑰嚮閬僵鍏抽棴
+                skin: 'demoClass',    //鏍峰紡绫诲悕
+                moveType: 1, //鎷栨嫿椋庢牸,榛樿涓�0(浼氭湁涓繃搴︾殑閫忔槑妗�)
+                btn: ['纭畾', '鍙栨秷'],    //鎸夐挳
+                btn1: function () { //鎸夐挳涓�鐨勫洖璋�
+
+                    layer.close(index);
+
+                    $.ajax({
+                        type: "POST",
+                        url: "/IntentionCustomer/UnBind?id=" + baifangid,
+                        dataType: "json",
+                        global: false,
+                        data: "",
+                        success: function (data) {
+
+                            if (data.Result) {
+                                toastr.success("鍒犻櫎鎴愬姛");
+                                jQuery('#jqGrid').jqGrid().trigger('reloadGrid');
+                            } else {
+                                toastr.error("鍒犻櫎澶辫触" + data.Message);
+                            }
+                        },
+                        error: function () {
+
+
+                            toastr.error("鍒犻櫎澶辫触");
+                        }
+                    });
+                },
+                //                btn2:function(){    //鎸夐挳浜岀殑鍥炶皟
+                //
+                //                }
+            });
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 
+
+        }
 
 
 

--
Gitblit v1.9.1