Hwt 2 năm trước cách đây
mục cha
commit
803359e220
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      smart/src/views/vehicleInformation/setpPage/recharge.vue

+ 6 - 3
smart/src/views/vehicleInformation/setpPage/recharge.vue

@@ -267,16 +267,19 @@ export default {
           var daraRes = {
             nameId: ''
           }
-          daraRes.nameId = this.params.ruleId;
-          this.rechargeDates(daraRes);
+          // daraRes.nameId = this.params.ruleId;
+          // this.rechargeDates(daraRes);
           for (let i = 0; i < data.length; i++) {
+            if (data[i].ruleId == this.params.ruleId) {
+              daraRes.nameId = i;
+              this.rechargeDates(daraRes);
+            }
             this.recharge.push({
               name: data[i].ruleName,
               label: data[i].ruleId,
               nameId: i
             })
             if (data[i].ruleId == this.params.ruleId) {
-              debugger
               this.rechargeDatesName = data[i].ruleName
             }