|
|
|
@ -19,12 +19,14 @@ monitor.render.table_list = function (_data){
|
|
|
|
|
jx.dom.set.value('table.info',_data.about)
|
|
|
|
|
jx.dom.set.value('tables','')
|
|
|
|
|
jx.dom.append('tables',nodes)
|
|
|
|
|
nodes.childNodes[0].click()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
monitor.render.data = function(_data){
|
|
|
|
|
|
|
|
|
|
jx.dom.set.value('dashboard','' )
|
|
|
|
|
_apex = []
|
|
|
|
|
|
|
|
|
|
Object.keys(_data).forEach(_key=>{
|
|
|
|
|
|
|
|
|
|
_board = jx.dom.get.instance('DIV')
|
|
|
|
@ -37,13 +39,15 @@ monitor.render.data = function(_data){
|
|
|
|
|
|
|
|
|
|
var _id = Object.keys(_entry)[0]
|
|
|
|
|
_itemPane = jx.dom.get.instance('DIV')
|
|
|
|
|
_frame = jx.dom.get.instance('DIV')
|
|
|
|
|
|
|
|
|
|
// _itemPane.innerHTML = '<h3>'+_id+'</h3>',_entry[_id]
|
|
|
|
|
//
|
|
|
|
|
// Making title ....
|
|
|
|
|
var _titleDiv = $('<div class="title"><div class="large-text">:title</div><div class="small">:about</div></div>'.replace(/:title/,_id).replace(/:about/,_entry[_id].about))
|
|
|
|
|
console.log(_titleDiv)
|
|
|
|
|
$(_itemPane).append(_titleDiv)
|
|
|
|
|
var _titleDiv = $('<div class="board-title"><div class="large-text">:title</div><div class="small">:about</div></div>'.replace(/:title/,_id).replace(/:about/,_entry[_id].about))
|
|
|
|
|
|
|
|
|
|
// $(_itemPane).append(_titleDiv)
|
|
|
|
|
$(_frame).append(_titleDiv)
|
|
|
|
|
_itemPane.className = _entry[_id].css
|
|
|
|
|
_entry[_id].charts.forEach(_chartItem=>{
|
|
|
|
|
if (_chartItem.type == 'scalar') {
|
|
|
|
@ -62,9 +66,11 @@ monitor.render.data = function(_data){
|
|
|
|
|
_itemPane.appendChild(_chart)
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
_frame.appendChild(_itemPane)
|
|
|
|
|
_frame.className = 'basic-board'
|
|
|
|
|
// _itemPane.className = 'board-' + _itemPane.childNodes.length
|
|
|
|
|
// _itemPane.className = 'board-' + _itemPane.childNodes.length
|
|
|
|
|
jx.dom.append('dashboard',_itemPane)
|
|
|
|
|
jx.dom.append('dashboard',_frame)
|
|
|
|
|
// var _options = _item[_id]
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
@ -170,7 +176,7 @@ monitor.get = function(table){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!qcms){
|
|
|
|
|
qcms = {}
|
|
|
|
|
var qcms = {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _dashboard = function(_context,_uri){
|
|
|
|
@ -186,7 +192,7 @@ var _dashboard = function(_context,_uri){
|
|
|
|
|
http.setHeader('Content-Type','application/json')
|
|
|
|
|
http.setData(JSON.stringify(_args))
|
|
|
|
|
http.post(_uri,function(x){
|
|
|
|
|
if(x.readyState == 4 && x.status == 200)
|
|
|
|
|
if(x.readyState == 4 && x.status == 200){}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|