|
@@ -10,6 +10,7 @@ const api = {
|
|
removeClass: `/api/train/student/deleteclass`, //ids
|
|
removeClass: `/api/train/student/deleteclass`, //ids
|
|
findscore: `/api/train/student/findscore`,
|
|
findscore: `/api/train/student/findscore`,
|
|
findList: `/api/train/student/findbystuids`,
|
|
findList: `/api/train/student/findbystuids`,
|
|
|
|
+ deleteAll: '/api/train/student/deletestus',
|
|
};
|
|
};
|
|
const state = () => ({});
|
|
const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
@@ -55,6 +56,10 @@ const actions = {
|
|
const res = await this.$axios.$post(`${api.findList}`, { data: payload });
|
|
const res = await this.$axios.$post(`${api.findList}`, { data: payload });
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ async removeAll({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.deleteAll}`, payload);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
let toRequest = () => {
|
|
let toRequest = () => {
|
|
let res = [];
|
|
let res = [];
|