Browse Source

添加型号图片

LuoDLeo 3 months ago
parent
commit
2d1434b07e
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/views/facility/facilitymodel.vue

+ 16 - 0
src/views/facility/facilitymodel.vue

@@ -86,6 +86,22 @@
                 trigger: "blur"
               }]
             },
+            {
+              label: '门店图片',
+              prop: 'facilityImage',
+              type: 'upload',
+              listType: 'picture-img',
+              loadText: '上传中,请稍等',
+              accept: 'image/png, image/jpeg',
+              fileSize: 500,
+              tip: '建议尺寸:750×420;只能上传jpg/png文件,且不超过500kb',
+              span: 24,
+              propsHttp: {
+                res: 'data',
+                url: 'link',
+              },
+              action: "/api/blade-resource/oss/endpoint/put-file-attach"
+            },
           ]
         },
         data: []