Browse Source

bug 修复

lilei 3 years ago
parent
commit
2608ecc8f7

+ 4 - 2
src/views/productManagement/newProduct/modal.vue

@@ -80,13 +80,15 @@ export default {
     }
   },
   mounted () {
-    this.$refs.table.refresh(true)
+    this.$nextTick(() => {
+      this.$refs.table.refresh(true)
+    })
   },
   watch: {
     onlineFalg (newValue, oldValue) {
       const _this = this
       setTimeout(() => {
-        _this.$refs.table.refresh(true)
+        _this.$refs.table && _this.$refs.table.refresh(true)
       }, 400)
     }
   }

+ 1 - 0
src/views/productManagement/productInfo/edit.vue

@@ -322,6 +322,7 @@ export default {
     },
     // 选择单位
     unitChange (a, b) {
+      console.log(a, b)
       this.form.unit = b.dispName
     },
     //  获取产品信息