| | |
| | | public ResponseEntity<String> getAreas(IPageData pd) { |
| | | ResponseEntity<String> responseEntity = null; |
| | | Assert.hasLength(pd.getUserId(), "用户还未登录请先登录"); |
| | | JSONObject param = JSONObject.parseObject(pd.getReqData()); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", ServiceConstant.SERVICE_API_URL + "/api/area.listAreas", HttpMethod.GET); |
| | | responseEntity = this.callCenterService(restTemplate, pd, mapToUrlParam(param), ServiceConstant.SERVICE_API_URL + "/api/area.listAreas", HttpMethod.GET); |
| | | |
| | | if (responseEntity.getStatusCode() == HttpStatus.OK) { |
| | | Assert.jsonObjectHaveKey(responseEntity.getBody(), "areas", "查询中心服务异常,不是有效json或未包含areas节点"); |
| | |
| | | param, |
| | | function (json, res) { |
| | | var _enterCommunitys = JSON.parse(json); |
| | | vc.component.addOrgInfo.belongCommunitys = _enterCommunitys.communitys; |
| | | vc.component.addOrgInfo.belongCommunitys = _enterCommunitys; |
| | | }, function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | } |
| | |
| | | vc.on('orgManage', 'listOrg', function (_param) { |
| | | //vc.copyObject(_param, vc.component.orgManageInfo.conditions); |
| | | vc.component._listOrgs(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | vc.component._listOrgTrees(vc.component.orgManageInfo.orgTree, '1', '', function () { |
| | | vc.component._loadBranchOrgTrees(); |
| | | }); |
| | | }); |
| | | vc.on('pagination', 'page_event', function (_currentPage) { |
| | | vc.component._listOrgs(_currentPage, DEFAULT_ROWS); |
| | |
| | | * @param {校验文本} text |
| | | */ |
| | | num:function(text){ |
| | | var regNum = /^[1-9][0-9]*$/; |
| | | var regNum = /^[0-9][0-9]*$/; |
| | | return regNum.test(text); |
| | | }, |
| | | date:function(str) { |