Browse Source

选择授课班级默认选择第一个

SanHQin 2 weeks ago
parent
commit
580f7d1957
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/components/dialog/selectTeachingClassDialog.vue

+ 3 - 0
src/components/dialog/selectTeachingClassDialog.vue

@@ -98,6 +98,9 @@ export default {
 		open(data) {
 		open(data) {
 			this.data = JSON.parse(JSON.stringify(data));
 			this.data = JSON.parse(JSON.stringify(data));
       this.classList = this.data.classList;
       this.classList = this.data.classList;
+      if(this.classList.length>0){
+        this.selectId = this.classList[0].id;
+      }
 			this.loading = false;
 			this.loading = false;
 			this.show = true;
 			this.show = true;
 		},
 		},