Browse Source

Merge branch 'master' of http://git.cc-lotus.info/new_train/frame

lrf 10 months ago
parent
commit
f84e2c6595
1 changed files with 5 additions and 0 deletions
  1. 5 0
      store/util.js

+ 5 - 0
store/util.js

@@ -14,6 +14,7 @@ const api = {
   exportExcel: `/api/train/exportExcel`,
   schoolDownload: `/api/train/schoolDownload`,
   schoolImport: `/api/train/schoolImport`,
+  stuImport: `/api/train/stuImport`,
 };
 const state = () => ({});
 const mutations = {};
@@ -46,6 +47,10 @@ const actions = {
     const res = await this.$axios.$post(`${api.schoolImport}`, { filepath: payload });
     return res;
   },
+  async stuImport({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.stuImport}`, payload);
+    return res;
+  },
   async upload({ commit }, { file, uri }) {
     // const res = await this.$axios.$post(`${api.taskupload}`, payload, null, { 'Content-Type': 'multipart/form-data' });
     let param = new FormData(); //创建form对象