|  | @@ -73,6 +73,7 @@ export default {
 | 
											
												
													
														|  |      getPlanList(){
 |  |      getPlanList(){
 | 
											
												
													
														|  |        planList(this.query.orgId).then(res=>{
 |  |        planList(this.query.orgId).then(res=>{
 | 
											
												
													
														|  |          this.planList = res.data;
 |  |          this.planList = res.data;
 | 
											
												
													
														|  | 
 |  | +        if(res.data.length === 0) return this.$toast('暂无教育计划');
 | 
											
												
													
														|  |          this.query.planId = res.data[0].id;
 |  |          this.query.planId = res.data[0].id;
 | 
											
												
													
														|  |          this.query.date = formatDate(new Date(),'YYYY-MM');
 |  |          this.query.date = formatDate(new Date(),'YYYY-MM');
 | 
											
												
													
														|  |          this.getDataList();
 |  |          this.getDataList();
 | 
											
										
											
												
													
														|  | @@ -82,7 +83,7 @@ export default {
 | 
											
												
													
														|  |        let data = {
 |  |        let data = {
 | 
											
												
													
														|  |          ...this.query
 |  |          ...this.query
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  | -      data.date = `${this.query.date}-01`;
 |  | 
 | 
											
												
													
														|  | 
 |  | +      data.date = this.query.date && `${this.query.date}-01`;
 | 
											
												
													
														|  |        if(!this.query.orgId) return this.$toast('请选择机构');
 |  |        if(!this.query.orgId) return this.$toast('请选择机构');
 | 
											
												
													
														|  |        dataList(data).then(res=>{
 |  |        dataList(data).then(res=>{
 | 
											
												
													
														|  |          this.dataList = res.data;
 |  |          this.dataList = res.data;
 |