From c9d2d22041079a8d5db3777cc8beaa2e209da40e Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 12 十一月 2021 10:22:15 +0800 Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM --- PAMapp/components/Consultant/ConsultantList.vue | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue index 250f084..e4a735d 100644 --- a/PAMapp/components/Consultant/ConsultantList.vue +++ b/PAMapp/components/Consultant/ConsultantList.vue @@ -8,15 +8,15 @@ @removeAgent="removeAgent" ></ConsultantCard> </template> - <template v-else-if="noLogin"> - <div class="emptyRowStyle"> - <div class="mdTxt login" @click="$router.push('/login')">��</div> - <div class="smTxt txt">���憭歇�憿批��</div> - </div> - </template> <template v-else> <div class="emptyRowStyle"> <div class="smTxt txt">����撌脤憿批��</div> + </div> + </template> + <template v-if="!isLogin && agents.length > 0"> + <div class="emptyRowStyle"> + <div class="mdTxt login" @click="$router.push('/login')">��</div> + <div class="smTxt txt">���憭�</div> </div> </template> </div> @@ -24,13 +24,16 @@ <script lang="ts"> import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator'; -import { Agents } from '~/plugins/api/home'; +import { Consultants } from '~/assets/ts/api/consultant'; +import { isLogin } from '~/assets/ts/auth'; @Component export default class ConsultantList extends Vue { - @Prop() agents!: Agents[]; + @Prop() agents!: Consultants[]; - noLogin = false; + get isLogin() { + return isLogin(); + } @Emit('removeAgent') removeAgent(agentId: number) { return agentId; @@ -41,7 +44,7 @@ <style lang="scss" scoped> .emptyRowStyle { - background-color: $white; + background-color: $PRIMARY_WHITE; width: 100%; height: 100px; display: flex; @@ -49,14 +52,14 @@ align-items: center; .login { - color: $primaryRed; + color: $PRIMARY_RED; cursor: pointer; } .txt { - color: $prudentialGrey; + color: $PRUDENTIAL_GREY; margin-left: 17px; } } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0