Commit c2da2677 authored by Asjoker's avatar Asjoker

feat: “导出”功能

parent ad066c20
<template> <template>
<div id="sylog-container" class="realTime-container"> <div id="sylog-container" class="realTime-container">
<div class="warnHead"> <div style="padding: 10px;text-align: right">
<div class="warnBtns"> <el-button type="primary" @click="changeTime">添加</el-button>
<el-button class="headBtn" @click="changeTime">添加</el-button> <el-button type="primary" @click="changeTime">修改</el-button>
<el-button class="headBtn" @click="changeTime">修改</el-button> <el-button type="primary" @click="handleDelete">删除</el-button>
<el-button class="headBtn" @click="handleDelete">删除</el-button> <el-button type="primary" @click="handleExport">导出报表</el-button>
<el-button class="headBtnW" @click="refresh">刷新</el-button> <el-button type="primary" @click="refresh">刷新</el-button>
<el-button id="fullScreen" class="headBtnW">{{ isScreen ? '退出全屏' : '全屏' }}</el-button> <el-button id="fullScreen" type="primary">{{ isScreen ? '退出全屏' : '全屏' }}</el-button>
</div>
</div> </div>
<div class="app-container-realTime"> <div class="app-container-realTime">
<el-tabs v-model="currentTab" type="card"> <el-tabs v-model="currentTab" type="card">
...@@ -364,6 +363,9 @@ export default { ...@@ -364,6 +363,9 @@ export default {
type: 'warning' type: 'warning'
}) })
}, },
handleExport() {
window.location.href = process.env.BASE_URL + 'exportFile.xls'
},
/** 查询登录日志 */ /** 查询登录日志 */
getList() { getList() {
this.loading = true this.loading = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment