小区信息,小区审核页面添加删除小区按钮

This commit is contained in:
曾成 2020-04-24 14:50:28 +08:00
parent 8934ce2f9b
commit 9540c4dbf0
5 changed files with 21 additions and 2 deletions

View File

@ -36,9 +36,14 @@
<td>{{community.mapY}}</td>
<td>{{community.stateName}}</td>
<td>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openAuditCommunityModal(community)">审核
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openAuditCommunityModal(community)">审核
v-on:click="_openDeleteCommunityModal(community)">删除
</button>
</div>
@ -59,6 +64,7 @@
</div>
</div>
</div>
<vc:create name="deleteCommunity"></vc:create>
<vc:create name="audit"
callBackListener="auditCommunityManage"
callBackFunction="notifyAuditInfo"

View File

@ -80,6 +80,9 @@
console.log('请求失败处理');
vc.toast(errInfo);
});
},
_openDeleteCommunityModal(_community){
vc.emit('deleteCommunity','openDeleteCommunityModal',_community);
}
}

View File

@ -76,6 +76,12 @@
<td>{{community.cityName}}</td>
<td>{{community.stateName}}</td>
<td class="text-right">
<div class="btn-group"
v-if="community.state == '1200' && communityManageInfo.storeTypeCd == '800900000001'">
<button class="btn-white btn btn-xs"
v-on:click="_openDeleteCommunityModel(community)">删除
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-bind:disabled="community.state == '1100' && communityManageInfo.storeTypeCd != '800900000001'"

View File

@ -73,6 +73,9 @@
},
_queryCommunityMethod:function(){
vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
},
_openDeleteCommunityModel(_community){
vc.emit('deleteCommunity','openDeleteCommunityModal',_community);
}
}

View File

@ -19,7 +19,7 @@
},
methods:{
deleteCommunity:function(){
vc.component.deleteCommunityInfo.communityId=vc.getCurrentCommunity().communityId;
//vc.component.deleteCommunityInfo.communityId=vc.getCurrentCommunity().communityId;
vc.http.post(
'deleteCommunity',
'delete',
@ -33,6 +33,7 @@
//关闭model
$('#deleteCommunityModel').modal('hide');
vc.emit('communityManage','listCommunity',{});
vc.emit('auditCommunityManage','listCommunity',{});
return ;
}
vc.toast(json);