Merge branch 'dev' of https://gitee.com/yudaocode/yudao-ui-admin-vue3
This commit is contained in:
commit
7ba611bdb7
@ -61,6 +61,7 @@ const updateSupport = ref(0) // 是否更新已经存在的用户数据
|
|||||||
/** 打开弹窗 */
|
/** 打开弹窗 */
|
||||||
const open = () => {
|
const open = () => {
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
|
updateSupport.value = 0
|
||||||
fileList.value = []
|
fileList.value = []
|
||||||
resetForm()
|
resetForm()
|
||||||
}
|
}
|
||||||
@ -104,6 +105,8 @@ const submitFormSuccess = (response: any) => {
|
|||||||
text += '< ' + username + ': ' + data.failureUsernames[username] + ' >'
|
text += '< ' + username + ': ' + data.failureUsernames[username] + ' >'
|
||||||
}
|
}
|
||||||
message.alert(text)
|
message.alert(text)
|
||||||
|
formLoading.value = false
|
||||||
|
dialogVisible.value = false
|
||||||
// 发送操作成功的事件
|
// 发送操作成功的事件
|
||||||
emits('success')
|
emits('success')
|
||||||
}
|
}
|
||||||
@ -115,9 +118,10 @@ const submitFormError = (): void => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** 重置表单 */
|
/** 重置表单 */
|
||||||
const resetForm = () => {
|
const resetForm = async (): Promise<void> => {
|
||||||
// 重置上传状态和文件
|
// 重置上传状态和文件
|
||||||
formLoading.value = false
|
formLoading.value = false
|
||||||
|
await nextTick()
|
||||||
uploadRef.value?.clearFiles()
|
uploadRef.value?.clearFiles()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user