From 9247dcffd28f79e631c6bd7e402b7983d2de69e8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 20 八月 2020 15:48:05 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/pipeline.html |   31 ++++++++++++++++---------------
 1 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/src/main/webapp/views/pipeline.html b/src/main/webapp/views/pipeline.html
index 31c41bf..6768bdf 100644
--- a/src/main/webapp/views/pipeline.html
+++ b/src/main/webapp/views/pipeline.html
@@ -9,7 +9,6 @@
     <link rel="stylesheet" type="text/css" href="../static/css/normalize.css">
     <link rel="stylesheet" type="text/css" href="../static/css/common.css">
     <link rel="stylesheet" type="text/css" href="../static/css/pipeline.css">
-    <link rel="stylesheet" type="text/css" href="../static/layui/css/layui.css" media="all">
     <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
     <script type="text/javascript" src="../static/js/common.js"></script>
     <script type="text/javascript" src="../static/js/layer/layer.js"></script>
@@ -129,21 +128,23 @@
     },500);
 
     $(document).on('click','#site-table tr', function () {
-        layer.open({
-            type: 1,
-            title: false,
-            shadeClose: true,
-            offset: 'rt',
-            anim: 5,
-            shade: [0],
-            area: ['340px', '215px'],
-            closeBtn: 0,
-            content: $("#site-detl"),
-            success: function(layero, index){
+        var siteId = $(this).children("td").eq(0).html();
+        if (siteId !== null && siteId !== "") {
+            layer.open({
+                type: 1,
+                title: false,
+                shadeClose: true,
+                offset: 'rt',
+                anim: 5,
+                shade: [0],
+                area: ['340px', '215px'],
+                closeBtn: 0,
+                content: $("#site-detl"),
+                success: function(layero, index){
 
-            }
-        })
-        console.log($(this).children("td").eq(0).html());
+                }
+            })
+        }
     });
 
 

--
Gitblit v1.9.1