bug
luohairen
2024-10-30 55f1bfb9cd3b21a495cca966490ab4bb31f4ac00
src/views/class-management/ClassStaff.vue
@@ -5,7 +5,7 @@
      <div style="padding-bottom:20px">
        <span class="item">{{ this.$route.query.className }}</span>
        <el-button class="item" @click="handlerAddStudent" type="primary" size="small">新增学员</el-button>
        <el-button class="item" @click="open = true" type="primary" size="small">学员调整</el-button>
        <el-button class="item" @click="openManage" type="primary" size="small">学员调整</el-button>
      </div>
      <div>
        <el-form :inline="true" :model="searchForm" class="demo-form-inline">
@@ -65,7 +65,7 @@
            title="确定要删除该成员吗?"
            @confirm="remove(scope.row.id)"
          >
            <el-button slot="reference" type="danger" size="small">删除</el-button>
            <el-button slot="reference" type="danger" size="small" v-show="false">删除</el-button>
          </el-popconfirm>
        </template>
      </el-table-column>
@@ -220,6 +220,10 @@
    this.getStudentList()
  },
  methods: {
    openManage () {
      this.getClassesCurrentUserList(this.classes.id)
      this.open = true
    },
    handlerEditStudent (row) {
      this.studentForm = row
      this.studentTitle = '编辑学员'
@@ -241,6 +245,7 @@
              this.page()
              this.resetStudentForm()
            })
            window.location.reload()
          } else {
            addClassesUser(this.studentForm).then(res => {
              this.addOpen = false
@@ -248,6 +253,7 @@
              this.page()
              this.resetStudentForm()
            })
            window.location.reload()
          }
        }
      })