浏览代码

:memo: 商品图片以及图片列表可上传多个

Twelve615 1 年之前
父节点
当前提交
f76731c3c8

+ 2 - 2
jlsb-vue/src/views/aa/modules/AaCommodityForm.vue

@@ -25,7 +25,7 @@
           </a-col>-->
           <a-col :span="24">
             <a-form-model-item label="图片" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="pic">
-              <j-image-upload :number="1" isMultiple  v-model="model.pic" ></j-image-upload>
+              <j-image-upload isMultiple  v-model="model.pic" ></j-image-upload>
             </a-form-model-item>
           </a-col>
           <a-col :span="24">
@@ -67,7 +67,7 @@
           </a-col>-->
           <a-col :span="24">
             <a-form-model-item label="介绍图片" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="introducePic">
-              <j-image-upload :number="1" isMultiple  v-model="model.introducePic" ></j-image-upload>
+              <j-image-upload isMultiple  v-model="model.introducePic" ></j-image-upload>
             </a-form-model-item>
           </a-col>
           <a-col :span="24">

+ 4 - 4
jlsb/jeecg-boot-module-system/src/main/java/org/jeecg/modules/aa/controller/APIIndexenterController.java

@@ -294,9 +294,9 @@ public class APIIndexenterController {
                 }
             }
 
-            for (int i = 0;i<list.size();i++){
-                list.get( i ).setPic( host + "/sys/common/static/"+list.get( i ).getPic() );
-            }
+            //for (int i = 0;i<list.size();i++){
+            //    list.get( i ).setPic( host + "/sys/common/static/"+list.get( i ).getPic() );
+            //}
             result.setMessage( "获取商品列表成功" );
             result.setResult( list );
             result.setCode( 200 );
@@ -316,7 +316,7 @@ public class APIIndexenterController {
         Result<AaCommodity> result = new Result<AaCommodity>();
         try {
             AaCommodity byId = aaCommodityService.getById( aaCommodityDTO.getId() );
-            byId.setPic( host + "/sys/common/static/"+byId.getPic() );
+            //byId.setPic( host + "/sys/common/static/"+byId.getPic() );
             byId.setVideo( host + "/sys/common/static/"+byId.getVideo() );
             result.setMessage( "获取商品详细成功" );
             result.setResult( byId );