wujianwei
8 小时以前 8b566e42dce1e29c3a43014838ad341a3f971070
ui/car_wx_app/components/OdometerPopup/index.vue
@@ -13,7 +13,6 @@
            <u-number-box
              v-model="localForm.odometer"
              class="number-box"
              :min="0"
              :step="1"
              button-size="28"
              inputWidth="90"
@@ -65,7 +64,7 @@
  data() {
    return {
      localForm: {
        odometer: 0,
        odometer: undefined,
        iscc: '1'
      }
    }
@@ -74,11 +73,13 @@
  watch: {
    show(val) {
      if (val) {
        // 弹窗打开时,同步父组件的数据到本地
        this.localForm = {
          odometer: this.form.odometer || 0,
          odometer: this.form.odometer || '',
          iscc: this.form.iscc || '1'
        }
        console.log(this.form.odometer,this.localForm)
      }
    }
  },