diff --git a/public/components/machine/deleteMeterMachine/deleteMeterMachine.html b/public/components/machine/deleteMeterMachine/deleteMeterMachine.html new file mode 100644 index 000000000..6bd86b40b --- /dev/null +++ b/public/components/machine/deleteMeterMachine/deleteMeterMachine.html @@ -0,0 +1,19 @@ + diff --git a/public/components/machine/deleteMeterMachine/deleteMeterMachine.js b/public/components/machine/deleteMeterMachine/deleteMeterMachine.js new file mode 100644 index 000000000..ba199a30e --- /dev/null +++ b/public/components/machine/deleteMeterMachine/deleteMeterMachine.js @@ -0,0 +1,52 @@ +(function(vc,vm){ + + vc.extends({ + data:{ + deleteMeterMachineInfo:{ + + } + }, + _initMethod:function(){ + + }, + _initEvent:function(){ + vc.on('deleteMeterMachine','openDeleteMeterMachineModal',function(_params){ + + vc.component.deleteMeterMachineInfo = _params; + $('#deleteMeterMachineModel').modal('show'); + + }); + }, + methods:{ + deleteMeterMachine:function(){ + vc.component.deleteMeterMachineInfo.communityId=vc.getCurrentCommunity().communityId; + vc.http.apiPost( + '/meterMachine.deleteMeterMachine', + JSON.stringify(vc.component.deleteMeterMachineInfo), + { + emulateJSON:true + }, + function(json,res){ + //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); + let _json = JSON.parse(json); + if (_json.code == 0) { + //关闭model + $('#deleteMeterMachineModel').modal('hide'); + vc.emit('meterMachineManage','listMeterMachine',{}); + return ; + } + vc.message(_json.msg); + }, + function(errInfo,error){ + console.log('请求失败处理'); + vc.message(json); + + }); + }, + closeDeleteMeterMachineModel:function(){ + $('#deleteMeterMachineModel').modal('hide'); + } + } + }); + +})(window.vc,window.vc.component); diff --git a/public/components/property/addFeeDiscount/addFeeDiscount.html b/public/components/property/addFeeDiscount/addFeeDiscount.html index 58457ef31..54ffd43cd 100755 --- a/public/components/property/addFeeDiscount/addFeeDiscount.html +++ b/public/components/property/addFeeDiscount/addFeeDiscount.html @@ -1,4 +1,4 @@ -