Commit b8f28dc5 by 李伟康

feat(员工组件): 添加列表加载时的loading提示

在打开员工选择弹窗前显示加载遮罩,等待列表拉取完成后隐藏loading再弹窗,优化用户交互体验
1 parent 919dc8d4
...@@ -83,7 +83,12 @@ export default { ...@@ -83,7 +83,12 @@ export default {
this.$refs.employeeBoxVisible.open() this.$refs.employeeBoxVisible.open()
return return
} }
uni.showLoading({
title: '加载中',
mask: true
})
await this.ensureEmployeeList() await this.ensureEmployeeList()
uni.hideLoading()
this.$refs.employeeBoxVisible.open() this.$refs.employeeBoxVisible.open()
}, },
async ensureEmployeeList () { async ensureEmployeeList () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!