| | |
| | | :size="50" |
| | | :src="agentInfo.img" |
| | | class="cursor--pointer" |
| | | @click.native="$router.push(`/agentInfo`)" |
| | | @click.native="showAgentDetail(agentInfo.agentNo);" |
| | | ></el-avatar> |
| | | <div class="satisfaction"> |
| | | <i class="icon-star pam-icon icon--yellow satisfaction"></i> |
| | |
| | | </div> |
| | | <div |
| | | class="delete" |
| | | v-if="agentInfo.contactStatus === 'picked'" |
| | | v-if="agentInfo.contactStatus !== 'reserved' |
| | | || agentInfo.contactStatus !== 'contacted'" |
| | | @click="removeAgent" |
| | | >移除</div> |
| | | </el-col> |
| | |
| | | let date = newDate.getDate(); |
| | | let hours = newDate.getHours(); |
| | | let minutes = newDate.getMinutes(); |
| | | return `${year}/${month}/${date} ${hours} : ${minutes}` |
| | | return isLogin() ? `${year}/${month}/${date} ${hours} : ${minutes}` : '' |
| | | } |
| | | |
| | | reserveCommunication() { |
| | | if (this.agentInfo.contactStatus === 'picked') { |
| | | isLogin() ? this.$router.push('/questionnaire') : this.$router.push('/login'); |
| | | const contactStatus = this.agentInfo.contactStatus; |
| | | if (contactStatus !== 'reserved' && contactStatus !== 'contacted') { |
| | | isLogin() ? this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`) : this.$router.push('/login'); |
| | | } else { |
| | | this.width = isMobileDevice() ? '80%' : ''; |
| | | this.isVisibleDialog = true; |
| | |
| | | @Emit('removeAgent') removeAgent() { |
| | | return this.agentInfo.agentNo; |
| | | } |
| | | |
| | | showAgentDetail(agentNo: string): void { |
| | | this.$router.push(`/agentInfo/${agentNo}`); |
| | | } |
| | | } |
| | | </script> |
| | | |