lrf402788946 4 年之前
父節點
當前提交
1ebc4bba23
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 6 0
      store/student.js
  2. 5 0
      store/task.js

+ 6 - 0
store/student.js

@@ -15,6 +15,7 @@ const api = {
   computedIsFine: `/api/train/student/finestudent`,
   computedIsFine: `/api/train/student/finestudent`,
   export: `/api/train/student/export`,
   export: `/api/train/student/export`,
   printCert: `/api/train/student/printcert`,
   printCert: `/api/train/student/printcert`,
+  schoolStudent: `/api/train/student/school`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -82,6 +83,11 @@ const actions = {
     const res = await this.$axios.$post(`${api.printCert}`, { ids: payload });
     const res = await this.$axios.$post(`${api.printCert}`, { ids: payload });
     return res;
     return res;
   },
   },
+  // 学校上传学生情况
+  async schoolStudent({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.schoolStudent}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];

+ 5 - 0
store/task.js

@@ -5,6 +5,7 @@ import axios from 'axios';
 Vue.use(Vuex);
 Vue.use(Vuex);
 const api = {
 const api = {
   interface: `/api/train/task`,
   interface: `/api/train/task`,
+  export: `/api/train/task/export`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -30,6 +31,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     return res;
     return res;
   },
   },
+  async export({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.export}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];