|
@@ -451,9 +451,7 @@ export default {
|
|
|
const userId = row.userId || this.ids;
|
|
|
getStudent(userId).then(response => {
|
|
|
this.form = response.data;
|
|
|
- // this.postOptions = response.posts;
|
|
|
- // this.roleOptions = response.roles;
|
|
|
- // this.$set(this.form, "postIds", response.postIds);
|
|
|
+ this.roleOptions = response.roles;
|
|
|
this.$set(this.form, "roleIds", response.roleIds);
|
|
|
this.open = true;
|
|
|
this.title = "修改学员";
|
|
@@ -484,9 +482,6 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.userId != undefined) {
|
|
|
- console.log(this.form);
|
|
|
- console.log('ddddd')
|
|
|
- return false;
|
|
|
updateStudent(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|