From a128d99df306bb1ab017b7069fb0441837b3917b Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 13 十月 2025 10:04:35 +0800
Subject: [PATCH] 导出加参数
---
src/views/student/index.vue | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index 9342e53..fdda66a 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -6,22 +6,8 @@
<el-tab-pane label="宸茶繃鏈�" name="expired" />
<el-tab-pane label="宸插仠鐢�" name="deactivated" />
</el-tabs>
- <div style="display: flex; justify-content: space-between">
+ <div style="display: flex">
<!-- <el-button type="primary" size="small" @click="showCreate">鏂板缓瀛﹀憳</el-button> -->
- <div>
- <el-button type="primary" size="small" @click="handleExport"
- >瀵煎嚭瀛﹀憳</el-button
- >
- <el-button type="primary" size="small" @click="handleImport"
- >瀵煎叆瀛﹀憳</el-button
- >
- </div>
- <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="鎸夊鍚嶆悳绱�"
@@ -36,6 +22,20 @@
></el-button>
</el-input>
</div>
+ <div style="margin-left: 30px">
+ <el-button type="primary" size="small" @click="handleExport"
+ >瀵煎嚭瀛﹀憳</el-button
+ >
+ <el-button type="primary" size="small" @click="handleImport"
+ >瀵煎叆瀛﹀憳</el-button
+ >
+ </div>
+ <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>
<div style="height: calc(100vh - 208px)">
<el-table
@@ -45,8 +45,7 @@
fit
height="100%"
>
- <el-table-column label="濮撳悕" prop=""
- width="300">
+ <el-table-column label="濮撳悕" prop="" width="300">
<template slot-scope="scope">
<el-link
type="primary"
@@ -80,7 +79,7 @@
</el-table-column>
<el-table-column
label="鏄惁缁戝畾寰俊"
- v-if="activeName !== 'deactivated'"
+ v-if="activeName !== 'deactivated'"
min-width="200"
>
<template slot-scope="scope">
@@ -193,7 +192,8 @@
handleExport() {
this.download(
"exportPlayer?orgId=" +
- JSON.parse(localStorage.getItem("selectStaff")).org.id,
+ JSON.parse(localStorage.getItem("selectStaff")).org.id+"&type=" +
+ this.activeName,
{},
`瀵煎嚭_${new Date().getTime()}.xlsx`
);
--
Gitblit v1.8.0