PAMapp/components/BackActionBar.vue | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 | |
PAMapp/components/NavBar.vue | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 | |
PAMapp/components/QuickFilter/QuickFilterSelector.vue | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 | |
PAMapp/pages/quickFilter/index.vue | ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程 |
PAMapp/components/BackActionBar.vue
@@ -48,8 +48,7 @@ } } pushRouterByLoginRole():void{ const link = _.isEqual(this.currentRole,Role.ADMIN)? '/myAppointmentList/appointmentList':'/'; this.$router.push(link); this.$router.go(-1); } } </script> PAMapp/components/NavBar.vue
@@ -41,6 +41,8 @@ @Component export default class NavBar extends Vue { @roleStorage.Mutation storageClear!: () => void; @roleStorage.Mutation storageClearQuickFilter!: () => void; @roleStorage.Mutation storageClearRecommendConsultant!: () => void; @roleStorage.Getter idToken!: string | null; @roleStorage.Getter currentRole!: string | null; @@ -99,6 +101,8 @@ // TODO: 僅OTP認證開發前 暫時使用 fakeLogout(): void { this.storageClear(); this.storageClearQuickFilter(); this.storageClearRecommendConsultant(); _.isEqual(this.$route.name, 'index') ? location.reload() : this.$router.push('/'); } } PAMapp/components/QuickFilter/QuickFilterSelector.vue
@@ -81,7 +81,7 @@ @Prop() isOpenQuestionPopUp!: boolean; @Prop() confirmItem!: Selected[]; @Watch('isOpenQuestionPopUp') onPopUpChange() { @Watch('isOpenQuestionPopUp', {immediate: true}) onPopUpChange() { this.pickedItem = { communicationStyles: this.communicationStyles, status: '', PAMapp/pages/quickFilter/index.vue
@@ -65,13 +65,17 @@ </template> <script lang="ts"> import { Vue, Component } from 'nuxt-property-decorator'; import { Vue, Component, namespace } from 'nuxt-property-decorator'; import { Consultants, FastQueryParams } from '~/assets/ts/api/consultant'; import { Selected } from '~/components/QuickFilter/QuickFilterSelector.vue'; import { fastQuery } from '~/assets/ts/api/consultant'; const localStorage = namespace('localStorage'); @Component export default class QuickFilter extends Vue { @localStorage.Mutation storageQuickFilter!: (token: string) => void; @localStorage.Getter quickFilterSelectedData!: Selected[]; isOpenQuestionPopUp = false; consultantList: Consultants[] = []; questionOption = {}; @@ -110,6 +114,13 @@ // type: 'radio' // } ]; mounted() { if (this.quickFilterSelectedData && this.quickFilterSelectedData.length > 0) { this.confirmItem = this.quickFilterSelectedData; this.getRecommendList(); } } gender(): string { const filter = this.confirmItem.filter(item => item.option === 'gender').map(i => i.value); @@ -184,7 +195,10 @@ status: '' } fastQuery(data).then((res) => this.consultantList = res.data) fastQuery(data).then((res) => { this.consultantList = res.data; this.storageQuickFilter(JSON.stringify(this.confirmItem)) }) } }