From 59b4e7587583f18cf43a06ff293db332df0976b3 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期一, 06 十二月 2021 13:27:29 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 PAMapp/components/AddAndReservedBtns.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/PAMapp/components/AddAndReservedBtns.vue b/PAMapp/components/AddAndReservedBtns.vue
index fe0f2e7..8a7b4e1 100644
--- a/PAMapp/components/AddAndReservedBtns.vue
+++ b/PAMapp/components/AddAndReservedBtns.vue
@@ -1,7 +1,7 @@
 <template>
     <el-row type="flex" justify="center" :class="cusClass">
         <el-button @click="addConsultant(agentInfo)" :disabled="isAdded">
-            <span> + 憿批��</span>
+            <span> {{isAdded ? '撌脣�憿批��' : '+ 憿批��'}}</span>
         </el-button>
         <el-button
             @click="reserveCommunication"
@@ -11,15 +11,14 @@
 </template>
 
 <script lang="ts">
-import { Vue, Component, Prop, Emit, Action, State } from 'nuxt-property-decorator';
-import { Consultants } from '~/assets/ts/api/consultant';
-import { isLogin } from '~/assets/ts/auth';
+import { Vue, Component, Prop, Emit, Action, State, namespace } from 'nuxt-property-decorator';
+import { Consultants } from '~/assets/ts/models/consultant.model';
 
+const localStorage = namespace('localStorage');
 @Component
 export default class AddAndReservedBtns extends Vue {
     @Action addToMyConsultantList!: (consultantToAdd: Consultants) => Promise<boolean>
     @State('myConsultantList') myConsultantList!: Consultants[];
-
     @Prop() agentInfo!: Consultants;
     @Prop() cusClass!: string;
     isVisiblePopUp = false;
@@ -30,7 +29,7 @@
     }
 
     reserveCommunication() {
-        isLogin() ? this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`) : this.$router.push('/login');
+        this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`);
     }
 
     @Emit('openPopUp') openPopUp(popUpTxt: string = '����憿批��') {

--
Gitblit v1.8.0