Ver Fonte

vue 20241227 学员管理 修改

贾小兵 há 5 meses atrás
pai
commit
f4b677affd
1 ficheiros alterados com 1 adições e 6 exclusões
  1. 1 6
      ruoyi-ui/src/views/peoples/student/index.vue

+ 1 - 6
ruoyi-ui/src/views/peoples/student/index.vue

@@ -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;