Jelajahi Sumber

教师分数导入

lrf402788946 4 tahun lalu
induk
melakukan
273b5fb0b1
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  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 = [];