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
e82a8299
Commit
e82a8299
authored
Oct 25, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全部清空把学历参数清楚
parent
14160e5f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
12 deletions
+26
-12
index.html
+2
-2
pages/childEdu/childEdu.vue
+24
-10
No files found.
index.html
View file @
e82a8299
...
...
@@ -17,7 +17,7 @@
<div
id=
"app"
>
<!--app-html-->
</div>
<script
type=
"module"
src=
"/main.js"
></script>
<!-- 移动端调试 -->
<
!-- <
script type="text/javascript" src="//cdn.jsdelivr.net/npm/eruda"></script>
<script>eruda.init();</script>
-->
<script
type=
"text/javascript"
src=
"//cdn.jsdelivr.net/npm/eruda"
></script>
<script>
eruda
.
init
();
</script>
</body>
</html>
pages/childEdu/childEdu.vue
View file @
e82a8299
...
...
@@ -44,11 +44,11 @@
<li
class=
"planGradeRange"
>
<div>
规划阶段
</div>
<div>
<uni-data-picker
placeholder=
"
起始规划"
popup-title=
"请选择起始规划
阶段"
:localdata=
"dataTree"
v-model=
"eduPlanParam.startPlan"
<uni-data-picker
placeholder=
"
规划开始"
popup-title=
"请选择规划开始
阶段"
:localdata=
"dataTree"
v-model=
"eduPlanParam.startPlan"
@
change=
"onchange"
@
nodeclick=
"onnodeclick"
>
</uni-data-picker>
<text></text>
<uni-data-picker
placeholder=
"
结束规划"
popup-title=
"请选择结束规划
阶段"
:localdata=
"dataTree"
v-model=
"eduPlanParam.endPlan"
<uni-data-picker
placeholder=
"
规划结束"
popup-title=
"请选择规划结束
阶段"
:localdata=
"dataTree"
v-model=
"eduPlanParam.endPlan"
@
change=
"onchange"
@
nodeclick=
"onnodeclick"
>
</uni-data-picker>
</div>
...
...
@@ -91,7 +91,7 @@
<view>
首年预估费用
</view>
<view>
(元)
</view>
</div>
<div></div>
<div><
view
style=
"color: #ff5500;border-bottom: 1px solid #ff5500;"
@
click=
"schoolingLists=JSON.parse(JSON.stringify(dataTree))"
>
恢复默认值
</view><
/div>
</li>
<li
v-for=
"item in schoolingLists"
:key=
"item.value"
>
<div>
{{
item
.
text
}}
</div>
...
...
@@ -109,18 +109,19 @@
<view
class=
"summaryContent"
v-if=
"resultInfo"
>
<view
class=
"successInfo"
v-if=
"resultInfo.code=='B001'"
>
<strong>
恭喜您!
</strong>
<text>
经过测算,您的资金可以负担
{{
eduPlanParam
.
name
}}
同学从
{{
getClassesInfo
(
getEducationNo
(
eduPlanParam
.
startPlan
))
}}
到
{{
getClassesInfo
(
getEducationNo
(
eduPlanParam
.
endPlan
))
}}
阶段的上学费用
</text>
<text>
经过测算,您的资金可以负担
{{
eduPlanParam
.
name
}}
同学从
{{
getClassesInfo
(
getEducationNo
(
eduPlanParam
.
startPlan
))
}}
到
{{
getClassesInfo
(
getEducationNo
(
eduPlanParam
.
endPlan
))
}}
阶段的上学费用
。
</text>
</view>
<view
class=
"failInfo"
v-if=
"resultInfo.code=='A001'"
>
<strong>
很遗憾!
</strong>
<text>
经过测算,您的资金只能负担到
{{
eduPlanParam
.
name
}}
同学到
{{
getClassesInfo
(
resultInfo
.
educationNo
)
}}
。
</text>
<text
v-if=
"resultInfo.educationNo>0"
>
经过测算,您的资金只能负担到
{{
eduPlanParam
.
name
}}
同学到
{{
getClassesInfo
(
resultInfo
.
educationNo
)
}}
。
</text>
<text
v-if=
"resultInfo.educationNo
<
=
0
"
>
经过测算,您的资金不足以负担
{{
eduPlanParam
.
name
}}
同学的教育目标。
</text>
</view>
<view
class=
"suggestionInfo"
v-if=
"resultInfo.code=='A001'"
>
<view>
您可以这样做来实现:
</view>
<view>
<ul>
<li>
1.提高已
被教育资金总额到
{{
resultInfo
.
retEducationDeposit
}}
元
</li>
<li>
2.提高每年预备投入教育资金总额到
{{
resultInfo
.
retInitEducationFund
}}
元
</li>
<li>
1.提高已
备教育资金总额到
{{
Math
.
abs
(
formatFloat
(
resultInfo
.
retEducationDeposit
/
10000
))
}}
万
元
</li>
<li>
2.提高每年预备投入教育资金总额到
{{
Math
.
abs
(
formatFloat
(
resultInfo
.
retInitEducationFund
/
10000
))
}}
万
元
</li>
</ul>
</view>
</view>
...
...
@@ -188,7 +189,7 @@
tuitionAddRate
:
2.1
,
investmentRate
:
3.74
,
incomeAddRate
:
0
,
decimal
:
2
decimal
:
5
},
resultInfo
:
null
,
settingYBYFlag
:
false
,
...
...
@@ -365,6 +366,7 @@
},
confirmOption
(){
this
.
settingYBYFlag
=
false
;
this
.
schoolingLists
.
filter
(
item
=>
item
.
value
==
this
.
settingItem
.
value
)[
0
].
publicTuition
=
this
.
settingItem
.
children
[
0
].
tuition
;
},
objFlat
(
Data
){
// 对象数组拍平
...
...
@@ -466,11 +468,23 @@
endPlan
:
null
,
initEducationFund
:
null
,
educationDeposit
:
null
,
tuitionAddRate
:
0.02
1
,
investmentRate
:
0.03
74
,
tuitionAddRate
:
2.
1
,
investmentRate
:
3.
74
,
incomeAddRate
:
0
,
decimal
:
5
}
this
.
schoolingLists
.
map
(
item
=>
{
item
.
publicTuition
=
null
;
item
.
children
.
map
(
val
=>
val
.
tuition
=
null
)
})
},
/*
num:源数据
digitNum:保留几位小数
type:向上(1)取还是向下(2)取
*/
formatFloat
(
num
,
digitNum
=
2
,
type
=
1
){
return
common
.
formatFloat
(
num
,
digitNum
=
2
,
type
=
1
)
}
},
...
...
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