Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ai_web_page_prod
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
ai_web_page_prod
Commits
57a7202c
Commit
57a7202c
authored
May 10, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
2d76671e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
src/pages/submit/index.vue
+13
-1
No files found.
src/pages/submit/index.vue
View file @
57a7202c
...
...
@@ -18,6 +18,7 @@
>
</div>
</div>
<CustomLoading
v-show=
"loading_2"
></CustomLoading>
</div>
</div>
<CustomLoading
v-show=
"loading"
></CustomLoading>
...
...
@@ -41,6 +42,7 @@ import { FormExample2 } from '@/utils/api/Task';
import
{
useRoute
}
from
'vue-router'
;
import
{
show_message
}
from
'@/utils/tdesign_tool'
;
const
loading
=
ref
(
false
);
const
loading_2
=
ref
(
false
);
const
route
=
useRoute
();
const
id
=
route
.
query
.
id
;
// el
...
...
@@ -136,13 +138,22 @@ const onReset = () => {
const
onSubmit
=
async
()
=>
{
// 校验表单
let
params
=
FilterForm
(
AdminData
.
list
);
if
(
!
params
)
{
return
;
}
try
{
let
res
:
any
=
await
useSubmitImage
(
params
);
loading_2
.
value
=
true
;
let
res
:
any
=
await
useSubmitImage
({
scenario_id
:
scenario_id
.
value
,
parameters
:
params
,
});
if
(
res
.
code
==
0
)
{
show_message
(
'上传成功'
,
'success'
);
}
loading_2
.
value
=
false
;
}
catch
(
e
)
{
console
.
log
(
e
);
loading_2
.
value
=
false
;
}
};
...
...
@@ -173,6 +184,7 @@ onBeforeMount(async () => {
.generation-box
{
width
:
100%
;
display
:
flex
;
position
:
relative
;
.interaction-form
{
background
:
#2d2d2d
;
border
:
1px
solid
#565656
;
...
...
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