24 lines
984 B
JavaScript
24 lines
984 B
JavaScript
window.randTipInfo = function(rowDatas)
|
|
{
|
|
let tipHtml = `<p>${rowDatas[0].name} ${workHour} /h</p>`;
|
|
rowDatas.forEach(rowData =>
|
|
{
|
|
if(rowData.data == 'null') return;
|
|
tipHtml += `<div><span style="background: ${rowData.color}; height: 10px; width: 10px; display: inline-block; margin-right: 10px;"></span>${rowData.seriesName} ${rowData.data}</div>`;
|
|
});
|
|
return tipHtml;
|
|
}
|
|
|
|
$(document).on('change', '#burnBy', function()
|
|
{
|
|
$.cookie.set('burnBy', $(this).val(), {expires:config.cookieLife, path:config.webRoot});
|
|
|
|
let interval = typeof($('#interval').val()) == 'undefined' ? 0 : $('#interval').val() ;
|
|
loadPage($.createLink('execution', 'burn', 'executionID=' + executionID + '&type=' + type + '&interval=' + interval + '&burnBy=' + $(this).val()));
|
|
});
|
|
|
|
$(document).on('change', '#interval', function()
|
|
{
|
|
loadPage($.createLink('execution', 'burn', 'executionID=' + executionID + '&type=' + type + '&interval=' + $(this).val()));
|
|
});
|