소스 검색

no message

una 4 달 전
부모
커밋
0000773692
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      src/views/goods/create.vue
  2. 3 3
      src/views/goods/edit.vue

+ 1 - 1
src/views/goods/create.vue

@@ -410,7 +410,7 @@
             <h4>基本信息</h4>
             <el-row>
               <el-col :span="12">
-                <el-form-item label="规格名称" prop="specification">
+                <el-form-item label="规格名称" prop="specifications">
                   <el-input v-model.trim="productForm.specifications" placeholder="前端spu展示的名称" />
                 </el-form-item>
               </el-col>

+ 3 - 3
src/views/goods/edit.vue

@@ -394,7 +394,7 @@
               <h4>基本信息</h4>
             <el-row>
               <el-col :span="12">
-            <el-form-item label="规格名称" prop="specification">
+            <el-form-item label="规格名称" prop="specifications">
               <el-input v-model.trim="productForm.specifications" placeholder="前端spu展示的名称" />
             </el-form-item>
               </el-col>
@@ -1659,7 +1659,7 @@ export default {
 
       },
       productRules: {
-        specification: [
+        specifications: [
           { required: true, message: "规格名称不能为空", trigger: "blur" }
         ],
         shortName: [
@@ -2660,7 +2660,7 @@ export default {
           this.productForm.noServiceTimeRange=this.noServiceRanges;
       this.$refs["productForm"].validate(valid => {
         if (valid) {
-          this.productForm.specifications = [this.productForm.specification];
+         
           this.productForm.updateTime = "";
           //判断售价
           if (