Showing
2 changed files
with
4 additions
and
6 deletions
@@ -176,9 +176,6 @@ export default { | @@ -176,9 +176,6 @@ export default { | ||
176 | } | 176 | } |
177 | }, | 177 | }, |
178 | getAvailableAmount() { | 178 | getAvailableAmount() { |
179 | - const params = {}; | ||
180 | - params.beginTime = this.beginStr; | ||
181 | - params.endTime = this.endStr; | ||
182 | if (this.beginStr > this.endStr) { | 179 | if (this.beginStr > this.endStr) { |
183 | this.$Notice.error({ | 180 | this.$Notice.error({ |
184 | title: '时间范围异常', | 181 | title: '时间范围异常', |
@@ -186,7 +183,7 @@ export default { | @@ -186,7 +183,7 @@ export default { | ||
186 | }); | 183 | }); |
187 | return; | 184 | return; |
188 | } | 185 | } |
189 | - this.financeService.shopGetAvailableAmount(params).then(result => { | 186 | + this.financeService.shopGetAvailableAmount(this.params).then(result => { |
190 | if (result.code === 200) { | 187 | if (result.code === 200) { |
191 | this.data.withdrawAmount = result.data.availableAmount; | 188 | this.data.withdrawAmount = result.data.availableAmount; |
192 | } else { | 189 | } else { |
@@ -198,10 +195,10 @@ export default { | @@ -198,10 +195,10 @@ export default { | ||
198 | }); | 195 | }); |
199 | }, | 196 | }, |
200 | changeBeginStr(value) { | 197 | changeBeginStr(value) { |
201 | - this.beginStr = value; | 198 | + this.params.beginTime = value; |
202 | }, | 199 | }, |
203 | changeEndStr(value) { | 200 | changeEndStr(value) { |
204 | - this.endStr = value; | 201 | + this.params.endTime = value; |
205 | this.getAvailableAmount(); | 202 | this.getAvailableAmount(); |
206 | }, | 203 | }, |
207 | }, | 204 | }, |
-
Please register or login to post a comment