[操作日志]操作日志可以导出为Excel

This commit is contained in:
GoEdgeLab
2020-11-20 17:08:10 +08:00
parent f4409363f0
commit f8b6116c73
6 changed files with 142 additions and 4 deletions

View File

@@ -9,6 +9,9 @@
<link rel="stylesheet" href="/js/pikaday.triangle.css"/>
{$end}
<div class="margin"></div>
<form method="get" action="/log" class="ui form" autocomplete="off">
<div class="ui fields inline">
<div class="ui field">
@@ -26,6 +29,9 @@
<div class="ui field" v-if="dayFrom.length > 0 || dayTo.length > 0 || keyword.length > 0">
<a href="/log">[清除条件]</a>
</div>
<div class="ui field">
<a href="" @click.prevent="exportExcel">[导出到Excel]</a>
</div>
</div>
</form>

View File

@@ -11,4 +11,11 @@ Tea.context(function () {
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
})
}
})