mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
c9dc28586b
commit
da56e33cb4
@ -48,8 +48,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
//发送get请求
|
//发送get请求
|
||||||
vc.http.get('serviceManage',
|
vc.http.apiGet('/service.listServices',
|
||||||
'list',
|
|
||||||
param,
|
param,
|
||||||
function(json, res) {
|
function(json, res) {
|
||||||
var _serviceManageInfo = JSON.parse(json);
|
var _serviceManageInfo = JSON.parse(json);
|
||||||
@ -61,7 +60,8 @@
|
|||||||
dataCount: vc.component.serviceManageInfo.total,
|
dataCount: vc.component.serviceManageInfo.total,
|
||||||
currentPage: _page
|
currentPage: _page
|
||||||
});
|
});
|
||||||
},function(errInfo,error){
|
},
|
||||||
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -96,9 +96,9 @@
|
|||||||
_loadDataByParam: function() {
|
_loadDataByParam: function() {
|
||||||
vc.component.serviceManageInfo.conditions.appId = vc.getParam("appId");
|
vc.component.serviceManageInfo.conditions.appId = vc.getParam("appId");
|
||||||
//如果 floodId 没有传 则,直接结束
|
//如果 floodId 没有传 则,直接结束
|
||||||
if(vc.component.serviceManageInfo.conditions.appId == null
|
if (vc.component.serviceManageInfo.conditions.appId == null ||
|
||||||
|| vc.component.serviceManageInfo.conditions.appId == undefined
|
vc.component.serviceManageInfo.conditions.appId == undefined ||
|
||||||
|| vc.component.serviceManageInfo.conditions.appId == ''){
|
vc.component.serviceManageInfo.conditions.appId == '') {
|
||||||
vc.component._listServices(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listServices(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user