Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sfp-program
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
sfp-program
Commits
9a9a52d8
Commit
9a9a52d8
authored
Oct 08, 2022
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增长率bug修复
parent
7bd65581
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
pages/housePurchase/loanBalance.vue
+4
-1
pages/housePurchase/planningParameters.vue
+7
-10
No files found.
pages/housePurchase/loanBalance.vue
View file @
9a9a52d8
...
...
@@ -136,7 +136,10 @@
];
},
selectLoanType
(
e
){
this
.
loanType
=
e
;
if
(
this
.
loanType
!=
e
){
this
.
loanType
=
e
;
this
.
clear
();
}
},
errorDialog
(
type
,
content
){
// type 1 必填项校验 2 规则校验
...
...
pages/housePurchase/planningParameters.vue
View file @
9a9a52d8
...
...
@@ -53,10 +53,9 @@
},
onLoad
(){
},
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
sendData
=
(
e
)
=>
{
content
.
emit
(
'getData'
,
e
);
...
...
@@ -68,7 +67,6 @@
// const value = e.detail.value;
},
onnodeclick
(
node
)
{
// console.log(node);
this
.
cityInfo
=
{
...
this
.
cityInfo
,
cityId
:
node
.
value
,
...
...
@@ -88,19 +86,18 @@
},
confirmParams
(){
const
params
=
{
housePriceGrowthRate
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'housePriceGrowthRate'
)[
0
].
value
/
100
,
//房价增长率
houseDepreciationRate
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'houseDepreciationRate'
)[
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
).
toFixed
(
4
)
,
//房屋折旧率
downPaymentMin
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'downPaymentMin'
)[
0
].
value
,
//首付款最低成数(百分位)
interestRate
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'interestRate'
)[
0
].
value
/
100
,
//贷款年利率
tnvestmentRate
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'tnvestmentRate'
)[
0
].
value
/
100
,
//投资回报率
incomeRate
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'incomeRate'
)[
0
].
value
/
100
,
//收入增长率
acceptableLossRate
:
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'acceptableLossRate'
)[
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
).
toFixed
(
4
)
,
//投资回报率
incomeRate
:
(
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'incomeRate'
)[
0
].
value
/
100
).
toFixed
(
4
)
,
//收入增长率
acceptableLossRate
:
(
this
.
editParamLists
.
filter
(
item
=>
item
.
alias
===
'acceptableLossRate'
)[
0
].
value
/
100
).
toFixed
(
4
)
,
//可接受本金损失率
}
this
.
sendData
(
params
)
},
// 获取房价增长率
queryCommercialHousingPrice
(){
console
.
log
(
this
.
cityInfo
)
api
.
queryCommercialHousingPrice
(
this
.
cityInfo
).
then
(
res
=>
{
if
(
res
[
'success'
]){
this
.
editParamLists
.
find
(
item
=>
item
.
alias
===
'housePriceGrowthRate'
)[
'value'
]
=
res
[
'data'
][
'priceInfo'
][
'rateB'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment