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

优化loading、弹窗显示等方式

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