diff --git a/src/layouts/components/Tools/userInfo.vue b/src/layouts/components/Tools/userInfo.vue index fe07943..7c6b338 100644 --- a/src/layouts/components/Tools/userInfo.vue +++ b/src/layouts/components/Tools/userInfo.vue @@ -40,8 +40,10 @@ avatar: [{ required: true, message: '人员类别必选', trigger: ['blur', 'change'] }], })// 前端校验规则 // 弹窗初始化 +const loading = ref(false) const initDialog = async () => { isEdit.value = false + loading.value = true const res = await getUserList({ offset: 1, limit: 99999 }) const data = res.data.rows.filter((item: any) => item.id === userStore.id)[0] // userForm.value = data @@ -84,8 +86,12 @@ } }) userForm.value.deptAllName = `${fullDeptName}/${data.deptName}` + loading.value = false }) } + else { + loading.value = false + } }) } @@ -134,7 +140,7 @@ 取消 - + @@ -174,7 +180,7 @@ - +