diff --git a/src/views/claimAndRefund/return/returnApply.vue b/src/views/claimAndRefund/return/returnApply.vue index 6f02888b..3ed77531 100644 --- a/src/views/claimAndRefund/return/returnApply.vue +++ b/src/views/claimAndRefund/return/returnApply.vue @@ -715,10 +715,8 @@ export default { /** 查询字典类型列表 startTime,结束日期endTime */ async getList() { this.loading = true - if (this.queryParams.time && this.queryParams.time.length > 0) { - this.queryParams.startTime = this.queryParams.time[0] - this.queryParams.endTime = this.queryParams.time[1] - } + this.queryParams.startTime = this.queryParams.time ? this.queryParams.time[0] : '' + this.queryParams.endTime = this.queryParams.time ? this.queryParams.time[1] : '' try { let params = { diff --git a/src/views/claimAndRefund/return/returnApplyByCq.vue b/src/views/claimAndRefund/return/returnApplyByCq.vue index 3f61501e..288cfe50 100644 --- a/src/views/claimAndRefund/return/returnApplyByCq.vue +++ b/src/views/claimAndRefund/return/returnApplyByCq.vue @@ -715,10 +715,8 @@ export default { /** 查询字典类型列表 startTime,结束日期endTime */ async getList() { this.loading = true - if (this.queryParams.time && this.queryParams.time.length > 0) { - this.queryParams.startTime = this.queryParams.time[0] - this.queryParams.endTime = this.queryParams.time[1] - } + this.queryParams.startTime = this.queryParams.time ? this.queryParams.time[0] : '' + this.queryParams.endTime = this.queryParams.time ? this.queryParams.time[1] : '' try { let params = { diff --git a/src/views/claimAndRefund/return/returnExamine.vue b/src/views/claimAndRefund/return/returnExamine.vue index 37c9420a..a2efeca8 100644 --- a/src/views/claimAndRefund/return/returnExamine.vue +++ b/src/views/claimAndRefund/return/returnExamine.vue @@ -744,8 +744,8 @@ export default { /** 查询字典类型列表 startTime,结束日期endTime */ async getList() { this.loading = true - this.queryParams.startTime = this.timeRange[0] - this.queryParams.endTime = this.timeRange[1] + this.queryParams.startTime = this.timeRange ? this.timeRange[0] : '' + this.queryParams.endTime = this.timeRange ? this.timeRange[1] : '' try { let params = { companyId: this.companyId, diff --git a/src/views/claimAndRefund/return/returnIn.vue b/src/views/claimAndRefund/return/returnIn.vue index 780d7498..8142ba26 100644 --- a/src/views/claimAndRefund/return/returnIn.vue +++ b/src/views/claimAndRefund/return/returnIn.vue @@ -423,8 +423,8 @@ export default { /** 查询列表 startTime,结束日期endTime */ async getList() { // this.loading = true; - this.queryParams.startTime = this.dateRange[0] - this.queryParams.endTime = this.dateRange[1] + this.queryParams.startTime = this.dateRange ? this.dateRange[0] : '' + this.queryParams.endTime = this.dateRange ? this.dateRange[1] : '' try { let params = { flag: 1, diff --git a/src/views/material/repair/repairManage/component/home.vue b/src/views/material/repair/repairManage/component/home.vue index 2ac13b5a..83e8bbd3 100644 --- a/src/views/material/repair/repairManage/component/home.vue +++ b/src/views/material/repair/repairManage/component/home.vue @@ -387,10 +387,8 @@ export default { /** 查询列表 startTime,结束日期endTime */ async getList() { this.loading = true - if (this.queryParams.time && this.queryParams.time.length > 0) { - this.queryParams.startTime = this.queryParams.time[0] - this.queryParams.endTime = this.queryParams.time[1] - } + this.queryParams.startTime = this.queryParams.time ? this.queryParams.time[0] : '' + this.queryParams.endTime = this.queryParams.time ? this.queryParams.time[1] : '' try { let params = { companyId: this.companyId,