fix:更新结束时间后再执行提交
This commit is contained in:
parent
8a81741716
commit
4b27653e18
|
@ -937,8 +937,15 @@ export default {
|
|||
if(that.mlogItem.work_end_time==''||that.mlogItem.work_end_time==null){
|
||||
obj.work_end_time = that.mlogItem.work_end_time = that.$TOOL.dateFormat1(new Date());
|
||||
obj.handle_date = that.mlogItem.handle_date = that.$TOOL.dateFormat2(new Date());
|
||||
that.$API.wpm.mlog.change.req(that.mlogItem.id, obj).then((res) => {});
|
||||
that.$API.wpm.mlog.change.req(that.mlogItem.id, obj).then((res) => {
|
||||
that.submitMlog();
|
||||
});
|
||||
}else{
|
||||
that.submitMlog();
|
||||
}
|
||||
},
|
||||
submitMlog(){
|
||||
let that = this;
|
||||
that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => {
|
||||
that.isSaveing = false;
|
||||
that.visible = false;
|
||||
|
|
Loading…
Reference in New Issue