Explorar o código

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

SanHQin hai 8 meses
pai
achega
580f7d1957
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/components/dialog/selectTeachingClassDialog.vue

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

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