| | |
| | | |
| | | <script> |
| | | import { mapGetters } from "vuex"; |
| | | import { login } from "@/api/user"; |
| | | import Chart from "./components/chart.vue"; |
| | | |
| | | export default { |
| | |
| | | <script> |
| | | import { getData, getRenew, getExpire, getDeleted, handleExport } from "@/api/student"; |
| | | import StudentCreate from "./components/create.vue"; |
| | | import { login } from "@/api/user"; |
| | | |
| | | export default { |
| | | filters: { |
| | |
| | | }, |
| | | methods: { |
| | | getUserDate(code) { |
| | | let that = this; |
| | | login({ |
| | | code: code, |
| | | }).then((res) => { |
| | | localStorage.setItem("user", JSON.stringify(res)); |
| | | localStorage.setItem("code", code); |
| | | this.fetchData(); |
| | | that.fetchData(); |
| | | }); |
| | | }, |
| | | handleExport() { |
| | | this.download('exportPlayer', { |
| | | this.download('exportPlayer?orgId=' + JSON.parse(localStorage.getItem("user")).staffs[0].org.id, { |
| | | }, `导出_${new Date().getTime()}.xlsx`) |
| | | }, |
| | | handleExport2() { |