提交 729e2b91 编写于 作者: 刘英杰's avatar 刘英杰

优化loading、弹窗显示等方式

上级 d0c1d499
...@@ -349,7 +349,8 @@ ...@@ -349,7 +349,8 @@
window.location.href = this.$ascURL + res.response window.location.href = this.$ascURL + res.response
}, },
batchSignInOrSignOut(e) { batchSignInOrSignOut(e) {
this.publicConfirm(async () => { this.publicConfirm(() => {
this.hooks.myEncapsulationFunction(async () => {
let data = [] let data = []
let validate = '' let validate = ''
this.signArray.forEach((currentValue, index) => { this.signArray.forEach((currentValue, index) => {
...@@ -359,12 +360,9 @@ ...@@ -359,12 +360,9 @@
}) })
}) })
const res = await api.SignInOrOut(data) const res = await api.SignInOrOut(data)
if (res.code !== 1) { this.GetSignRecordList()
this.$Message.error(res.msg_detail) return res
} else { })
await this.GetSignRecordList()
}
}) })
}, },
cancelSelectionAll(row) { cancelSelectionAll(row) {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或