Files
EdgeAdmin/web/views/@default/log/index.js
2020-11-20 17:08:10 +08:00

21 lines
531 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Tea.context(function () {
this.$delay(function () {
teaweb.datepicker("day-from-picker")
teaweb.datepicker("day-to-picker")
})
this.logs.forEach(function (v) {
v.moreVisible = false
})
this.showMore = function (log) {
log.moreVisible = !log.moreVisible
}
this.exportExcel = function () {
let that = this
teaweb.confirm("确定要将当前列表导出到Excel吗", function () {
window.location = "/log/exportExcel?dayFrom=" + that.dayFrom + "&dayTo=" + that.dayTo + "&keyword=" + that.keyword
})
}
})