|
|
@@ -41,6 +41,11 @@ function getlistenList(count, page, keyword) {
|
|
|
for (var i = 0; i < listenList.length; i++) {
|
|
|
var trow = getDataRow(listenList[i], i); //定义一个方法,返回tr数据
|
|
|
tbody.appendChild(trow);
|
|
|
+ // (function(i) {
|
|
|
+ // $("#name_detal" + listenList[i].id ).click(function () {
|
|
|
+ // getDetail(logList[i].detail, logList[i].enName);
|
|
|
+ // });
|
|
|
+ // })(i);
|
|
|
}
|
|
|
|
|
|
// 点击搜索
|
|
|
@@ -81,6 +86,10 @@ function getlistenList(count, page, keyword) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+$('#outer').mouseenter(function() {
|
|
|
+ $('#log').append('<div>Handler for .mouseenter() called.</div>');
|
|
|
+});
|
|
|
+
|
|
|
/**
|
|
|
* 建立表格数据
|
|
|
*
|
|
|
@@ -104,8 +113,12 @@ function getDataRow(listen, i) {
|
|
|
row.appendChild(macAddressCell);
|
|
|
|
|
|
|
|
|
- var nameCell = document.createElement('td'); //name
|
|
|
- nameCell.setAttribute("class", "text-center");
|
|
|
+ var nameCell = document.createElement('td'); //name line-limit-length
|
|
|
+ nameCell.setAttribute("class", "text-center line-limit-length");
|
|
|
+ //nameCell.setAttribute("class", "line-limit-length");
|
|
|
+ nameCell.setAttribute("data-toggle", "tooltip");
|
|
|
+ nameCell.setAttribute("data-placement", "right");
|
|
|
+ nameCell.setAttribute("title", listen.name);
|
|
|
nameCell.innerHTML = highLightKeywords(listen.name, keyword, null); //填充数据
|
|
|
row.appendChild(nameCell);
|
|
|
|
|
|
@@ -120,6 +133,9 @@ function getDataRow(listen, i) {
|
|
|
|
|
|
var statusCell = document.createElement('td'); //状态
|
|
|
statusCell.setAttribute("class", "text-center");
|
|
|
+ statusCell.setAttribute("data-toggle", "tooltip");
|
|
|
+ statusCell.setAttribute("data-placement", "right");
|
|
|
+ statusCell.setAttribute("title", listen.description);
|
|
|
statusCell.innerHTML = highLightKeywords(listen.status, "异常", null); //填充数据
|
|
|
row.appendChild(statusCell);
|
|
|
|