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