From 1310ca11b7aec973c6d75f986fb980b2446baafe Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 20 八月 2020 15:40:40 +0800 Subject: [PATCH] # --- src/main/webapp/views/pipeline.html | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/main/webapp/views/pipeline.html b/src/main/webapp/views/pipeline.html index 31c41bf..7ee7f06 100644 --- a/src/main/webapp/views/pipeline.html +++ b/src/main/webapp/views/pipeline.html @@ -129,21 +129,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