浏览代码

学生批量删除

lrf402788946 4 年之前
父节点
当前提交
13cd54b02c
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 2 2
      config/menu-config.js
  2. 5 0
      store/student.js

+ 2 - 2
config/menu-config.js

@@ -265,9 +265,9 @@ export const menu = [
         module: 'center|director',
         module: 'center|director',
       },
       },
       {
       {
-        //班主任针对自己班, 打印表:证书;名签;课表(需要老师签到);学生签到表;
+        //班主任针对自己班, 打印表:证书;名签;课表(需要老师签到);学生签到表; (范围不限于班)
         path: '/train/plan/print',
         path: '/train/plan/print',
-        name: '报表打印(范围不限于班)',
+        name: '报表打印',
         module: 'center|director',
         module: 'center|director',
       },
       },
       {
       {

+ 5 - 0
store/student.js

@@ -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 = [];