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
Unverified
Commit
e804533d
authored
Apr 12, 2025
by
芋道源码
Committed by
Gitee
Apr 12, 2025
Browse files
Options
Browse Files
Download
Plain Diff
!748 修复[基础设施]-[代码生成]-[导入弹窗]下选择一个数据表后点击[导入]时,没有给用户加载动画的反馈效果
Merge pull request !748 from Bin/fix-bug
parents
4c88cccf
6f60fc1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/views/infra/codegen/ImportTable.vue
+6
-1
No files found.
src/views/infra/codegen/ImportTable.vue
View file @
e804533d
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</el-row>
</el-row>
<!-- 操作 -->
<!-- 操作 -->
<template
#
footer
>
<template
#
footer
>
<el-button
:disabled=
"tableList.length === 0"
type=
"primary"
@
click=
"handleImportTable"
>
<el-button
:disabled=
"tableList.length === 0
|| dbTableLoading
"
type=
"primary"
@
click=
"handleImportTable"
>
导入
导入
</el-button>
</el-button>
<el-button
@
click=
"close"
>
关闭
</el-button>
<el-button
@
click=
"close"
>
关闭
</el-button>
...
@@ -139,6 +139,8 @@ const handleSelectionChange = (selection) => {
...
@@ -139,6 +139,8 @@ const handleSelectionChange = (selection) => {
/** 导入按钮操作 */
/** 导入按钮操作 */
const
handleImportTable
=
async
()
=>
{
const
handleImportTable
=
async
()
=>
{
dbTableLoading
.
value
=
true
try
{
await
CodegenApi
.
createCodegenList
({
await
CodegenApi
.
createCodegenList
({
dataSourceConfigId
:
queryParams
.
dataSourceConfigId
,
dataSourceConfigId
:
queryParams
.
dataSourceConfigId
,
tableNames
:
tableList
.
value
tableNames
:
tableList
.
value
...
@@ -146,6 +148,9 @@ const handleImportTable = async () => {
...
@@ -146,6 +148,9 @@ const handleImportTable = async () => {
message
.
success
(
'导入成功'
)
message
.
success
(
'导入成功'
)
emit
(
'success'
)
emit
(
'success'
)
close
()
close
()
}
finally
{
dbTableLoading
.
value
=
false
}
}
}
const
emit
=
defineEmits
([
'success'
])
const
emit
=
defineEmits
([
'success'
])
</
script
>
</
script
>
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