From 21d2b51910f1e1e338beed76d53effcfccb1ef7a Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期一, 24 一月 2022 16:47:57 +0800 Subject: [PATCH] Merge branch 'Phase3' of ssh://dev.pollex.com.tw:29418/pcalife/PAM into Phase3 --- PAMapp/components/Consultant/ConsultantCard.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index f7198f6..8ea5a64 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -31,7 +31,7 @@ <div class="delete" v-if="showRemoveBtn" - @click="removeAgent" + @click="isRemoveAgentPopup = true" >蝘駁</div> <div v-if="notScoreAppointmentYet" @@ -125,10 +125,18 @@ </div> </PopUpFrame> - <PopUpFrame :isOpen.sync="isConfirmPopup"> - <div class="text--center mdTxt">撌脫����迨蝑���</div> + <PopUpFrame :isOpen.sync="isConfirmPopup"> + <div class="text--center mdTxt">撌脫��{confirmTxt}}</div> <div class="text--center mt-30"> <el-button @click="isConfirmPopup = false" type="primary">蝣箏��</el-button> + </div> + </PopUpFrame> + + <PopUpFrame :isOpen.sync="isRemoveAgentPopup"> + <div class="text--center mdTxt">��蝘駁憿批�� <span class="text--primary">{{agentInfo.name}}</span>嚗�</div> + <div class="text--center mt-30"> + <el-button @click="isRemoveAgentPopup = false">�</el-button> + <el-button @click="removeAgent" type="primary">�</el-button> </div> </PopUpFrame> </div> @@ -181,6 +189,8 @@ isCancelPopup = false; hideReviews = hideReviews; isConfirmPopup = false; + isRemoveAgentPopup = false; + confirmTxt = ''; appointmentDetail: any = { age : '', @@ -339,6 +349,12 @@ removeAgent() { this.removeFromMyConsultantList(this.agentInfo.agentNo).then((removeOk) => { + this.isRemoveAgentPopup = false; + setTimeout(() => { + this.confirmTxt = '蝘駁憿批��'; + this.isConfirmPopup = true; + }, 300); + }); } @@ -370,7 +386,9 @@ this.isVisibleDialog = false; this.isCancelPopup = false; setTimeout(() => { + this.confirmTxt = '���迨蝑���'; this.isConfirmPopup = true; + }, 300); }); } @@ -422,6 +440,7 @@ } .delete { + display: inline-block; color: $PRIMARY_RED; font-size: 14px; font-weight: bold; -- Gitblit v1.8.0