Commit 29b0150c84409061822c56ecb491b4d42a360507

Authored by 刘淇
1 parent 6e13ece8

一键补缴

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