mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -91,7 +91,29 @@
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table id="dataTable3" style="background-color: #fff" class="table table-bordered responsive-utilities">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="td_lable">sql</th>
|
||||
<th class="td_lable">sample</th>
|
||||
<th class="td_lable">executeCount</th>
|
||||
<th class="td_lable">fetchRowCount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
<table id="dataTable4" style="background-color: #fff" class="table table-bordered responsive-utilities">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="td_lable">sql</th>
|
||||
<th class="td_lable">sample</th>
|
||||
<th class="td_lable">executeCount</th>
|
||||
<th class="td_lable">fetchRowCount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
@@ -160,10 +182,48 @@
|
||||
}
|
||||
$("#dataTable2 tbody").html(html);
|
||||
}
|
||||
}
|
||||
}
|
||||
}();
|
||||
|
||||
|
||||
html = "";
|
||||
var whiteList = data.Content.whiteList;
|
||||
if (whiteList) {
|
||||
for (var i = 0; i < whiteList.length; ++i) {
|
||||
var white = whiteList[i];
|
||||
html += "<tr>";
|
||||
html += "<td>" + white.sql + "</td>";
|
||||
if (typeof white.sample == "undefined") {
|
||||
html += "<td>\"\"</td>";
|
||||
} else {
|
||||
html += "<td>" + white.sample + "</td>";
|
||||
}
|
||||
html += "<td>" + white.executeCount + "</td>";
|
||||
html += "<td>" + white.fetchRowCount + "</td>";
|
||||
html += "</tr>";
|
||||
}
|
||||
$("#dataTable3 tbody").html(html);
|
||||
}
|
||||
|
||||
html = "";
|
||||
var blackList = data.Content.blackList;
|
||||
if (blackList) {
|
||||
for (var i = 0; i < blackList.length; ++i) {
|
||||
var black = blackList[i];
|
||||
html += "<tr>";
|
||||
html += "<td>" + black.sql + "</td>";
|
||||
if (typeof black.sample == "undefined") {
|
||||
html += "<td>\"\"</td>";
|
||||
} else {
|
||||
html += "<td>" + black.sample + "</td>";
|
||||
}
|
||||
html += "<td>" + black.executeCount + "</td>";
|
||||
html += "<td>" + black.fetchRowCount + "</td>";
|
||||
html += "</tr>";
|
||||
}
|
||||
$("#dataTable4 tbody").html(html);
|
||||
}
|
||||
}
|
||||
}
|
||||
}();
|
||||
|
||||
$(document).ready(function() {
|
||||
druid.wall.init();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user