Commit 9a9a52d8 by Chao Sun

增长率bug修复

parent 7bd65581
...@@ -136,7 +136,10 @@ ...@@ -136,7 +136,10 @@
]; ];
}, },
selectLoanType(e){ selectLoanType(e){
if(this.loanType != e){
this.loanType = e; this.loanType = e;
this.clear();
}
}, },
errorDialog(type,content){ errorDialog(type,content){
// type 1 必填项校验 2 规则校验 // type 1 必填项校验 2 规则校验
......
...@@ -53,10 +53,9 @@ ...@@ -53,10 +53,9 @@
}, },
onLoad(){ onLoad(){
}, },
setup(props,content){ setup(props,content){
const cityInfo = props.cityInfo ? toRefs(props.cityInfo) : null; const cityInfo = props.cityInfo ? props.cityInfo : null;
const planningParams = props.planningParams ? toRefs(props.planningParams) : null; const planningParams = props.planningParams ? toRefs(props.planningParams) : null;
const sendData = (e) =>{ const sendData = (e) =>{
content.emit('getData',e); content.emit('getData',e);
...@@ -68,7 +67,6 @@ ...@@ -68,7 +67,6 @@
// const value = e.detail.value; // const value = e.detail.value;
}, },
onnodeclick(node) { onnodeclick(node) {
// console.log(node);
this.cityInfo = { this.cityInfo = {
...this.cityInfo, ...this.cityInfo,
cityId: node.value, cityId: node.value,
...@@ -88,19 +86,18 @@ ...@@ -88,19 +86,18 @@
}, },
confirmParams(){ confirmParams(){
const params = { const params = {
housePriceGrowthRate:this.editParamLists.filter(item=>item.alias==='housePriceGrowthRate')[0].value / 100,//房价增长率 housePriceGrowthRate:(this.editParamLists.filter(item=>item.alias==='housePriceGrowthRate')[0].value / 100).toFixed(4),//房价增长率
houseDepreciationRate:this.editParamLists.filter(item=>item.alias==='houseDepreciationRate')[0].value / 100,//房屋折旧率 houseDepreciationRate:(this.editParamLists.filter(item=>item.alias==='houseDepreciationRate')[0].value / 100).toFixed(4),//房屋折旧率
downPaymentMin:this.editParamLists.filter(item=>item.alias==='downPaymentMin')[0].value,//首付款最低成数(百分位) downPaymentMin:this.editParamLists.filter(item=>item.alias==='downPaymentMin')[0].value,//首付款最低成数(百分位)
interestRate:this.editParamLists.filter(item=>item.alias==='interestRate')[0].value / 100, //贷款年利率 interestRate:(this.editParamLists.filter(item=>item.alias==='interestRate')[0].value / 100).toFixed(4), //贷款年利率
tnvestmentRate:this.editParamLists.filter(item=>item.alias==='tnvestmentRate')[0].value / 100,//投资回报率 tnvestmentRate:(this.editParamLists.filter(item=>item.alias==='tnvestmentRate')[0].value / 100).toFixed(4),//投资回报率
incomeRate:this.editParamLists.filter(item=>item.alias==='incomeRate')[0].value / 100,//收入增长率 incomeRate:(this.editParamLists.filter(item=>item.alias==='incomeRate')[0].value / 100).toFixed(4),//收入增长率
acceptableLossRate:this.editParamLists.filter(item=>item.alias==='acceptableLossRate')[0].value / 100,//可接受本金损失率 acceptableLossRate:(this.editParamLists.filter(item=>item.alias==='acceptableLossRate')[0].value / 100).toFixed(4),//可接受本金损失率
} }
this.sendData(params) this.sendData(params)
}, },
// 获取房价增长率 // 获取房价增长率
queryCommercialHousingPrice(){ queryCommercialHousingPrice(){
console.log(this.cityInfo)
api.queryCommercialHousingPrice(this.cityInfo).then(res=>{ api.queryCommercialHousingPrice(this.cityInfo).then(res=>{
if(res['success']){ if(res['success']){
this.editParamLists.find(item=>item.alias==='housePriceGrowthRate')['value'] = res['data']['priceInfo']['rateB']; this.editParamLists.find(item=>item.alias==='housePriceGrowthRate')['value'] = res['data']['priceInfo']['rateB'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment