Bladeren bron

优化小区二次添加显示

wuxw 6 jaren geleden
bovenliggende
commit
2c2b60922e

+ 3 - 2
WebService/src/main/resources/components/orgPackage/add-org/addOrg.js

@@ -30,8 +30,7 @@
         }
         ,
         _initMethod: function () {
-            //查询入驻的小区
-            vc.component._loadAddEnterCommunitys();
+
         }
         ,
         _initEvent: function () {
@@ -43,6 +42,8 @@
                         vc.component.addOrgInfo.belongCommunityId = _param.belongCommunityId;
                     }
                 }
+                //查询入驻的小区
+                vc.component._loadAddEnterCommunitys();
                 $('#addOrgModel').modal('show');
             });
         }

+ 1 - 1
WebService/src/main/resources/components/orgPackage/edit-org/editOrg.html

@@ -34,7 +34,7 @@
                             <div class="form-group row">
                                 <label class="col-sm-2 col-form-label">隶属小区</label>
                                 <div class="col-sm-10">
-                                    <select class="custom-select" v-model="editOrgInfo.belongCommunityId" v-bind:disabled="addOrgInfo.orgLevel == 3">
+                                    <select class="custom-select" v-model="editOrgInfo.belongCommunityId" v-bind:disabled="editOrgInfo.orgLevel == 3">
                                         <option selected disabled value="">必填,请选择隶属小区</option>
                                         <option  value="9999">入驻所有小区</option>
                                         <option v-for="belongCommunity in editOrgInfo.belongCommunitys" :value="belongCommunity.communityId">