From 2536b9456462df0b1087ea335fc79b2432fa0256 Mon Sep 17 00:00:00 2001 From: zhangxin10 Date: Thu, 31 Dec 2015 11:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=98=BE=E7=A4=BA=E5=8E=9F?= =?UTF-8?q?=E6=96=87=E6=97=A0=E6=B3=95=E5=87=BA=E7=8E=B0=E6=B7=A1=E5=85=A5?= =?UTF-8?q?=E6=B7=A1=E5=87=BA=E7=9A=84=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/webapp/ftl/index.ftl | 1 + .../main/webapp/ftl/lib/ai.cloud/common.ftl | 33 ++++++++++++------- .../src/main/webapp/js/webui-0.1.js | 22 +++++++++++-- 3 files changed, 42 insertions(+), 14 deletions(-) diff --git a/skywalking-webui/src/main/webapp/ftl/index.ftl b/skywalking-webui/src/main/webapp/ftl/index.ftl index f911ecb2c..ea6d9e7ae 100644 --- a/skywalking-webui/src/main/webapp/ftl/index.ftl +++ b/skywalking-webui/src/main/webapp/ftl/index.ftl @@ -14,6 +14,7 @@ .leaf { background-color: white; } + .in{display:block;height:370px;} <@common.importJavaScript /> diff --git a/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl b/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl index 8621ad62e..e9179ccdf 100644 --- a/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl +++ b/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl @@ -5,9 +5,13 @@ - +<#----> + <#-- importMenuInfo --> @@ -85,9 +89,6 @@
  • 注册
  • - <#-- dealTraceLog --> @@ -98,7 +99,7 @@
    ${traceId!}
    调度入口IP:${(valueList[0].address)!},开始时间:${beginTime?number_to_datetime},${(valueList?size)!}条调用记录,消耗总时长:${(endTime - beginTime)!'0'} - ms。显示原文 + ms。显示原文
    @@ -241,7 +242,7 @@ <#macro importOriginLog>
    +
    @@ -264,15 +265,15 @@
    #
    -
  • +
  • ${logInfo.viewPointId}
  • -
    -
      +
      +
      • 服务/方法:${logInfo.viewPointId!''}
      • @@ -305,6 +306,14 @@
    + diff --git a/skywalking-webui/src/main/webapp/js/webui-0.1.js b/skywalking-webui/src/main/webapp/js/webui-0.1.js index f68546710..9572ac1f2 100644 --- a/skywalking-webui/src/main/webapp/js/webui-0.1.js +++ b/skywalking-webui/src/main/webapp/js/webui-0.1.js @@ -1,8 +1,6 @@ function changeFrameUrl(url) { console.info('showTraceLog iframe url change: ' + url); $("#showTraceLog").attr("src", url); - - //$("#showTraceLog").attr("height",$("#showTraceLog").contentDocument.scrollHeight + 20); } @@ -13,6 +11,19 @@ function drawData(url) { success: function (data) { $("#showTraceLog").empty(); $("#showTraceLog").html(data); + var flag1=true; + $('.testClass').click(function(){ + if(flag1){ + + $(this).parent().siblings('').show(); + $(this).parent().siblings('').css('height','370px') + flag1=false; + }else{ + $(this).parent().siblings('').hide(); + flag1=true; + } + + }) } }); } @@ -22,6 +33,13 @@ $().ready(function () { var baseUrl = $("#baseUrl").val(); var traceId = $("#traceId").val(); var uid = $("#uid").val(); + var flag1=true; + $('.accordion-toggle').click(function(){ + if(flag1){ + + $('.accordion-toggle').siblings('.collapse').css('display','block') + } + })