From 85784caa4233ce3baaf6513128264b892241da7b Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 12 八月 2025 11:31:23 +0800 Subject: [PATCH] feat: 接口 --- src/views/EmploymentManage/components/AddOrEditEmploymentView.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue index 47fdecc..7704888 100644 --- a/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue +++ b/src/views/EmploymentManage/components/AddOrEditEmploymentView.vue @@ -134,9 +134,6 @@ <ProFormRadio v-model="form.genderLimit" :value-enum="EnumUserGenderTextForEdit" - show-all-btn - :all-btn-label="'涓嶉檺'" - :allBtnValue="0" ></ProFormRadio> </ProFormItemV2> </ProFormColItem> @@ -204,6 +201,7 @@ range-separator="鑷�" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" + :disabled-date="disabledDate" ></ProFormDatePicker> </ProFormItemV2> </ProFormColItem> @@ -257,6 +255,10 @@ const id = route.params.id as string; const isEdit = !!id; +function disabledDate(time: Date) { + return dayjs(time).isBefore(dayjs(), 'day'); +} + const eventContext = useGlobalEventContext(); const { closeViewPush } = useRouteView(); @@ -277,9 +279,9 @@ const form = reactive({ name: '', - billingMethod: '' as any as EnumBillingMethod, + billingMethod: EnumBillingMethod.Month, serviceFee: 0, - settlementCycle: '' as any as EnumSettlementCycle, + settlementCycle: EnumSettlementCycle.Month, benefits: [] as string[], ageMinLimit: 0, ageMaxLimit: 0, -- Gitblit v1.9.1