mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-12 08:58:11 +00:00
perf: 客户端填写周报后保存关闭窗口
This commit is contained in:
parent
5b66d32f25
commit
7b3d9d9402
@ -63,7 +63,10 @@ export default {
|
||||
this.reportTabs = this.reportType;
|
||||
//
|
||||
if (this.$isMainElectron) {
|
||||
this.$Electron.registerMsgListener('reportSaveSuccess', this.saveSuccess)
|
||||
this.$Electron.registerMsgListener('reportSaveSuccess', ({data, msg}) => {
|
||||
$A.messageSuccess(msg)
|
||||
this.saveSuccess(data)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@ -132,8 +132,8 @@ export default {
|
||||
this.reportData.receive = [];
|
||||
this.getTemplate();
|
||||
// msg 结果描述
|
||||
$A.messageSuccess(msg);
|
||||
this.$emit("saveSuccess", data);
|
||||
!this.$isSubElectron && $A.messageSuccess(msg);
|
||||
this.$emit("saveSuccess", {data, msg});
|
||||
}).catch(({msg}) => {
|
||||
isModal && this.$Modal.remove();
|
||||
// msg 错误原因
|
||||
|
||||
@ -42,6 +42,7 @@ export default {
|
||||
channel: 'reportSaveSuccess',
|
||||
data,
|
||||
});
|
||||
window.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user