|
@@ -133,7 +133,15 @@ export default {
|
|
],
|
|
],
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
- return getCollectorList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
|
|
|
+ const searchData = Object.assign(parameter, this.queryParam)
|
|
|
|
+ if (this.time && this.time.length) {
|
|
|
|
+ searchData.registerBeginDate = moment(this.time[0]).format('YYYY-MM-DD 00:00:00')
|
|
|
|
+ searchData.registerEndDate = moment(this.time[1]).format('YYYY-MM-DD 23:59:59')
|
|
|
|
+ } else {
|
|
|
|
+ searchData.registerBeginDate = null
|
|
|
|
+ searchData.registerEndDate = null
|
|
|
|
+ }
|
|
|
|
+ return getCollectorList(searchData).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
const no = (res.data.pageNo - 1) * res.data.pageSize
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
for (let i = 0; i < res.data.list.length; i++) {
|