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

优化loading、弹窗显示等方式

上级 d0c1d499
......@@ -349,22 +349,20 @@
window.location.href = this.$ascURL + res.response
},
batchSignInOrSignOut(e) {
this.publicConfirm(async () => {
let data = []
let validate = ''
this.signArray.forEach((currentValue, index) => {
data.push({
signid: currentValue.signid,
sign: e
this.publicConfirm(() => {
this.hooks.myEncapsulationFunction(async () => {
let data = []
let validate = ''
this.signArray.forEach((currentValue, index) => {
data.push({
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) {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或