From c99a662edbd0c23e5c88e8a1531f9b10af6539d8 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 21 一月 2022 16:47:03 +0800 Subject: [PATCH] Fixed#134576 修正 [ 顧問管理流程 ] 未聯絡預約單資訊明細 : 應只顯示「傳送約訪通知」按鈕,目前畫面顯示結案、約訪紀錄、系統通知紀錄編輯 --- PAMapp/components/Consultant/ConsultantList.vue | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue index ce11a46..06ccd84 100644 --- a/PAMapp/components/Consultant/ConsultantList.vue +++ b/PAMapp/components/Consultant/ConsultantList.vue @@ -1,6 +1,5 @@ <template> <div> - <template v-if="agentList.length > 0"> <ConsultantCard v-for="(agent, index) in agentList" @@ -23,21 +22,26 @@ </template> <script lang="ts"> -import { Vue, Component, Prop, namespace } from 'nuxt-property-decorator'; import { Consultant } from '~/shared/models/consultant.model'; - -const roleStorage = namespace('localStorage'); +import { Vue, Component, Prop } from 'nuxt-property-decorator'; +import authService from '~/shared/services/auth.service'; @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