From c20a0f1a1dbaa23d1b073f9a9377cac5d572f277 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期四, 23 十二月 2021 15:10:18 +0800 Subject: [PATCH] fixed TODO#131357 進行預約: 職業選擇畫面調整 --- PAMapp/components/Consultant/ConsultantList.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue index 33b9929..45e8a0a 100644 --- a/PAMapp/components/Consultant/ConsultantList.vue +++ b/PAMapp/components/Consultant/ConsultantList.vue @@ -23,21 +23,25 @@ </template> <script lang="ts"> -import { Vue, Component, Prop, namespace } from 'nuxt-property-decorator'; -import { Consultant } from '~/assets/ts/models/consultant.model'; +import { Vue, Component, Prop } from 'nuxt-property-decorator'; -const roleStorage = namespace('localStorage'); +import authService from '~/shared/services/auth.service'; +import { Consultant } from '~/shared/models/consultant.model'; @Component export default class ConsultantList extends Vue { - @Prop() agents!: Consultant[]; - @Prop() title! : string; - @roleStorage.Getter isUserLogin!:boolean; + @Prop() + agents!: Consultant[]; + + @Prop() + title! : string; + + isUserLogin = false; get agentList(){ - return this.agents.map((agentDto)=> - ({...agentDto,customerScore:0,}) - ) + return this.agents.map((agentDto)=> + ({...agentDto,customerScore:0,}) + ) } get noDataPlaceholder(): string { @@ -46,6 +50,12 @@ : '����撌脤憿批��'; } + ////////////////////////////////////////////////////////////////////// + + mounted() { + this.isUserLogin = authService.isUserLogin(); + } + } </script> -- Gitblit v1.8.0