From 91f2cd5b0f832091f654cce926585d2f05cad114 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <xltys1995>
Date: 星期四, 08 四月 2021 23:22:32 +0800
Subject: [PATCH] Merge branches 'dev' and 'master' of https://gitee.com/luxiaotao1123/xtywms into master

---
 src/main/webapp/static/js/cool.js |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/cool.js b/src/main/webapp/static/js/cool.js
index d817c09..d4828b5 100644
--- a/src/main/webapp/static/js/cool.js
+++ b/src/main/webapp/static/js/cool.js
@@ -150,4 +150,39 @@
             }
         }
     });
+}
+
+var tips2;
+// 鏄惁瀛樺湪鏍¢獙
+function exist(id, domain, dom) {
+    var param = {
+        key: id,
+        val: $('#'+ (dom ? dom : id)).val()
+    };
+    $.ajax({
+        url: baseUrl+"/"+domain+"/check/column/auth",
+        headers: {'token': localStorage.getItem('token')},
+        data: JSON.stringify(param),
+        dataType:'json',
+        contentType:'application/json;charset=UTF-8',
+        method: 'POST',
+        success: function (res) {
+            if (res.code === 200) {
+                tips2 = layer.tips(
+                    "<span style='color:red;'>涓嶅瓨鍦�</span>",
+                    '#'+(dom ? dom : id),
+                    {
+                        // tipsMore: true,
+                        tips: [3,'#fff'],
+                        time:0
+                        ,area: 'auto'
+                        ,maxWidth:500
+                    });
+            } else if (res.code === 403) {
+                top.location.href = baseUrl+"/";
+            } else if (res.code === 407) {
+                layer.close(tips2);
+            }
+        }
+    });
 }
\ No newline at end of file

--
Gitblit v1.9.1