Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
92cc440b
Commit
92cc440b
authored
Nov 05, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 版本管理modal关闭时resetFields
parent
5b46751c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
List.vue
src/views/Root/VersionControl/List.vue
+5
-4
No files found.
src/views/Root/VersionControl/List.vue
View file @
92cc440b
...
...
@@ -57,7 +57,7 @@
:total=
"resData.total"
@
change=
"handlePageChange"
/>
<Modal
v-model=
"show"
:title=
"modalTitle"
:footer=
"null"
>
<Modal
v-model=
"show"
:title=
"modalTitle"
:footer=
"null"
:after-close=
"afterClose"
>
<form-model
ref=
"formModel"
:model=
"form"
...
...
@@ -152,6 +152,10 @@ export default Vue.extend({
this
.
fetchList
();
},
methods
:
{
afterClose
(){
const
formModel
=
this
.
$refs
.
formModel
as
FormModel
;
formModel
.
resetFields
();
},
fetchList
()
{
this
.
$store
.
dispatch
(
"VersionControl/fetchList"
);
},
...
...
@@ -236,8 +240,6 @@ export default Vue.extend({
this
.
save
({
modalShow
:
false
,
});
const
formModel
=
this
.
$refs
.
formModel
as
FormModel
;
formModel
.
resetFields
();
},
handleConfirm
()
{
const
formModel
=
this
.
$refs
.
formModel
as
FormModel
;
...
...
@@ -258,7 +260,6 @@ export default Vue.extend({
else
if
(
this
.
modalMode
===
eModalMode
.
edit
)
message
.
success
(
"修改成功"
);
this
.
show
=
false
;
formModel
.
resetFields
();
this
.
fetchList
();
}
else
{
message
.
error
(
ret
);
...
...
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