| | |
| | | import { getData, getRenew, getExpire, getDeleted, handleExport } from "@/api/student"; |
| | | import StudentCreate from "./components/create.vue"; |
| | | |
| | | |
| | | export default { |
| | | filters: { |
| | | statusFilter(status) { |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | // 获取地址栏code |
| | | // let code = this.$route.query.code; |
| | | // if (code) { |
| | | // if (localStorage.getItem("code")) { |
| | | // if (code !== localStorage.getItem("code")) { |
| | | // this.getUserDate(code); |
| | | // } |
| | | // } else { |
| | | // this.getUserDate(code); |
| | | // } |
| | | // } else { |
| | | // if (!localStorage.getItem("user")) { |
| | | // this.$router.push("/login"); |
| | | // } |
| | | // } |
| | | if (localStorage.getItem("user")) { |
| | | this.fetchData(); |
| | | } else { |
| | | this.$router.push("/login"); |
| | | } |
| | | }, |
| | | methods: { |
| | | handleExport() { |
| | | this.download('exportPlayer', { |
| | | this.download('exportPlayer?orgId=' + JSON.parse(localStorage.getItem("user")).staffs[0].org.id, { |
| | | }, `导出_${new Date().getTime()}.xlsx`) |
| | | }, |
| | | handleExport2() { |