viewPropertyFeeConfig.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. 权限组
  3. **/
  4. (function(vc){
  5. vc.extends({
  6. data:{
  7. feeConfigInfo:{
  8. configId:"",
  9. squarePrice:"",
  10. additionalAmount:""
  11. }
  12. },
  13. _initMethod:function(){
  14. vc.component.loadPropertyConfigFee();
  15. },
  16. _initEvent:function(){
  17. vc.on('viewPropertyFeeConfig','loadPropertyConfigFee',function(){
  18. vc.component.loadPropertyConfigFee();
  19. });
  20. },
  21. methods:{
  22. openConfigPropertyFeeModel:function(){
  23. vc.emit('configPropertyFee','openConfigPropertyFeeModel',feeConfigInfo);
  24. },
  25. loadPropertyConfigFee:function(){
  26. var param = {
  27. params:{
  28. communityId:vc.getCurrentCommunity().communityId,
  29. configId:feeConfigInfo.configId
  30. }
  31. };
  32. vc.http.get(
  33. 'viewPropertyFeeConfig',
  34. 'loadData',
  35. param,
  36. function(json,res){
  37. //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
  38. if(res.status == 200){
  39. //关闭model
  40. vc.copyObject(JSON.parse(json), vc.component.feeConfigInfo);
  41. return ;
  42. }
  43. vc.message(json);
  44. },
  45. function(errInfo,error){
  46. console.log('请求失败处理');
  47. vc.message(errInfo);
  48. });
  49. }
  50. }
  51. });
  52. })(window.vc);