| | |
| | | <div v-else> |
| | | <el-rate |
| | | v-if="!hideReviews" |
| | | class="pam-quickFilter-rate" |
| | | class="pam-rate mt-30" |
| | | v-model="pickedItem.avgScore" |
| | | ></el-rate> |
| | | </div> |
| | |
| | | import { FastQueryParams, QuestionOption, Selected } from '~/shared/models/quick-filter.model'; |
| | | @Component |
| | | export default class QuickFilterDrawer extends Vue { |
| | | @Prop() |
| | | questionOption!: QuestionOption; |
| | | |
| | | @Prop() |
| | | isOpenQuestionPopUp!: boolean; |
| | | |
| | | @Prop() |
| | | confirmItem!: Selected[]; |
| | | |
| | | pickedItem: FastQueryParams = { |
| | | communicationStyles: [], |
| | | status: '', |
| | |
| | | } |
| | | hideReviews = hideReviews ; |
| | | |
| | | @Prop() questionOption!: QuestionOption; |
| | | @Prop() isOpenQuestionPopUp!: boolean; |
| | | @Prop() confirmItem!: Selected[]; |
| | | ////////////////////////////////////////////////////////////////// |
| | | |
| | | @Watch('isOpenQuestionPopUp', {immediate: true}) |
| | | onPopUpChange() { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | ////////////////////////////////////////////////////////////////// |
| | | |
| | | get isDisabled() { |
| | | const name = this.questionOption.name; |
| | | return name === 'gender' && !this.pickedItem[name] |
| | |
| | | } |
| | | |
| | | ////////////////////////////////////////////////////////////////// |
| | | |
| | | private getGender(): string { |
| | | return this.filterSingleSelected('gender'); |
| | | } |