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