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
351950a7
Commit
351950a7
authored
Jun 26, 2019
by
huai.li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复重置bug
parent
f6c19666
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
21 deletions
+54
-21
accountHome.vue
src/components/account_list/accountHome.vue
+6
-3
caseHome.vue
src/components/case_list/caseHome.vue
+10
-5
timeSearchForm.vue
src/components/case_list/timeSearchForm.vue
+8
-2
punchHome.vue
src/components/punch_list/punchHome.vue
+5
-3
serviceHome.vue
src/components/service_list/serviceHome.vue
+6
-3
supplierHome.vue
src/components/supplier_list/supplierHome.vue
+5
-3
groupHome.vue
src/components/task_group_list/groupHome.vue
+7
-1
taskHome.vue
src/components/task_list/taskHome.vue
+7
-1
No files found.
src/components/account_list/accountHome.vue
View file @
351950a7
...
...
@@ -201,9 +201,12 @@ export default {
// 3.2关键字后面的重置
searchClear
()
{
this
.
clearParams
()
this
.
$refs
.
timeSearchForm
.
resetForm
()
this
.
_reload
()
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
// this.clearParams()
// this.$refs.timeSearchForm.resetForm()
// this._reload()
},
// 4.重新加载
...
...
src/components/case_list/caseHome.vue
View file @
351950a7
...
...
@@ -211,6 +211,11 @@ export default {
this
.
getFilter
()
},
searchClear
()
{
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
timeSearchForm
.
resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
},
// 1.查询条件
getFilter
()
{
requestAPI
(
api
.
getCaseFilter
).
then
(
res
=>
{
...
...
@@ -256,11 +261,11 @@ export default {
},
// 3.2关键字后面的重置
searchClear
()
{
this
.
clearParams
()
this
.
$refs
.
timeSearchForm
.
resetForm
()
this
.
_reload
()
},
//
searchClear () {
//
this.clearParams()
//
this.$refs.timeSearchForm.resetForm()
//
this._reload()
//
},
// 4.重新加载
_reload
()
{
...
...
src/components/case_list/timeSearchForm.vue
View file @
351950a7
...
...
@@ -14,7 +14,7 @@
</el-col>
</el-form>
<el-form
ref=
"clientTimeRange"
:model=
"clientTimeRange"
size=
"mini"
>
<el-col
:span=
"
8
"
:offset=
"0"
:xs=
"
{span: 24, offset: 0}" class="form-content-time-range">
<el-col
:span=
"
9
"
:offset=
"0"
:xs=
"
{span: 24, offset: 0}" class="form-content-time-range">
<el-form-item
label-width=
"0"
>
<el-date-picker
size=
"mini"
...
...
@@ -67,7 +67,13 @@ 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
()
{
...
...
src/components/punch_list/punchHome.vue
View file @
351950a7
...
...
@@ -190,9 +190,11 @@ export default {
// 3.2关键字后面的重置
searchClear
()
{
this
.
clearParams
()
this
.
$refs
.
timeSearchForm
.
resetForm
()
this
.
_reload
()
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
// this.clearParams()
// this.$refs.timeSearchForm.resetForm()
// this._reload()
},
// 4.重新加载
...
...
src/components/service_list/serviceHome.vue
View file @
351950a7
...
...
@@ -127,9 +127,12 @@ export default {
// 3.2关键字后面的重置
searchClear
()
{
this
.
clearParams
()
this
.
$refs
.
timeSearchForm
.
resetForm
()
this
.
_reload
()
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
// this.clearParams()
// this.$refs.timeSearchForm.resetForm()
// this._reload()
},
// 4.重新加载
...
...
src/components/supplier_list/supplierHome.vue
View file @
351950a7
...
...
@@ -199,9 +199,11 @@ export default {
// 3.2关键字后面的重置
searchClear
()
{
this
.
clearParams
()
this
.
$refs
.
timeSearchForm
.
resetForm
()
this
.
_reload
()
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
// this.clearParams()
// this.$refs.timeSearchForm.resetForm()
// this._reload()
},
// 4.重新加载
...
...
src/components/task_group_list/groupHome.vue
View file @
351950a7
...
...
@@ -7,7 +7,8 @@
:search-key=
"'ClientSearch'"
:add-title=
"'新建项目'"
@
update:headerSearch=
"search => searchKeyword(search)"
@
update:headerAdd=
"() => addSch()"
>
@
update:headerAdd=
"() => addSch()"
@
update:headerClear=
"() => _resetParams()"
>
</search-header>
<search-form
ref=
"clientForm"
...
...
@@ -175,6 +176,11 @@ export default {
this
.
getFilter
()
},
_resetParams
()
{
this
.
$refs
.
searchHeader
.
_resetParams
()
this
.
$refs
.
clientForm
.
_resetForm
()
},
_reload
()
{
let
params
=
this
.
setParams
({
...
this
.
form
,
...
...
src/components/task_list/taskHome.vue
View file @
351950a7
...
...
@@ -7,7 +7,8 @@
:search-key=
"'ClientSearch'"
:add-title=
"'新建项目清单'"
@
update:headerSearch=
"search => searchKeyword(search)"
@
update:headerAdd=
"() => addSch()"
>
@
update:headerAdd=
"() => addSch()"
@
update:headerClear=
"() => _resetParams()"
>
</search-header>
<search-form
ref=
"clientForm"
...
...
@@ -160,6 +161,11 @@ export default {
this
.
getFilter
()
},
_resetParams
()
{
this
.
$refs
.
searchHeader
.
_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