Procházet zdrojové kódy

店铺上传商品优化

yjwang před 2 dny
rodič
revize
490a37e896
1 změnil soubory, kde provedl 26 přidání a 2 odebrání
  1. 26 2
      src/views/store/storeProduct/index.vue

+ 26 - 2
src/views/store/storeProduct/index.vue

@@ -1287,21 +1287,45 @@ export default {
           this.$refs.form.validateField('gmpAuthExpire');
         }
       });
-    },
-    imageArr: function (val) {
+    },    imageArr: function (val) {
       this.form.image = val.join(',')
+      this.$nextTick(() => {
+        if (this.$refs.form) {
+          this.$refs.form.validateField('image');
+        }
+      });
     },
     photoArr: function (val) {
       this.form.sliderImage = val.join(',')
+      this.$nextTick(() => {
+        if (this.$refs.form) {
+          this.$refs.form.validateField('sliderImage');
+        }
+      });
     },
     drugImageArr: function (val) {
       this.form.drugImage = val.join(',');
+      this.$nextTick(() => {
+        if (this.$refs.form) {
+          this.$refs.form.validateField('drugImageArr');
+        }
+      });
     },
     qualificationArr: function (val) {
       this.form.qualificationCertificate = val.join(',');
+      this.$nextTick(() => {
+        if (this.$refs.form) {
+          this.$refs.form.validateField('qualificationCertificate');
+        }
+      });
     },
     businessArr:function(val) {
       this.form.business = val.join(',');
+      this.$nextTick(() => {
+        if (this.$refs.form) {
+          this.$refs.form.validateField('business');
+        }
+      });
     },
     'form.cateId': {
       handler(newVal) {