| | |
| | | { |
| | | path: "/", |
| | | component: Layout, |
| | | redirect: "/session", |
| | | children: [ |
| | | { |
| | | path: "/session", |
| | | name: "Session", |
| | | component: () => import("@/views/session/index"), |
| | | meta: { title: "报告", icon: "table" }, |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | path: "/", |
| | | component: Layout, |
| | | redirect: "/class", |
| | | children: [ |
| | | { |
| | |
| | | <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="按姓名搜索" |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | dateRange: [], |
| | | list: null, |
| | | listLoading: true, |
| | | activeName: "all", |
| | |
| | | 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) => { |