소스 검색

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

lrf 10 달 전
부모
커밋
f84e2c6595
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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对象