Kaynağa Gözat

入驻小区 和退订开发测试完成

吴学文 7 yıl önce
ebeveyn
işleme
4348c321df

+ 1 - 1
WebService/src/main/resources/components/enter-community/enterCommunity.html

@@ -48,7 +48,7 @@
                                 {{community.cityCode}}
                                 {{community.cityCode}}
                             </td>
                             </td>
                             <td>
                             <td>
-                                {{community.statusCd == 0 ? '在用': '审核中'}}
+                                {{_showCommunityStatus(community.statusCd)}}
                             </td>
                             </td>
                             <td class="text-right">
                             <td class="text-right">
                                 <div class="btn-group" v-if="community.statusCd == 0">
                                 <div class="btn-group" v-if="community.statusCd == 0">

+ 9 - 0
WebService/src/main/resources/components/enter-community/enterCommunity.js

@@ -40,6 +40,15 @@
             },
             },
             _openExitCommunityModel:function(_community){
             _openExitCommunityModel:function(_community){
                 vc.emit('storeExitCommunity','openStoreExitCommunityModal',_community);
                 vc.emit('storeExitCommunity','openStoreExitCommunityModal',_community);
+            },
+            _showCommunityStatus(_statusCd){
+                if(_statusCd == '1000'){
+                    return "入驻审核";
+                }else if(_statusCd == '1001'){
+                    return "退出审核";
+                }
+
+                return "在用";
             }
             }
         }
         }
     });
     });

WebService/src/main/resources/components/store_exit_community/storeExitCommunity.html → WebService/src/main/resources/components/store-exit-community/storeExitCommunity.html


+ 7 - 5
WebService/src/main/resources/components/store_exit_community/storeExitCommunity.js

@@ -2,7 +2,8 @@
     vc.extends({
     vc.extends({
         data:{
         data:{
             storeExitCommunityInfo:{
             storeExitCommunityInfo:{
-                communityInfo:{}
+                communityInfo:{},
+                errorInfo:''
             }
             }
         },
         },
         _initEvent:function(){
         _initEvent:function(){
@@ -28,18 +29,19 @@
                         //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
                         //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
                         if(res.status == 200){
                         if(res.status == 200){
                             //关闭model
                             //关闭model
-                            $('#deleteStaffModel').modal('hide');
-                            vc.component.$emit('deleteStaff_reload_event',{});
+                            $('#storeExitCommunityModal').modal('hide');
+                            vc.emit('enterCommunity','listMyCommunity',{});
                             return ;
                             return ;
                         }
                         }
-                        vc.component.deleteStaffInfo.errorInfo = json;
+                        vc.component.storeExitCommunityInfo.errorInfo = json;
                      },
                      },
                      function(errInfo,error){
                      function(errInfo,error){
                         console.log('请求失败处理');
                         console.log('请求失败处理');
 
 
-                        vc.component.deleteStaffInfo.errorInfo = errInfo;
+                        vc.component.storeExitCommunityInfo.errorInfo = errInfo;
                      });
                      });
             }
             }
+
         }
         }
     });
     });
 })(window.vc);
 })(window.vc);