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
75216ae2
Commit
75216ae2
authored
Sep 14, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
0c1d79d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
calc_retire.vue
src/views/home/calc_retire.vue
+13
-4
No files found.
src/views/home/calc_retire.vue
View file @
75216ae2
...
@@ -14,7 +14,7 @@ const debug = ref(import.meta.env.MODE === 'production' ? false : true);
...
@@ -14,7 +14,7 @@ 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
:
"19
65-03
"
,
birth
:
"19
76-01
"
,
sex_value
:
"男"
,
sex_value
:
"男"
,
sex_option
:
[
sex_option
:
[
{
{
...
@@ -96,9 +96,18 @@ const calculateRetirement = (birthStr: string, gender: string) => {
...
@@ -96,9 +96,18 @@ const calculateRetirement = (birthStr: string, gender: string) => {
monthsUntilRetirement
+=
12
;
monthsUntilRetirement
+=
12
;
}
}
form
.
retire_age
=
`
${
retirementAge
}
岁+
${
delayMonths
%
12
}
个月`
,
if
((
birthYear
<
1965
&&
gender
==
'男'
)
||
form
.
retire_date
=
`
${
retirementYear
}
-
${
retirementMonth
<
10
?
'0'
+
retirementMonth
:
retirementMonth
}
-01`
,
(
birthYear
<
1975
&&
gender
==
'女50岁退休'
)
||
form
.
how_long_to_retire
=
`
${
yearsUntilRetirement
}
年
${
monthsUntilRetirement
}
个月`
(
birthYear
<
1970
&&
gender
==
'女55岁退休'
))
{
form
.
retire_age
=
`您已退休`
;
form
.
retire_date
=
`您已退休`
;
form
.
how_long_to_retire
=
`您已退休`
;
}
else
{
form
.
retire_age
=
`
${
retirementAge
}
岁+
${
delayMonths
%
12
}
个月`
;
form
.
retire_date
=
`
${
retirementYear
}
-
${
retirementMonth
<
10
?
'0'
+
retirementMonth
:
retirementMonth
}
-01`
;
form
.
how_long_to_retire
=
`
${
yearsUntilRetirement
}
年
${
monthsUntilRetirement
}
个月`
;
}
};
};
</
script
>
</
script
>
...
...
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