Ver Fonte

1、图片上传存储

billisme há 4 anos atrás
pai
commit
39c0a337a6

+ 1 - 1
src/views/community/building.vue

@@ -167,7 +167,7 @@ export default {
             label: "图片",
             prop: "pic",
             type: 'upload',
-            dataType: 'string',
+            // dataType: 'string',
             hide: true,
             propsHttp: {
               res: "data",

+ 2 - 1
src/views/community/residentialManage.vue

@@ -323,7 +323,8 @@ export default {
             type: 'upload',
             hide: true,
             propsHttp: {
-              url: 'data'
+              res: "data",
+              url: 'link'
             },
             listType: 'picture-img',
             span: 24,

+ 5 - 3
src/views/party/member.vue

@@ -164,15 +164,17 @@
             {
               label: "党员证件",
               prop: "memberPic",
+              type: "upload",
               hide: true,
               listType: "picture-img",
-              action: "/api/upload/put-file",
+              action: "/api/blade-resource/oss/endpoint/put-file",
               propsHttp: {
-                url: "data"
+                url: "link",
+                res: "data"
               },
               type: "upload",
               rules: [{
-                required: true,
+                required: false,
                 message: "请上传党员证件图像",
                 trigger: "blur"
               }]