|
@@ -74,6 +74,13 @@
|
|
|
v-if="scope.row.studentStatus == 0"
|
|
|
v-permission="'vipGroupManage/applyRefundForStudent'"
|
|
|
@click="lookFee(scope)">退学</el-button>
|
|
|
+ <!-- v-permission="'vipGroupManage/applyRefundForStudent'" -->
|
|
|
+ <el-button type="text"
|
|
|
+ v-if="scope.row.studentStatus == 0"
|
|
|
+ @click="stopCourse(scope)">休学</el-button>
|
|
|
+ <el-button type="text"
|
|
|
+ v-if="scope.row.studentStatus == 3"
|
|
|
+ @click="recoveryCourse(scope)">恢复</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -136,7 +143,7 @@
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
-import { findVipGroupStudents, leaveSchool, getStudentSurplusCourseFee, getHaveCourseBalanceStudents, addVipGroupStudents } from '@/api/vipSeting'
|
|
|
+import { findVipGroupStudents, leaveSchool, getStudentSurplusCourseFee, getHaveCourseBalanceStudents, addVipGroupStudents, vipPauseForStudent } from '@/api/vipSeting'
|
|
|
export default {
|
|
|
components: { pagination },
|
|
|
data () {
|
|
@@ -220,8 +227,8 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() =>{})
|
|
|
-
|
|
|
+ }).catch(() => { })
|
|
|
+
|
|
|
},
|
|
|
addStudentList () {
|
|
|
// 发请求 搜索学生
|
|
@@ -251,6 +258,38 @@ export default {
|
|
|
this.getStudents()
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ stopCourse (scope) {
|
|
|
+ this.$confirm('是否休学?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ // 发请求 申请休学
|
|
|
+ vipPauseForStudent({ vipGroupId: this.id, studentId: scope.row.id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('休学成功')
|
|
|
+ this.getStudents()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ });
|
|
|
+ },
|
|
|
+ recoveryCourse (scope) {
|
|
|
+ // this.$confirm('是否休学?', '提示', {
|
|
|
+ // confirmButtonText: '确定',
|
|
|
+ // cancelButtonText: '取消',
|
|
|
+ // type: 'warning'
|
|
|
+ // }).then(() => {
|
|
|
+ // // 发请求 申请休学
|
|
|
+ // vipPauseForStudent({ vipGroupId: this.id, studentId: scope.row.id }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.$message.success('休学成功')
|
|
|
+ // this.getList()
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }).catch(() => {
|
|
|
+ // });
|
|
|
}
|
|
|
},
|
|
|
}
|