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
6f60fc1e
authored
Mar 24, 2025
by
Bin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复[基础设施]-[代码生成]-[导入弹窗]下选择一个数据表后点击[导入]时,没有给用户加载动画的反馈效果
parent
a4fe1db1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
src/views/infra/codegen/ImportTable.vue
+14
-9
No files found.
src/views/infra/codegen/ImportTable.vue
View file @
6f60fc1e
...
@@ -62,8 +62,8 @@
...
@@ -62,8 +62,8 @@
</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>
</
template
>
</
template
>
...
@@ -139,13 +139,18 @@ const handleSelectionChange = (selection) => {
...
@@ -139,13 +139,18 @@ const handleSelectionChange = (selection) => {
/** 导入按钮操作 */
/** 导入按钮操作 */
const
handleImportTable
=
async
()
=>
{
const
handleImportTable
=
async
()
=>
{
await
CodegenApi
.
createCodegenList
({
dbTableLoading
.
value
=
true
dataSourceConfigId
:
queryParams
.
dataSourceConfigId
,
try
{
tableNames
:
tableList
.
value
await
CodegenApi
.
createCodegenList
({
})
dataSourceConfigId
:
queryParams
.
dataSourceConfigId
,
message
.
success
(
'导入成功'
)
tableNames
:
tableList
.
value
emit
(
'success'
)
})
close
()
message
.
success
(
'导入成功'
)
emit
(
'success'
)
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