|
@@ -18,6 +18,7 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { mapState } from "vuex";
|
|
|
export default {
|
|
|
props: {
|
|
|
form: {
|
|
@@ -36,8 +37,15 @@ export default {
|
|
|
data() {
|
|
|
return { exportLoading: false };
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapState({
|
|
|
+ user: (state) => state.user,
|
|
|
+ }),
|
|
|
+ },
|
|
|
methods: {
|
|
|
exportData() {
|
|
|
+ var key = this.user.key;
|
|
|
+ var token = this.user.token;
|
|
|
if (!this.form.examId) {
|
|
|
this.$notify({
|
|
|
title: "警告",
|
|
@@ -54,7 +62,7 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.exportLoading = true;
|
|
|
this.$http
|
|
|
- .get(this.exportUrl, {
|
|
|
+ .get(this.exportUrl + "?$key=" + key + "&$token=" + token, {
|
|
|
params: {
|
|
|
query: this.form,
|
|
|
},
|