Sfoglia il codice sorgente

优化编辑业主时照片不显示问题

wuxw 6 anni fa
parent
commit
590e04fde4

+ 5 - 0
WebService/src/main/resources/components/ownerPackage/edit-owner/editOwner.html

@@ -46,6 +46,11 @@
                                 <div class="col-sm-10"><input v-model="editOwnerInfo.remark" type="tel"
                                                               placeholder="可填,请填写备注" class="form-control"></div>
                             </div>
+                            <div class="form-group row">
+                                <label class="col-sm-2 col-form-label">照片</label>
+                                <div class="col-sm-10"><img width="100%" height="100%"
+                                                            v-bind:src="editOwnerInfo.ownerPhoto" alt="业主照片"></div>
+                            </div>
                         </div>
 
                     </div>

+ 1 - 1
WebService/src/main/resources/components/ownerPackage/edit-owner/editOwner.js

@@ -25,7 +25,7 @@
                 vc.copyObject(_owner,vc.component.editOwnerInfo);
                 //根据memberId 查询 照片信息
                 vc.component.editOwnerInfo.ownerPhoto = "https://hc.demo.winqi.cn/callComponent/download/getFileByObjId/file?objId="+
-                   vc.component.editOwnerInfo.memberId +"&communityId="+vc.getCommunitys().communityId;
+                   vc.component.editOwnerInfo.memberId +"&communityId="+vc.getCurrentCommunity().communityId+"fileTypeCd=10000";
                 $('#editOwnerModel').modal('show');
                 vc.component._initAddOwnerMediaForEdit();
             });