优化解绑问题

This commit is contained in:
java110 2020-07-09 09:13:07 +08:00
parent b13d1a09f6
commit 62d9e3d3b2
6 changed files with 133 additions and 55 deletions

4
app.js
View File

@ -33,8 +33,8 @@ let opts = {
//app.use('/callComponent',proxy('https://app.demo.winqi.cn/',opts));
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012/',opts));
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
//app.listen(3000);

View File

@ -30,7 +30,7 @@
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
let _json = JSON.parse(json);
//let data = res.data;
if (_json.code == 200) {
if (_json.code == 200 || _json.code == 0) {
//关闭model
$('#deleteJobModel').modal('hide');
vc.component.clearAddJobInfo();

View File

@ -0,0 +1,19 @@
<div class="modal fade" id="deleteAppUserBindingOwnerModel" 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="closeDeleteAppUserBindingOwnerModel()">点错了</button>
<button type="button" class="btn btn-primary" v-on:click="deleteAppUserBindingOwner()">确认</button>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,54 @@
(function(vc,vm){
vc.extends({
data:{
deleteAppUserBindingOwnerInfo:{
}
},
_initMethod:function(){
},
_initEvent:function(){
vc.on('deleteAppUserBindingOwner','openDeleteAppUserBindingOwnerModal',function(_params){
vc.component.deleteAppUserBindingOwnerInfo = _params;
$('#deleteAppUserBindingOwnerModel').modal('show');
});
},
methods:{
deleteAppUserBindingOwner:function(){
//vc.component.deleteAppUserBindingOwnerInfo.communityId=vc.getCurrentCommunity().communityId;
vc.http.apiPost(
'owner.deleteAppUserBindingOwner',
JSON.stringify(vc.component.deleteAppUserBindingOwnerInfo),
{
emulateJSON:true
},
function(json,res){
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
//let _json = JSON.parse(json);
//let data = res.data;
if (res.status == 200) {
//关闭model
$('#deleteAppUserBindingOwnerModel').modal('hide');
//vc.component.clearAddAppUserBindingOwnerInfo();
vc.emit('auditAppUserBindingOwnerManage','listAuditAppUserBindingOwner', {});
return;
}
vc.toast(json);
},
function(errInfo,error){
console.log('请求失败处理');
vc.toast(errInfo);
});
},
closeDeleteAppUserBindingOwnerModel:function(){
$('#deleteAppUserBindingOwnerModel').modal('hide');
}
}
});
})(window.vc,window.vc.component);

View File

@ -1,4 +1,4 @@
<div class="animated fadeInRight ecommerce">
<div class="animated fadeInRight ecommerce">
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
@ -6,7 +6,7 @@
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
v-on:click="_moreCondition()">{{auditAppUserBindingOwnerManageInfo.moreCondition ==
v-on:click="_moreCondition()">{{auditAppUserBindingOwnerManageInfo.moreCondition ==
true?'隐藏':'更多'}}
</button>
</div>
@ -16,15 +16,15 @@
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入业主名称"
v-model="auditAppUserBindingOwnerManageInfo.conditions.appUserName"
class=" form-control">
v-model="auditAppUserBindingOwnerManageInfo.conditions.appUserName"
class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入业主身份证"
v-model="auditAppUserBindingOwnerManageInfo.conditions.idCard"
class=" form-control">
v-model="auditAppUserBindingOwnerManageInfo.conditions.idCard"
class=" form-control">
</div>
</div>
<div class="col-sm-3">
@ -36,7 +36,7 @@
</select></div>
<div class="col-sm-1">
<button type="button" class="btn btn-primary btn-sm"
v-on:click="_queryAuditAppUserBindingOwnerMethod()">
v-on:click="_queryAuditAppUserBindingOwnerMethod()">
<i class="fa fa-search"></i> 查询
</button>
</div>
@ -45,8 +45,7 @@
<div class="col-sm-4" v-if="auditAppUserBindingOwnerManageInfo.moreCondition == true">
<div class="form-group">
<input type="text" placeholder="请输入业主手机"
v-model="auditAppUserBindingOwnerManageInfo.conditions.link"
class=" form-control">
v-model="auditAppUserBindingOwnerManageInfo.conditions.link" class=" form-control">
</div>
</div>
</div>
@ -66,51 +65,55 @@
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny"
data-page-size="15"
>
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">绑定ID</th>
<th class="text-center">业主ID</th>
<th class="text-center">小区ID</th>
<th class="text-center">小区名称</th>
<th class="text-center">关联业主</th>
<th class="text-center">身份证</th>
<th class="text-center">手机号</th>
<th class="text-center">状态</th>
<th class="text-center">申请时间</th>
<th class="text-center">操作</th>
</tr>
<tr>
<th class="text-center">绑定ID</th>
<th class="text-center">业主ID</th>
<th class="text-center">小区ID</th>
<th class="text-center">小区名称</th>
<th class="text-center">关联业主</th>
<th class="text-center">身份证</th>
<th class="text-center">手机号</th>
<th class="text-center">状态</th>
<th class="text-center">申请时间</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="auditAppUserBindingOwner in auditAppUserBindingOwnerManageInfo.auditAppUserBindingOwners">
<td class="text-center">{{auditAppUserBindingOwner.appUserId}}</td>
<td class="text-center">{{auditAppUserBindingOwner.memberId}}</td>
<td class="text-center">{{auditAppUserBindingOwner.communityId}}</td>
<td class="text-center">{{auditAppUserBindingOwner.communityName}}</td>
<td class="text-center">{{auditAppUserBindingOwner.appUserName}}</td>
<td class="text-center">{{auditAppUserBindingOwner.idCard}}</td>
<td class="text-center">{{auditAppUserBindingOwner.link}}</td>
<td class="text-center">{{auditAppUserBindingOwner.stateName}}</td>
<td class="text-center">{{auditAppUserBindingOwner.createTime}}</td>
<td class="text-center">
<div class="btn-group" v-if="auditAppUserBindingOwner.state == '10000'">
<button class="btn-white btn btn-xs"
<tr
v-for="auditAppUserBindingOwner in auditAppUserBindingOwnerManageInfo.auditAppUserBindingOwners">
<td class="text-center">{{auditAppUserBindingOwner.appUserId}}</td>
<td class="text-center">{{auditAppUserBindingOwner.memberId}}</td>
<td class="text-center">{{auditAppUserBindingOwner.communityId}}</td>
<td class="text-center">{{auditAppUserBindingOwner.communityName}}</td>
<td class="text-center">{{auditAppUserBindingOwner.appUserName}}</td>
<td class="text-center">{{auditAppUserBindingOwner.idCard}}</td>
<td class="text-center">{{auditAppUserBindingOwner.link}}</td>
<td class="text-center">{{auditAppUserBindingOwner.stateName}}</td>
<td class="text-center">{{auditAppUserBindingOwner.createTime}}</td>
<td class="text-center">
<div class="btn-group" v-if="auditAppUserBindingOwner.state == '10000'">
<button class="btn-white btn btn-xs"
v-on:click="_openAuditAppUserBindingOwnerModel(auditAppUserBindingOwner)">
审核
</button>
</div>
</td>
审核
</button>
</div>
</tr>
<button class="btn-white btn btn-xs"
v-on:click="_deleteAppUserBindingOwnerModel(auditAppUserBindingOwner)">
解绑
</button>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
@ -119,10 +122,9 @@
</div>
</div>
</div>
<vc:create path="common/audit"
callBackListener="auditAppUserBindingOwnerManage"
callBackFunction="auditMessage"
>
<vc:create path="common/audit" callBackListener="auditAppUserBindingOwnerManage" callBackFunction="auditMessage">
</vc:create>
</div>
<vc:create path="property/deleteAppUserBindingOwner"></vc:create>
</div>

View File

@ -99,6 +99,9 @@
},
_queryAuditAppUserBindingOwnerMethod:function () {
vc.component._listAuditAppUserBindingOwners(DEFAULT_PAGE, DEFAULT_ROWS);
},
_deleteAppUserBindingOwnerModel:function(_auditAppUserBindingOwner){
vc.emit('deleteAppUserBindingOwner','openDeleteAppUserBindingOwnerModal',_auditAppUserBindingOwner);
}