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

记住参数

parent 9a983b15
......@@ -55,13 +55,6 @@ export default {
watch: {
'searchKey' (val) {
this.$set(this.search, val + '[keyword]', '')
},
'search': {
handler (val) {
this.$emit('update:headerParams', this.search)
},
deep: true
}
}
}
......
......@@ -7,7 +7,6 @@
:search-key="'ClientSearch'"
:add-title="'新建待办事项'"
@update:headerSearch="search => searchKeyword(search)"
@update:headerParams="param => paramsFormat(param)"
@update:headerAdd="() => addSch()">
</search-header>
<search-form
......@@ -144,7 +143,7 @@ export default {
mounted () {
this.init()
this.getScheduleList()
this.getScheduleList({})
},
methods: {
......@@ -152,18 +151,14 @@ export default {
this.getFilter()
},
paramsFormat (param) {
searchKeyword (search) {
let ret = this.setParams({
...this.form,
page: this.pagenation.thispage
}, param)
}, search)
this.getScheduleList(ret)
},
searchKeyword (search) {
this.getScheduleList()
},
updateForm (search) {
let ret = this.setParams({
...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