Эх сурвалжийг харах

fix(SCRM-5668): 完善车牌管理交互,在燃油tab下点击绿叶,跳转到新能源tab

john 1 жил өмнө
parent
commit
4f5f4ce735

+ 0 - 2
src/pages/parkingFee/mixins/vehicleAddOrEdit.js

@@ -117,8 +117,6 @@ export default {
         this.carType = 1
         this.$refs['k-tab-edit'].changeTab(this.carType)
       }
-      this.ind = index;
-      this.active = index;
       this.$nextTick(() => {
         // return;
         if (index === 0) {

+ 5 - 1
src/pages/parkingFeeV2/mixins/vehicleAddOrEdit.js

@@ -87,9 +87,13 @@ export default {
     },
     // 唤起键盘
     clickShowKeyboard(index) {
-      if (this.carType !== 1 && index === 7) return
+      // if (this.carType !== 1 && index === 7) return
       this.ind = index;
       this.active = index;
+      if ( index === 7) {
+        this.carType = 1
+        this.$refs['k-tab'].changeTab(this.carType)
+      }
       // console.log('唤起键盘', this.ind, this.active);
       this.$nextTick(() => {
         // return;