mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
小区信息,小区审核页面添加删除小区按钮
This commit is contained in:
parent
8934ce2f9b
commit
9540c4dbf0
@ -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"
|
||||
|
||||
@ -80,6 +80,9 @@
|
||||
console.log('请求失败处理');
|
||||
vc.toast(errInfo);
|
||||
});
|
||||
},
|
||||
_openDeleteCommunityModal(_community){
|
||||
vc.emit('deleteCommunity','openDeleteCommunityModal',_community);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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'"
|
||||
|
||||
@ -73,6 +73,9 @@
|
||||
},
|
||||
_queryCommunityMethod:function(){
|
||||
vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_openDeleteCommunityModel(_community){
|
||||
vc.emit('deleteCommunity','openDeleteCommunityModal',_community);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user