浏览代码

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>
             <h4>基本信息</h4>
             <el-row>
             <el-row>
               <el-col :span="12">
               <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-input v-model.trim="productForm.specifications" placeholder="前端spu展示的名称" />
                 </el-form-item>
                 </el-form-item>
               </el-col>
               </el-col>

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

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