| | |
| | | <QueryMenuView @close="handleReset" @confirm="emit('close')" cancelText="重置"> |
| | | <div class="home-query-menu-view"> |
| | | <QueryMenuItem title="性别"> |
| | | <ProRadio v-model="query.gender" :value-enum="GenderText" show-all-btn></ProRadio> |
| | | <ProRadio |
| | | v-model="query.genderLimit" |
| | | :value-enum="EnumUserGenderText" |
| | | show-all-btn |
| | | ></ProRadio> |
| | | </QueryMenuItem> |
| | | <QueryMenuItem title="身份"> |
| | | <ProRadio v-model="query.identity" :value-enum="identityList" show-all-btn></ProRadio> |
| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { QueryMenuView, QueryMenuItem, ProRadio } from '@12333/components'; |
| | | import { GenderText, CategoryCode } from '@12333/constants'; |
| | | import { EnumUserGenderText, CategoryCode } from '@12333/constants'; |
| | | import { useDictionaryDataSelect } from '@12333/hooks'; |
| | | |
| | | defineOptions({ |
| | |
| | | }>(); |
| | | |
| | | const query = defineModel<{ |
| | | gender: number | string; |
| | | genderLimit: number | string; |
| | | age: number[]; |
| | | identity: string; |
| | | certificateType: string; |
| | |
| | | |
| | | const DefaultQuery = { |
| | | ...query.value, |
| | | age: [...query.value.age], |
| | | }; |
| | | |
| | | function handleReset() { |