mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化代码
This commit is contained in:
parent
bcf3ee4e51
commit
ae27483ca5
@ -22,22 +22,21 @@
|
||||
//vc.component.deleteAppUserBindingOwnerInfo.communityId=vc.getCurrentCommunity().communityId;
|
||||
vc.http.apiPost(
|
||||
'owner.deleteAppUserBindingOwner',
|
||||
JSON.stringify(vc.component.deleteAppUserBindingOwnerInfo),
|
||||
{
|
||||
JSON.stringify(vc.component.deleteAppUserBindingOwnerInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
//let _json = JSON.parse(json);
|
||||
let _json = JSON.parse(json);
|
||||
//let data = res.data;
|
||||
if (res.status == 200) {
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#deleteAppUserBindingOwnerModel').modal('hide');
|
||||
//vc.component.clearAddAppUserBindingOwnerInfo();
|
||||
vc.emit('auditAppUserBindingOwnerManage', 'listAuditAppUserBindingOwner', {});
|
||||
return;
|
||||
}
|
||||
vc.toast(json);
|
||||
vc.toast(_json.msg);
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
|
||||
@ -46,11 +46,10 @@
|
||||
params: vc.component.auditAppUserBindingOwnerManageInfo.conditions
|
||||
};
|
||||
//发送get请求
|
||||
vc.http.get('auditAppUserBindingOwnerManage',
|
||||
'list',
|
||||
vc.http.apiGet('/owner.listAuditAppUserBindingOwners',
|
||||
param,
|
||||
function(json, res) {
|
||||
var _auditAppUserBindingOwnerManageInfo = JSON.parse(json);
|
||||
let _auditAppUserBindingOwnerManageInfo = JSON.parse(json);
|
||||
vc.component.auditAppUserBindingOwnerManageInfo.total = _auditAppUserBindingOwnerManageInfo.total;
|
||||
vc.component.auditAppUserBindingOwnerManageInfo.records = _auditAppUserBindingOwnerManageInfo.records;
|
||||
vc.component.auditAppUserBindingOwnerManageInfo.auditAppUserBindingOwners = _auditAppUserBindingOwnerManageInfo.auditAppUserBindingOwners;
|
||||
@ -59,7 +58,8 @@
|
||||
dataCount: vc.component.auditAppUserBindingOwnerManageInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
@ -74,14 +74,14 @@
|
||||
//发送get请求
|
||||
vc.http.post('auditAppUserBindingOwnerManage',
|
||||
'audit',
|
||||
JSON.stringify(_auditInfo),
|
||||
{
|
||||
JSON.stringify(_auditInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
vc.toast("处理成功");
|
||||
vc.component._listAuditAppUserBindingOwners(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
}, function (errInfo, error) {
|
||||
},
|
||||
function(errInfo, error) {
|
||||
console.log('请求失败处理');
|
||||
vc.toast("处理失败:" + errInfo);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user