Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周成波
text2video-frontend
Commits
e972f6e1
Commit
e972f6e1
authored
Sep 13, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
02a07d47
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
calc_retire.vue
src/views/home/calc_retire.vue
+11
-3
No files found.
src/views/home/calc_retire.vue
View file @
e972f6e1
...
@@ -14,8 +14,8 @@ const debug = ref(import.meta.env.MODE === 'production' ? false : true);
...
@@ -14,8 +14,8 @@ const debug = ref(import.meta.env.MODE === 'production' ? false : true);
const
loading
=
ref
(
false
);
const
loading
=
ref
(
false
);
const
form
=
reactive
({
const
form
=
reactive
({
task_id
:
""
,
task_id
:
""
,
birth
:
"1993-0
4
"
,
birth
:
"1993-0
8
"
,
sex_value
:
"
男
"
,
sex_value
:
"
女50岁退休
"
,
sex_option
:
[
sex_option
:
[
{
{
value
:
'男'
,
value
:
'男'
,
...
@@ -66,6 +66,14 @@ const calculateRetirement = (birthStr: string, gender: string) => {
...
@@ -66,6 +66,14 @@ const calculateRetirement = (birthStr: string, gender: string) => {
return
;
return
;
}
}
if
(
birthYear
>=
1977
&&
gender
==
'男'
)
{
delayMonths
=
36
;
}
else
if
(
birthYear
>=
1985
&&
gender
==
'女50岁退休'
)
{
delayMonths
=
60
;
}
else
if
(
birthYear
>=
1982
&&
gender
==
'女55岁退休'
)
{
delayMonths
=
36
;
}
retirementAge
+=
Math
.
floor
(
delayMonths
/
12
);
retirementAge
+=
Math
.
floor
(
delayMonths
/
12
);
console
.
log
(
retirementAge
,
delayMonths
)
console
.
log
(
retirementAge
,
delayMonths
)
...
...
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