Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daywrite
bms-vue-obear
Commits
5b6a0192
Commit
5b6a0192
authored
Apr 29, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复关闭弹窗不清空表单的问题
parent
f55f2fd3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
document.js
src/apis/document.js
+4
-0
documentForm.vue
src/components/document/documentForm.vue
+5
-5
documentModal.vue
src/components/document/documentModal.vue
+5
-1
scheduleModal.vue
src/components/schedule/scheduleModal.vue
+0
-1
No files found.
src/apis/document.js
View file @
5b6a0192
...
...
@@ -25,5 +25,9 @@ export default {
deleteDoc
:
{
url
:
'/vue/document/delete'
},
getDocType
:
{
url
:
'/vue/document/get-document-type'
}
}
src/components/document/documentForm.vue
View file @
5b6a0192
...
...
@@ -102,8 +102,8 @@ export default {
},
created
()
{
this
.
$watch
(
'model.
task_group
_id'
,
function
(
val
)
{
this
.
get
HeadOf
Array
(
val
)
this
.
$watch
(
'model.
department
_id'
,
function
(
val
)
{
this
.
get
DocType
Array
(
val
)
})
},
...
...
@@ -134,11 +134,11 @@ export default {
this
.
$refs
[
'form'
].
resetFields
()
},
get
HeadOf
Array
(
id
)
{
requestAPI
(
api
.
get
MembersById
,
{
get
DocType
Array
(
id
)
{
requestAPI
(
api
.
get
DocType
,
{
id
:
id
}).
then
(
res
=>
{
this
.
options
.
headOf
Array
=
res
this
.
options
.
documentType
Array
=
res
})
}
}
...
...
src/components/document/documentModal.vue
View file @
5b6a0192
<
template
>
<section>
<sidePopup
ref=
"sidePopup"
title=
"新建文档"
:width=
"50"
>
<sidePopup
ref=
"sidePopup"
title=
"新建文档"
:width=
"50"
@
update:close=
"() => btnClose()"
>
<DocumentForm
ref=
"docForm"
:model=
"model"
>
...
...
@@ -62,6 +62,10 @@ export default {
})
},
btnClose
()
{
this
.
$refs
.
docForm
.
_resetFields
()
},
save
()
{
let
_params
=
Object
.
assign
({},
setModule
(
this
.
model
,
'Documents'
))
let
_apiUrl
=
!
this
.
model
.
id
?
api
.
saveDocNew
:
api
.
saveDocEdit
...
...
src/components/schedule/scheduleModal.vue
View file @
5b6a0192
...
...
@@ -60,7 +60,6 @@ export default {
},
btnClose
()
{
debugger
Object
.
keys
(
this
.
model
).
forEach
(
item
=>
{
this
.
model
[
item
]
=
''
})
...
...
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