Commit 02a07d47 authored by Administrator's avatar Administrator

debug

parent 54b701ee
......@@ -14,7 +14,7 @@ const debug = ref(import.meta.env.MODE === 'production' ? false : true);
const loading = ref(false);
const form = reactive({
task_id: "",
birth: "1982-04",
birth: "1993-04",
sex_value: "男",
sex_option: [
{
......@@ -43,6 +43,7 @@ onMounted(() => {
});
const calculateRetirement = (birthStr: string, gender: string) => {
console.log(birthStr)
let parts = birthStr.split('-'); // 使用'-'作为分隔符来拆分字符串
let birthYear = parseInt(parts[0], 10); // 年份
let birthMonth = parseInt(parts[1], 10); // 月份
......@@ -105,7 +106,13 @@ const calculateRetirement = (birthStr: string, gender: string) => {
<el-form :model="form" label-width="114px" v-loading="loading">
<!-- 输入出生年月 -->
<el-form-item label="出生年月">
<el-date-picker v-model="form.birth" type="month" placeholder="Pick a month" />
<el-date-picker
v-model="form.birth"
type="month"
placeholder="Pick a month"
format="YYYY-MM"
value-format="YYYY-MM"
/>
</el-form-item>
<!-- 性别 -->
<el-form-item label="性别">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment