detail页面添加view json api 链接

This commit is contained in:
melin
2012-08-26 21:38:55 +08:00
parent 0362a224d5
commit cec28184da
4 changed files with 8 additions and 0 deletions
@@ -14,6 +14,7 @@
<div class="span12">
<h3>
Spring View
<a id="viewJsonApi" target="_blank">View JSON API</a>
</h3>
<table id="dataTable" class="table table-bordered" style="background-color: #fff">
<tr>
@@ -104,6 +105,7 @@
init : function() {
druid.common.buildHead(5);
this.ajaxRequestForBasicInfo();
$("#viewJsonApi").attr("href", 'spring-detail.json?class=' + clazz + '&method=' + method);
},
ajaxRequestForBasicInfo : function() {
@@ -14,6 +14,7 @@
<div class="span12">
<h3>
FULL SQL
<a id="viewJsonApi" target="_blank">View JSON API</a>
</h3>
<h5 id="fullSql"></h5>
<h2> Format View:</h2>
@@ -109,6 +110,7 @@
init : function() {
druid.common.buildHead(2);
this.ajaxRequestForBasicInfo();
$("#viewJsonApi").attr("href", 'sql-' + sqlId + '.json');
},
ajaxRequestForBasicInfo : function() {
@@ -13,6 +13,7 @@
<div class="span12">
<h3>
Web Session View
<a id="viewJsonApi" target="_blank">View JSON API</a>
</h3>
<table id="dataTable" class="table table-bordered" style="background-color: #fff">
<tr>
@@ -94,6 +95,7 @@
init : function() {
druid.common.buildHead(4);
this.ajaxRequestForBasicInfo();
$("#viewJsonApi").attr("href", 'websession-' + sessionId + '.json');
},
ajaxRequestForBasicInfo : function() {
@@ -14,6 +14,7 @@
<div class="span12">
<h3>
Web URI View
<a id="viewJsonApi" target="_blank">View JSON API</a>
</h3>
<table id="dataTable" class="table table-bordered" style="background-color: #fff">
<tr>
@@ -111,6 +112,7 @@
init : function() {
druid.common.buildHead(3);
this.ajaxRequestForBasicInfo();
$("#viewJsonApi").attr("href", 'weburi-' + encodeURI(uri) + '.json');
},
ajaxRequestForBasicInfo : function() {