Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7ba611bd
authored
Apr 14, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
https://gitee.com/yudaocode/yudao-ui-admin-vue3
parents
e885bf2f
aba61120
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/views/system/user/UserImportForm.vue
+5
-1
No files found.
src/views/system/user/UserImportForm.vue
View file @
7ba611bd
...
@@ -61,6 +61,7 @@ const updateSupport = ref(0) // 是否更新已经存在的用户数据
...
@@ -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) => {
...
@@ -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 => {
...
@@ -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
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment