Commit 04e7b9cc by xinla

--no commit message

1 parent da3a096a
...@@ -30,17 +30,7 @@ export default { ...@@ -30,17 +30,7 @@ export default {
}), }),
} }
}, },
watch: { watch: {},
// 日期选择器数据同步至查询参数
dateRange(dateRange) {
if (!dateRange || dateRange.length !== 2) {
this.query.beginTime = ''
this.query.endTime = ''
} else {
;[this.query.beginTime, this.query.endTime] = dateRange
}
},
},
created() { created() {
this.getList() this.getList()
...@@ -53,6 +43,12 @@ export default { ...@@ -53,6 +43,12 @@ export default {
}, },
methods: { methods: {
getList(page) { getList(page) {
if (this.dateRange) {
;[this.query.beginTime, this.query.endTime] = this.dateRange
} else {
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page) page && (this.query.pageNum = page)
this.loading = true this.loading = true
......
...@@ -43,17 +43,7 @@ export default { ...@@ -43,17 +43,7 @@ export default {
queryUser: [], // 搜索框选择的添加人 queryUser: [], // 搜索框选择的添加人
} }
}, },
watch: { watch: {},
// 日期选择器数据同步至查询参数
dateRange(dateRange) {
if (!dateRange || dateRange.length !== 2) {
this.query.beginTime = ''
this.query.endTime = ''
} else {
;[this.query.beginTime, this.query.endTime] = dateRange
}
},
},
created() { created() {
this.getList() this.getList()
...@@ -66,6 +56,12 @@ export default { ...@@ -66,6 +56,12 @@ export default {
}, },
methods: { methods: {
getList(page) { getList(page) {
if (this.dateRange) {
;[this.query.beginTime, this.query.endTime] = this.dateRange
} else {
this.query.beginTime = ''
this.query.endTime = ''
}
page && (this.query.pageNum = page) page && (this.query.pageNum = page)
this.loading = true this.loading = true
getListGroup(this.query) getListGroup(this.query)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!