Commit 9a983b15 authored by huai.li's avatar huai.li

修改参数

parent fa5cd42b
...@@ -144,6 +144,7 @@ export default { ...@@ -144,6 +144,7 @@ export default {
mounted () { mounted () {
this.init() this.init()
this.getScheduleList()
}, },
methods: { methods: {
...@@ -152,10 +153,11 @@ export default { ...@@ -152,10 +153,11 @@ export default {
}, },
paramsFormat (param) { paramsFormat (param) {
this.setParams({ let ret = this.setParams({
...this.form, ...this.form,
page: this.pagenation.thispage page: this.pagenation.thispage
}, param) }, param)
this.getScheduleList(ret)
}, },
searchKeyword (search) { searchKeyword (search) {
...@@ -163,19 +165,19 @@ export default { ...@@ -163,19 +165,19 @@ export default {
}, },
updateForm (search) { updateForm (search) {
this.setParams({ let ret = this.setParams({
...this.form, ...this.form,
page: this.pagenation.thispage page: this.pagenation.thispage
}, search) }, search)
this.getScheduleList() this.getScheduleList(ret)
}, },
updatePage (pager) { updatePage (pager) {
this.setParams({ let ret = this.setParams({
...this.form, ...this.form,
page: this.pagenation.thispage page: this.pagenation.thispage
}, pager) }, pager)
this.getScheduleList() this.getScheduleList(ret)
}, },
getFilter () { getFilter () {
...@@ -221,13 +223,9 @@ export default { ...@@ -221,13 +223,9 @@ export default {
}) })
}, },
getScheduleList () { getScheduleList (ret) {
// 查询条件 // 查询条件
requestAPI(api.getScheduleList, ret).then((res) => {
requestAPI(api.getScheduleList, {
...this.form,
page: this.pagenation.thispage
}).then((res) => {
const { const {
list = [], list = [],
pagenation = {}, pagenation = {},
......
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