wuxw
2020-02-19 0b96347400ccb6256d726157fe4c165f5bae015d
加入审核撤回功能
3个文件已添加
2个文件已修改
127 ■■■■■ 已修改文件
WebService/src/main/java/com/java110/web/components/community/RecallAuditEnterFinishCommunityComponent.java 46 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/resources/components/communityPackage/audit-enter-community-manage/auditEnterCommunityManage.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/resources/components/communityPackage/audit-enter-community-manage/auditEnterCommunityManage.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/resources/components/communityPackage/recallAuditEnterFinishCommunity/recallAuditEnterFinishCommunity.html 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/resources/components/communityPackage/recallAuditEnterFinishCommunity/recallAuditEnterFinishCommunity.js 56 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebService/src/main/java/com/java110/web/components/community/RecallAuditEnterFinishCommunityComponent.java
New file
@@ -0,0 +1,46 @@
package com.java110.web.components.community;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.context.IPageData;
import com.java110.core.context.PageData;
import com.java110.web.smo.community.IAuditEnterCommunitySMO;
import com.java110.web.smo.community.IListAuditEnterCommunitysSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
 * 小区审核
 * <p>
 * add by wuxw
 * <p>
 * 2019-06-29
 */
@Component("recallAuditEnterFinishCommunity")
public class RecallAuditEnterFinishCommunityComponent {
    @Autowired
    private IAuditEnterCommunitySMO auditEnterCommunitySMOImpl;
    /**
     * 审核 小区
     *
     * @param pd 页面数据封装
     * @return 返回 ResponseEntity 对象
     */
    public ResponseEntity<String> recall(IPageData pd) {
        return auditEnterCommunitySMOImpl.auditEnterCommunity(pd);
    }
    public IAuditEnterCommunitySMO getAuditEnterCommunitySMOImpl() {
        return auditEnterCommunitySMOImpl;
    }
    public void setAuditEnterCommunitySMOImpl(IAuditEnterCommunitySMO auditEnterCommunitySMOImpl) {
        this.auditEnterCommunitySMOImpl = auditEnterCommunitySMOImpl;
    }
}
WebService/src/main/resources/components/communityPackage/audit-enter-community-manage/auditEnterCommunityManage.html
@@ -107,6 +107,7 @@
                                <!--v-on:click="_openEnterAuditCommunityModal(community)"-->
                                <div class="btn-group" v-if="community.auditStatusCd!='1000'">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openRecallAuditFinishCommunityModal(community)
                                            >撤回审核
                                    </button>
                                </div>
@@ -132,5 +133,7 @@
               callBackListener="auditEnterCommunityManage"
               callBackFunction="notifyAuditInfo"
    ></vc:create>
    <!--撤回审核-->
    <vc:create name="recallAuditEnterFinishCommunity"></vc:create>
</div>
WebService/src/main/resources/components/communityPackage/audit-enter-community-manage/auditEnterCommunityManage.js
@@ -66,6 +66,9 @@
                vc.component.auditEnterCommunityManageInfo.currentCommunityMemberId = _community.communityMemberId;
                vc.emit('audit','openAuditModal',{});
            },
            _openRecallAuditFinishCommunityModal:function(_community){
                vc.emit('recallAuditEnterFinishCommunity','openRecallAuditEnterFinishCommunityModal',_community);
            },
            _auditEnterCommunityState:function(_auditInfo){
                _auditInfo.communityMemberId = vc.component.auditEnterCommunityManageInfo.currentCommunityMemberId;
                vc.http.post(
WebService/src/main/resources/components/communityPackage/recallAuditEnterFinishCommunity/recallAuditEnterFinishCommunity.html
New file
@@ -0,0 +1,19 @@
<div class="modal fade" id="recallAuditEnterFinishCommunityModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">请确认您的操作!</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <tr align="center"><th>确定撤回审核</th></tr>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal" v-on:click="closeRecallAuditEnterFinishCommunityModel()">点错了</button>
                <button type="button" class="btn btn-primary" v-on:click="recallAuditEnterFinishCommunity()">确认撤回</button>
            </div>
        </div>
    </div>
</div>
WebService/src/main/resources/components/communityPackage/recallAuditEnterFinishCommunity/recallAuditEnterFinishCommunity.js
New file
@@ -0,0 +1,56 @@
(function(vc,vm){
    vc.extends({
        data:{
            recallAuditEnterFinishCommunityInfo:{
            }
        },
         _initMethod:function(){
         },
         _initEvent:function(){
             vc.on('recallAuditEnterFinishCommunity','openRecallAuditEnterFinishCommunityModal',function(_params){
                vc.component.recallAuditEnterFinishCommunityInfo = _params;
                $('#recallAuditEnterFinishCommunityModel').modal('show');
            });
        },
        methods:{
            recallAuditEnterFinishCommunity:function(){
                var _paramObj = {
                    communityMemberId:vc.component.recallAuditEnterFinishCommunityInfo.communityMemberId,
                    state:'1000',
                    remark:'撤回审核'
                };
                vc.http.post(
                    'recallAuditEnterFinishCommunity',
                    'recall',
                    JSON.stringify(_paramObj),
                    {
                        emulateJSON:true
                     },
                     function(json,res){
                        //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
                        if(res.status == 200){
                            //关闭model
                            $('#recallAuditEnterFinishCommunityModel').modal('hide');
                            vc.emit('auditEnterCommunityManage','listCommunity',{});
                            return ;
                        }
                        vc.message(json);
                     },
                     function(errInfo,error){
                        console.log('请求失败处理');
                        vc.message(json);
                     });
            },
            closeRecallAuditEnterFinishCommunityModel:function(){
                $('#recallAuditEnterFinishCommunityModel').modal('hide');
            }
        }
    });
})(window.vc,window.vc.component);