保誠-保戶業務員媒合平台
Tomas
2022-02-08 81847996079f71527c1471f272be43b5b4f77490
fixed: [ClientCard] 顯示滿意度帶來的 side-effect
修改3個檔案
32 ■■■■ 已變更過的檔案
PAMapp/components/Client/ClientCard.vue 4 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Consultant/ConsultantCard.vue 4 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/shared/models/consultant.model.ts 24 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Client/ClientCard.vue
@@ -48,7 +48,7 @@
                ></AppointmentProgress>
            </div>
        </div>
            <el-col :xs="5" :sm="3" align="middle">
            <!-- <el-col :xs="5" :sm="3" align="middle">
                <el-avatar
                    :size="50"
                ></el-avatar>
@@ -61,7 +61,7 @@
                        <div class="unfilled">未填滿意度</div>
                    </template>
                </div>
            </el-col>
            </el-col> -->
            <div class="flex-column contactInfo" :xs="4" :sm="6">
PAMapp/components/Consultant/ConsultantCard.vue
@@ -7,8 +7,8 @@
                    :agentNo="agentInfo.agentNo"
                    @click.native="showAgentDetail(agentInfo.agentNo)"
                ></UiAvatar>
                <div v-if="!hideReviews">
                    <i class="icon-star pam-icon icon--yellow satisfaction"></i>
                <div v-if="!hideReviews" style="display: flex; justify-content: flex-start; align-items: center; margin-top: 6px; font-size: 12px">
                    <i class="icon-star pam-icon icon--yellow satisfaction" style="margin-top: 0"></i>
                      <template v-if="isAppointment">
                      <span v-if="notScoreAppointmentYet">
                          {{ agentInfo.satisfactionScore }}
PAMapp/shared/models/consultant.model.ts
@@ -1,18 +1,18 @@
import { Appointment } from "./appointment.model";
export interface Consultant {
    agentNo            : string;
    name               : string;
    img                : string;
    expertise          : string[];
    avgScore           : number;
    contactStatus?     : string;
    createTime         : Date | string;
    updateTime         : Date | string;
    customerViewTime?  : Date | string;
    role               : string;
    seniority          : string,
    appointments?      : Appointment[];
    agentNo          : string;
    appointments?    : Appointment[];
    avgScore         : number;
    contactStatus?   : string;
    createTime       : string;
    customerViewTime?: string;
    expertise        : string[];
    img              : string;
    name             : string;
    role             : string;
    seniority        : string;
    updateTime       : string;
}
export interface ConsultantWithAppointmentId extends Consultant {