Преглед на файлове

解决编辑产品类别和编辑产品是的参数问题

zhuliu преди 1 година
родител
ревизия
8997c10830
променени са 2 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 2 0
      src/views/pms/product/components/ProductInfoDetail.vue
  2. 2 0
      src/views/pms/productCate/components/ProductCateDetail.vue

+ 2 - 0
src/views/pms/product/components/ProductInfoDetail.vue

@@ -222,6 +222,8 @@
         this.value.fileGuids = guids
         if(this.selectProductCateValue && this.selectProductCateValue.length>0){
           this.value.productCategoryId = this.selectProductCateValue[this.selectProductCateValue.length-1]
+        }else{
+          this.value.productCategoryId = null
         }
         console.log(this.selectProductCateValue)
         this.$refs[formName].validate((valid) => {

+ 2 - 0
src/views/pms/productCate/components/ProductCateDetail.vue

@@ -189,6 +189,8 @@
         this.productCate.fileGuids = guids
         if(this.parentId && this.parentId.length>0){
           this.productCate.parentId = this.parentId[this.parentId.length-1]
+        }else{
+          this.productCate.parentId = null
         }
         this.$refs[formName].validate((valid) => {
           if (valid) {