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 | 49 +++++++++++++++++++++++--------------------------
1 files changed, 23 insertions(+), 26 deletions(-)
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index c45ea31..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,8 +22,22 @@
></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 - 248px)">
+ <div style="height: calc(100vh - 208px)">
<el-table
v-loading="listLoading"
:data="list"
@@ -45,7 +45,7 @@
fit
height="100%"
>
- <el-table-column label="濮撳悕" prop="">
+ <el-table-column label="濮撳悕" prop="" width="300">
<template slot-scope="scope">
<el-link
type="primary"
@@ -60,7 +60,7 @@
</el-table-column>
<el-table-column
label="鎬у埆"
- width="80"
+ width="200"
v-if="activeName !== 'deactivated'"
>
<template slot-scope="scope">
@@ -69,7 +69,7 @@
</el-table-column>
<el-table-column
label="鎵嬫満鍙�"
- width="200"
+ width="300"
prop="mobile"
v-if="activeName !== 'deactivated'"
>
@@ -79,8 +79,8 @@
</el-table-column>
<el-table-column
label="鏄惁缁戝畾寰俊"
- width="200"
v-if="activeName !== 'deactivated'"
+ min-width="200"
>
<template slot-scope="scope">
{{ scope.row.user ? "鏄�" : "鍚�" }}
@@ -186,17 +186,14 @@
// this.$router.push("/login");
// }
// }
- if (localStorage.getItem("user")) {
- this.fetchData();
- } else {
- this.$router.push("/login");
- }
+ this.fetchData();
},
methods: {
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