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
f6c19666
Commit
f6c19666
authored
Jun 26, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复查询条件
parent
c529d15a
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
7 deletions
+37
-7
searchForm.vue
src/components/common/searchForm.vue
+5
-0
searchHeader.vue
src/components/common/searchHeader.vue
+4
-0
setParams.js
src/components/common/setParams.js
+7
-1
timeSearchForm.vue
src/components/common/timeSearchForm.vue
+12
-4
reimbursementHome.vue
src/components/reimbursement_list/reimbursementHome.vue
+9
-2
No files found.
src/components/common/searchForm.vue
View file @
f6c19666
...
...
@@ -85,6 +85,11 @@ export default {
}
else
{
this
.
clientForm
[
'Filter[sort]'
]
=
'ASC'
}
},
_resetForm
()
{
Object
.
keys
(
this
.
clientForm
).
forEach
(
item
=>
{
this
.
clientForm
[
item
]
=
''
})
}
},
created
()
{
...
...
src/components/common/searchHeader.vue
View file @
f6c19666
...
...
@@ -50,6 +50,10 @@ export default {
window
.
localStorage
.
clear
()
this
.
$emit
(
'update:headerClear'
)
}
},
_resetParams
()
{
this
.
$set
(
this
.
search
,
this
.
searchKey
+
'[keyword]'
,
''
)
}
},
props
:
[
'title'
,
'searchKey'
,
'addTitle'
],
...
...
src/components/common/setParams.js
View file @
f6c19666
...
...
@@ -23,7 +23,13 @@ export default {
value
=
obj
}
}
let
ret
=
Object
.
assign
(
value
,
param
)
let
_param
=
Object
.
assign
({},
param
)
Object
.
keys
(
_param
).
forEach
(
item
=>
{
if
(
typeof
_param
[
item
]
===
'undefined'
)
{
delete
_param
[
item
]
}
})
let
ret
=
Object
.
assign
(
value
,
_param
)
l
.
setItem
(
key
,
JSON
.
stringify
(
ret
))
return
ret
},
...
...
src/components/common/timeSearchForm.vue
View file @
f6c19666
...
...
@@ -57,8 +57,8 @@ export default {
},
created
()
{
this
.
initParams
()
this
.
init
()
this
.
initParams
()
},
methods
:
{
...
...
@@ -66,12 +66,20 @@ export default {
this
.
$watch
(
'clientTimeForm'
,
(
val
)
=>
{
let
perid
=
val
[
this
.
formSearchKey
+
'[period]'
]
this
.
$emit
(
'update:list'
,
Object
.
assign
({},
{[
this
.
formSearchKey
+
'[period]'
]:
perid
}))
},
{
deep
:
true
})
},
{
deep
:
true
,
immediate
:
true
})
},
resetParams
()
{
this
.
$set
(
this
.
clientTimeForm
,
this
.
formSearchKey
+
'[period]'
,
'all'
)
this
.
clientTimeRange
.
from
=
''
this
.
clientTimeRange
.
to
=
''
},
initParams
()
{
this
.
setInitParams
((
ret
)
=>
{
this
.
$set
(
this
.
clientTimeForm
,
this
.
formSearchKey
+
'[period]'
,
ret
[
this
.
formSearchKey
+
'[period]'
]
||
''
)
this
.
$set
(
this
.
clientTimeForm
,
this
.
formSearchKey
+
'[period]'
,
ret
[
this
.
formSearchKey
+
'[period]'
]
||
'all'
)
this
.
clientTimeRange
.
from
=
ret
[
this
.
formSearchKey
+
'[from]'
]
this
.
clientTimeRange
.
to
=
ret
[
this
.
formSearchKey
+
'[to]'
]
})
},
...
...
@@ -88,7 +96,7 @@ export default {
watch
:
{
'formSearchKey'
:
{
handler
(
val
)
{
this
.
$set
(
this
.
clientTimeForm
,
val
+
'[period]'
,
''
)
this
.
$set
(
this
.
clientTimeForm
,
val
+
'[period]'
,
'
all
'
)
}
},
'clientTimeRange.from'
(
val
)
{
...
...
src/components/reimbursement_list/reimbursementHome.vue
View file @
f6c19666
...
...
@@ -7,11 +7,12 @@
:search-key=
"'ClientSearch'"
:add-title=
"'新建报销'"
@
update:headerSearch=
"search => searchKeyword(search)"
@
update:headerAdd=
"() => addSch()"
>
@
update:headerAdd=
"() => addSch()"
@
update:headerClear=
"() => _resetParams()"
>
</search-header>
<time-search-form
ref=
"timeSearchForm"
form-search-key=
"
projec
tSearch"
form-search-key=
"
Reimbursemen
tSearch"
@
update:list=
"search => timeSearchForm(search)"
>
</time-search-form>
<search-form
...
...
@@ -170,6 +171,12 @@ export default {
this
.
getFilter
()
},
_resetParams
()
{
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
timeSearchForm
.
resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
},
_reload
()
{
let
params
=
this
.
setParams
({
...
this
.
form
,
...
...
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