Commit 8dba551f authored by huai.li's avatar huai.li

记住参数

parent 9a983b15
...@@ -55,13 +55,6 @@ export default { ...@@ -55,13 +55,6 @@ export default {
watch: { watch: {
'searchKey' (val) { 'searchKey' (val) {
this.$set(this.search, val + '[keyword]', '') this.$set(this.search, val + '[keyword]', '')
},
'search': {
handler (val) {
this.$emit('update:headerParams', this.search)
},
deep: true
} }
} }
} }
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
:search-key="'ClientSearch'" :search-key="'ClientSearch'"
:add-title="'新建待办事项'" :add-title="'新建待办事项'"
@update:headerSearch="search => searchKeyword(search)" @update:headerSearch="search => searchKeyword(search)"
@update:headerParams="param => paramsFormat(param)"
@update:headerAdd="() => addSch()"> @update:headerAdd="() => addSch()">
</search-header> </search-header>
<search-form <search-form
...@@ -144,7 +143,7 @@ export default { ...@@ -144,7 +143,7 @@ export default {
mounted () { mounted () {
this.init() this.init()
this.getScheduleList() this.getScheduleList({})
}, },
methods: { methods: {
...@@ -152,18 +151,14 @@ export default { ...@@ -152,18 +151,14 @@ export default {
this.getFilter() this.getFilter()
}, },
paramsFormat (param) { searchKeyword (search) {
let ret = this.setParams({ let ret = this.setParams({
...this.form, ...this.form,
page: this.pagenation.thispage page: this.pagenation.thispage
}, param) }, search)
this.getScheduleList(ret) this.getScheduleList(ret)
}, },
searchKeyword (search) {
this.getScheduleList()
},
updateForm (search) { updateForm (search) {
let ret = this.setParams({ let ret = this.setParams({
...this.form, ...this.form,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment