Browse Source

教师分数导入

lrf402788946 4 years ago
parent
commit
273b5fb0b1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      store/teacher.js

+ 5 - 0
store/teacher.js

@@ -6,6 +6,7 @@ Vue.use(Vuex);
 const api = {
   interface: `/api/train/teacher`,
   status: `/api/train/teacher/status`,
+  scoreimport: `/api/train/teacher/teaimport`, //filepath
 };
 const state = () => ({});
 const mutations = {};
@@ -37,6 +38,10 @@ const actions = {
     const res = await this.$axios.$post(`${api.status}`, payload);
     return res;
   },
+  async scoreImport({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.scoreimport}`, { filepath: payload });
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];