浏览代码

接口替换

wolyshaw 4 年之前
父节点
当前提交
20b5d04d91
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 8 0
      src/views/teamBuild/api.js
  2. 2 2
      src/views/teamBuild/components/merged-students.vue

+ 8 - 0
src/views/teamBuild/api.js

@@ -15,3 +15,11 @@ export const delStudentRegistration = data => request2({
   method: 'post',
   requestType: 'json'
 })
+
+// 删除学员
+export const batchDelStudentRegistration = data => request2({
+  url: '/api-web/studentRegistration/batchDel',
+  data,
+  method: 'post',
+  requestType: 'json'
+})

+ 2 - 2
src/views/teamBuild/components/merged-students.vue

@@ -40,7 +40,7 @@
 </template>
 <script>
 import { getTeamStudentList } from '@/api/buildTeam'
-import { delStudentRegistration } from '../api'
+import { batchDelStudentRegistration } from '../api'
 export default {
   data() {
     return {
@@ -98,7 +98,7 @@ export default {
         await this.$confirm('是否确认删除已选择学员?', '提示', {
           type: 'warning'
         })
-        await delStudentRegistration(this.passed)
+        await batchDelStudentRegistration(this.passed)
         this.$message.success('删除成功')
         this.FetchDetail()
       } catch (error) {}