Commit 29b0150c84409061822c56ecb491b4d42a360507
1 parent
6e13ece8
一键补缴
Showing
1 changed file
with
8 additions
and
3 deletions
src/components/parkRecord.vue
@@ -176,10 +176,10 @@ export default { | @@ -176,10 +176,10 @@ export default { | ||
176 | this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0 | 176 | this.currentTabActive = this.$route.query.parkFlag ? this.$route.query.parkFlag : 0 |
177 | console.log(this.currentTabActive) | 177 | console.log(this.currentTabActive) |
178 | console.log(this.carNumber) | 178 | console.log(this.carNumber) |
179 | - this.parkRecordList(this.carNumber) | 179 | + this.parkRecordList(10) |
180 | }, | 180 | }, |
181 | methods: { | 181 | methods: { |
182 | - parkRecordList() { // 获取停车记录数据 | 182 | + parkRecordList(_parkState) { // 获取停车记录数据 |
183 | var salt = this.$utils.myCommonSalt(32); | 183 | var salt = this.$utils.myCommonSalt(32); |
184 | var jsondata = { | 184 | var jsondata = { |
185 | app_id: this.$utils.myVarAppid, | 185 | app_id: this.$utils.myVarAppid, |
@@ -188,7 +188,7 @@ export default { | @@ -188,7 +188,7 @@ export default { | ||
188 | sign_type: "md5", | 188 | sign_type: "md5", |
189 | pageNum: 1, | 189 | pageNum: 1, |
190 | pageSize: 1000, | 190 | pageSize: 1000, |
191 | - parkState: 10, | 191 | + parkState: _parkState, |
192 | terminalSource: 7, | 192 | terminalSource: 7, |
193 | carNumber: this.carNumber, | 193 | carNumber: this.carNumber, |
194 | carNumberColor: this.carColor, | 194 | carNumberColor: this.carColor, |
@@ -234,6 +234,11 @@ export default { | @@ -234,6 +234,11 @@ export default { | ||
234 | 234 | ||
235 | tabHandle(index) { // tab 切换 | 235 | tabHandle(index) { // tab 切换 |
236 | this.currentTabActive = index | 236 | this.currentTabActive = index |
237 | + if(index==0){ | ||
238 | + this.parkRecordList(10) | ||
239 | + }else{ | ||
240 | + this.parkRecordList(30) | ||
241 | + } | ||
237 | }, | 242 | }, |
238 | chooseHandle(i, index) { // 历史欠费单个选择事件 | 243 | chooseHandle(i, index) { // 历史欠费单个选择事件 |
239 | i.checked = !i.checked | 244 | i.checked = !i.checked |