Skip to content

Commit

Permalink
update wording
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuiantw1212 committed May 9, 2024
1 parent 4cfe8d2 commit 2cedd43
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 5 deletions.
57 changes: 57 additions & 0 deletions components/calculator/career/disability.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<template>
<el-card>
<el-form label-width="auto">
<el-row>
<el-col :span="12">
</el-col>
</el-row>
</el-form>
<template #footer>
<el-collapse>
<el-collapse-item title="試算說明" name="1" :border="true">
<ul>
<li>長照費用統計:<a href="https://dep.mohw.gov.tw/DOS/lp-5095-113-xCat-y111.html" target="_blank">老人狀況調查</a></li>
</ul>
<table class="table">
<tr>
<th>參考標的</th>
<th>資產配置</th>
<th>來源網址</th>
</tr>
<tr>
<td>AOA</td>
<td>股8債2</td>
</tr>
</table>
</el-collapse-item>
</el-collapse>
</template>
</el-card>
</template>
<script setup lang="ts">
import { ref, computed, shallowRef, reactive } from 'vue'
import Chart from 'chart.js/auto';
import econSelect from '../../econSelect.vue'
const props = defineProps({
modelValue: {
type: Object,
default: () => {
return {}
},
required: true,
},
config: {
type: Object,
default: () => {
return {}
},
required: true,
},
})
const career = computed(() => {
return props.modelValue
})
</script>
16 changes: 11 additions & 5 deletions components/calculator/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@
:config="config" :profile="userForm.profile" ref="CareerRef" @update:modelValue="onCareerChanged()">
</CareerGovernment>


<h3 id="_退休試算" tabindex="-1">退休試算<a class="header-anchor" href="#退休試算"
aria-label="Permalink to &quot;退休試算&quot;">&ZeroWidthSpace;</a></h3>
<Retirement v-model="userForm.retirement" :config="config" :career="userForm.career" :profile="userForm.profile"
aria-label="Permalink to &quot;退休試算&quot;">&ZeroWidthSpace;</a></h3>
<Retirement v-model="userForm.retirement" :config="config" :career="userForm.career" :profile="userForm.profile"
ref="RetirementRef" @update:modelValue="onRetirementChanged()">
</Retirement>

<!-- <h3 id="_失能與長照試算" tabindex="-1">失能與長照試算<a class="header-anchor" href="#失能與長照試算"
aria-label="Permalink to &quot;失能與長照試算&quot;">&ZeroWidthSpace;</a></h3>
<Disability v-model="userForm.career" :config="config"></Disability> -->

<h2 id="_五子登科" tabindex="-1">五子登科<a class="header-anchor" href="#五子登科"
aria-label="Permalink to &quot;五子登科&quot;">&ZeroWidthSpace;</a></h2>
Expand All @@ -56,8 +61,8 @@
<Spouse v-model="userForm.spouse" :config="config" ref="SpouseRef" @update:model-value="onSpouseChanged()">
</Spouse>

<h3 id="_育兒試算" tabindex="-1">育兒試算<a class="header-anchor" href="#育兒試算"
aria-label="Permalink to &quot;育兒試算&quot;">&ZeroWidthSpace;</a></h3>
<h3 id="_家庭責任試算" tabindex="-1">家庭責任試算<a class="header-anchor" href="#家庭責任試算"
aria-label="Permalink to &quot;家庭責任試算&quot;">&ZeroWidthSpace;</a></h3>
<Parenting v-model="userForm.parenting" :config="config" :career="userForm.career"
:retirement="userForm.retirement" :spouse="userForm.spouse" :investment="userForm.investment"
:estateSize="userForm.estateSize" :mortgage="userForm.mortgage" ref="ParentingRef"
Expand Down Expand Up @@ -100,6 +105,7 @@ import Parenting from './parenting.vue'
import Mortgage from './mortgage.vue'
import EstateDialogContent from './estateDialog.vue'
import DataCenter from './dataCenter.vue'
import Disability from './career/disability.vue'
const { VITE_BASE_URL } = import.meta.env
const ProfileRef = ref()
const CareerRef = ref()
Expand Down Expand Up @@ -426,7 +432,7 @@ function onSpouseChanged() {
propagate: false,
})
}
// 育兒試算
// 家庭責任試算
function onParentingChanged() {
authFetch(`/user/parenting`, {
method: 'put',
Expand Down

0 comments on commit 2cedd43

Please sign in to comment.