| | |
| | | <ProRadio v-model="query.gender" :value-enum="GenderText" show-all-btn></ProRadio> |
| | | </QueryMenuItem> |
| | | <QueryMenuItem title="身份"> |
| | | <ProRadio v-model="query.gender" :value-enum="IdentityList" show-all-btn></ProRadio> |
| | | <ProRadio v-model="query.identity" :value-enum="identityList" show-all-btn></ProRadio> |
| | | </QueryMenuItem> |
| | | <QueryMenuItem> |
| | | <template #title> |
| | |
| | | ></nut-range> |
| | | </QueryMenuItem> |
| | | <QueryMenuItem title="资格证书"> |
| | | <ProRadio v-model="query.gender" :value-enum="CertificateTypeList" show-all-btn></ProRadio> |
| | | <ProRadio |
| | | v-model="query.certificateType" |
| | | :value-enum="certificateTypeList" |
| | | show-all-btn |
| | | ></ProRadio> |
| | | </QueryMenuItem> |
| | | </div> |
| | | </QueryMenuView> |
| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { QueryMenuView, QueryMenuItem, ProRadio } from '@12333/components'; |
| | | import { GenderText, SearchType } from '@12333/constants'; |
| | | import { useSearchSettingType } from '@12333/hooks'; |
| | | import { GenderText, CategoryCode } from '@12333/constants'; |
| | | import { useDictionaryDataSelect } from '@12333/hooks'; |
| | | |
| | | defineOptions({ |
| | | name: 'HomeQueryMenuView', |
| | |
| | | |
| | | // const props = withDefaults(defineProps<Props>(), {}); |
| | | |
| | | const { searchSettingTypeList: CertificateTypeList } = useSearchSettingType({ |
| | | searchType: SearchType.CertificateType, |
| | | const { dictionaryDataList: identityList } = useDictionaryDataSelect({ |
| | | categoryCode: CategoryCode.Identity, |
| | | }); |
| | | const { searchSettingTypeList: IdentityList } = useSearchSettingType({ |
| | | searchType: SearchType.Identity, |
| | | |
| | | const { dictionaryDataList: certificateTypeList } = useDictionaryDataSelect({ |
| | | categoryCode: CategoryCode.CertificateType, |
| | | }); |
| | | |
| | | const emit = defineEmits<{ |
| | |
| | | const query = defineModel<{ |
| | | gender: number | string; |
| | | age: number[]; |
| | | identity: string; |
| | | certificateType: string; |
| | | }>('query'); |
| | | |
| | | const DefaultQuery = { |
| | | ...query.value, |
| | | }; |
| | | |
| | | console.log('query: ', query.value); |
| | | function handleReset() { |
| | | for (const key in DefaultQuery) { |
| | | query.value[key] = DefaultQuery[key]; |