Browse Source

app 我的课表优化

新疆警官学校中职
yxq 1 year ago
parent
commit
52e4975351
2 changed files with 19 additions and 11 deletions
  1. +16
    -8
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/leaveFrom.vue
  2. +3
    -3
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/list.vue

+ 16
- 8
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/leaveFrom.vue View File

@@ -209,16 +209,24 @@ export default {
keyValue: '',
strEntity: JSON.stringify(this.queryData)
}
this.LOADING('保存数据中…');
this.HTTP_POST('learun/adms/EducationalAdministration/StuAttendanceLeave/save', _postData, '加载数据时出错').then(res => {
this.HIDE_LOADING();
console.log(res)
this.CONFIRM('提示', '是否确认提交请假?', true).then(res => {
if(res){
this.TOAST('提交成功!');
this.EMIT('timeTable');
this.NAV_BACK();
this.LOADING('保存数据中…');
this.HTTP_POST('learun/adms/EducationalAdministration/StuAttendanceLeave/save', _postData, '加载数据时出错').then(res => {
this.HIDE_LOADING();
console.log(res)
if(res){
this.EMIT('timeTable');
setTimeout(()=>{
this.TOAST('提交成功!');
})
setTimeout(()=>{
this.NAV_BACK();
},600)
}
});
}
});
})
},
// 显示列表中的标题项
displayListItem(item, field) {


+ 3
- 3
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/list.vue View File

@@ -170,8 +170,8 @@
account: Account
} = this.user
let param = {
StartDate: start,
EndDate: end,
StartDate: start||this.todayWeek.Monday,
EndDate: end||this.todayWeek.Sunday,
Description,
Account,
};
@@ -264,7 +264,7 @@
}
},
created() {
this.ON('timeTable', this.init);
this.ON('timeTable', this.loadData);
this.user = this.GET_GLOBAL('loginUser');
this.init()
}


Loading…
Cancel
Save