mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	[操作日志]操作日志可以导出为Excel
This commit is contained in:
		@@ -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>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
		Reference in New Issue
	
	Block a user