瀏覽代碼

app 我的课表优化

新疆警官学校中职
yxq 1 年之前
父節點
當前提交
52e4975351
共有 2 個檔案被更改,包括 19 行新增11 行删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存