提交
This commit is contained in:
@@ -397,16 +397,11 @@ export default {
|
||||
return
|
||||
}
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/common/class/editClass'),
|
||||
url: this.$http.adornUrl('/common/class/updateClassState'),
|
||||
method: "post",
|
||||
data: this.$http.adornData({
|
||||
id: this.miniClassForm.id,
|
||||
modelId: this.miniClassForm.modelId,
|
||||
title: this.miniClassForm.title,
|
||||
icon: this.miniClassForm.icon,
|
||||
state: '1',
|
||||
content: this.miniClassForm.content
|
||||
// createUserid: "10185"
|
||||
classId:this.miniClassForm.id,
|
||||
state: '1'
|
||||
})
|
||||
})
|
||||
.then(({ data }) => {
|
||||
@@ -414,23 +409,18 @@ export default {
|
||||
this.$message.success("操作成功");
|
||||
this.handleClose();
|
||||
}else{
|
||||
this.$message.error("操作失败");
|
||||
this.$message.error(data.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
// 结班
|
||||
jieban(){
|
||||
this.$http({
|
||||
url: this.$http.adornUrl('/common/class/editClass'),
|
||||
url: this.$http.adornUrl('/common/class/updateClassState'),
|
||||
method: "post",
|
||||
data: this.$http.adornData({
|
||||
id: this.miniClassForm.id,
|
||||
modelId: this.miniClassForm.modelId,
|
||||
title: this.miniClassForm.title,
|
||||
icon: this.miniClassForm.icon,
|
||||
state: '2',
|
||||
content: this.miniClassForm.content
|
||||
// createUserid: "10185"
|
||||
classId:this.miniClassForm.id,
|
||||
state: '2'
|
||||
})
|
||||
})
|
||||
.then(({ data }) => {
|
||||
@@ -438,7 +428,7 @@ export default {
|
||||
this.$message.success("操作成功");
|
||||
this.handleClose();
|
||||
}else{
|
||||
this.$message.error("操作失败");
|
||||
this.$message.error(data.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -167,21 +167,21 @@
|
||||
<div>
|
||||
<el-table :data="studentList">
|
||||
<el-table-column
|
||||
property="id"
|
||||
property="student.id"
|
||||
label="学员id"
|
||||
width="150"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="nickname"
|
||||
property="student.nickname"
|
||||
label="学员名称"
|
||||
width="150"
|
||||
></el-table-column>
|
||||
<el-table-column
|
||||
property="vip"
|
||||
property="student.vip"
|
||||
label="学员身份"
|
||||
width="200"
|
||||
></el-table-column>
|
||||
<el-table-column property="tel" label="手机号"></el-table-column>
|
||||
<el-table-column property="student.tel" label="手机号"></el-table-column>
|
||||
<el-table-column property="" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="warning" @click="outClass(scope.row)"
|
||||
@@ -209,8 +209,8 @@ export default {
|
||||
studentList: [], // 学员列表
|
||||
dataForm: {
|
||||
title: "",
|
||||
type: "0",
|
||||
state: "0"
|
||||
type: "",
|
||||
state: ""
|
||||
},
|
||||
// courseId: {},
|
||||
course: null,
|
||||
@@ -332,7 +332,7 @@ export default {
|
||||
// 踢出班级
|
||||
async outClass(row) {
|
||||
let that = this;
|
||||
this.$confirm(`确定将学员电话为:${row.tel}踢出班级?`, "提示", {
|
||||
this.$confirm(`确定将学员电话为:${row.student.tel}踢出班级?`, "提示", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
@@ -344,7 +344,7 @@ export default {
|
||||
method: "post",
|
||||
data: this.$http.adornData({
|
||||
classId: that.miniClass.id,
|
||||
userId: row.id
|
||||
userId: row.student.id
|
||||
})
|
||||
}).then(async ({ data }) => {
|
||||
if (data && data.code === 0) {
|
||||
|
||||
Reference in New Issue
Block a user