wupengfei
3 天以前 1d8a2ae469d44476c8af208f00359508bec65c82
feat: 接口
2个文件已修改
11 ■■■■■ 已修改文件
src/constants/task.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/EmploymentManage/components/AddOrEditEmploymentView.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/constants/task.ts
@@ -44,6 +44,7 @@
};
export const EnumUserGenderTextForEdit = {
  [0]: '不限',
  [EnumUserGender.Male]: '仅限男性',
  [EnumUserGender.Female]: '仅限女性',
};
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();
@@ -279,7 +281,7 @@
  name: '',
  billingMethod: '' as any as EnumBillingMethod,
  serviceFee: 0,
  settlementCycle: '' as any as EnumSettlementCycle,
  settlementCycle: EnumSettlementCycle.Month,
  benefits: [] as string[],
  ageMinLimit: 0,
  ageMaxLimit: 0,