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