| | |
| | | } |
| | | }, |
| | | _initMethod: function () { |
| | | $that._listContractDetails() |
| | | vc.component._listContractDetails() |
| | | }, |
| | | _initEvent: function () { |
| | | |
| | |
| | | } |
| | | }; |
| | | //发送get请求 |
| | | vc.http.apiGet('/contract/queryContractChangePlanDetail', |
| | | vc.http.apiGet('/contract/queryContract', |
| | | param, |
| | | function (json, res) { |
| | | var _contractChangeManageInfo = JSON.parse(json); |
| | | var _contractManageInfo = JSON.parse(json); |
| | | |
| | | console.log('666',_contractChangeManageInfo); |
| | | _contractChangeManageInfo.data.sort(function (_child, _newChild) { |
| | | return _newChild.operate.charCodeAt(0) - _child.operate.charCodeAt(0) |
| | | }); |
| | | vc.component.contractChangeDetailsInfo.contractDetails = _contractChangeManageInfo.data; |
| | | console.log('合同详情数据:', _contractManageInfo); |
| | | vc.component.contractChangeDetailsInfo.contractDetails = _contractManageInfo.data; |
| | | |
| | | |
| | | }, function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | console.log('请求失败处理:', errInfo); |
| | | } |
| | | ); |
| | | }, |