From 04ac5e8ca9a79106fcb146dbb6b6a0d4d09a704b Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 11 九月 2024 14:47:36 +0800
Subject: [PATCH] 修改标题
---
src/views/student/index.vue | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index c9f5af7..9e17455 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -9,6 +9,12 @@
<div style="display: flex; justify-content: space-between">
<!-- <el-button type="primary" size="small" @click="showCreate">鏂板缓瀛﹀憳</el-button> -->
<el-button type="primary" size="small" @click="handleExport">瀵煎嚭瀛﹀憳</el-button>
+ <div style="width: 500px">
+ <el-date-picker v-model="dateRange" type="daterange" range-separator="鑷�" start-placeholder="寮�濮嬫棩鏈�"
+ end-placeholder="缁撴潫鏃ユ湡" value-format="yyyy-MM-dd" style="margin-right: 10px">
+ </el-date-picker>
+ <el-button type="primary" @click="handleExport2">瀵煎嚭璇惧寘</el-button>
+ </div>
<div style="width: 300px">
<el-input
placeholder="鎸夊鍚嶆悳绱�"
@@ -131,6 +137,7 @@
},
data() {
return {
+ dateRange: [],
list: null,
listLoading: true,
activeName: "all",
@@ -158,6 +165,14 @@
this.download('exportPlayer', {
}, `瀵煎嚭_${new Date().getTime()}.xlsx`)
},
+ handleExport2() {
+ if (this.dateRange.length == 0) {
+ this.$message.warning("璇烽�夋嫨鏃ユ湡鑼冨洿");
+ return;
+ }
+ this.download('exportReport?startDate=' + this.dateRange[0] + '&endDate=' + this.dateRange[1], {
+ }, `瀵煎嚭_${new Date().getTime()}.xlsx`)
+ },
fetchData() {
this.listLoading = true;
getData(this.data).then((response) => {
--
Gitblit v1.8.0