update thống kê

This commit is contained in:
2020-10-16 11:35:29 +07:00
parent 53de75104e
commit 4ba094ab24
16 changed files with 526 additions and 80 deletions

View File

@@ -186,6 +186,7 @@ common.dateTimePickerByClass = function (cls, format) {
$('.' + cls).datetimepicker({
locale: 'vi',
ignoreReadonly: true,
sideBySide: true,
format: format
});
};
@@ -251,6 +252,9 @@ common.form = function (e, obj, bigSize) {
if (obj === 'schedule') {
common.dateTimePickerByClass("select-picker", "HH:mm");
}
if (obj === 'user') {
$('#role').select2({tags: true, tokenSeparators: [',']});
}
},
error: function (jqXHR, textStatus, errorThrown) {
common.modalBlock(false);

11
web/js/logs.js Normal file
View File

@@ -0,0 +1,11 @@
$(function () {
common.dateTimePickerByClass("time-picker", "HH:mm:ss DD/MM/YYYY");
});
function _export(e) {
window.location = $(e).attr("data-href") + "?from=" + $("input[name='FromTime']").val() + "&to=" + $("input[name='ToTime']").val();
}
function search(e) {
window.location = $(e).attr("data-href") + "?type=all" + "&from=" + $("input[name='FromTime']").val() + "&to=" + $("input[name='ToTime']").val();
}