保誠-保戶業務員媒合平台
Tomas
2023-08-01 82ba3b46e14f25f6a7c3653661033ddac12703c6
Update: rename consultantType to consultationMethod
刪除1個檔案
修改5個檔案
新增1個檔案
40 ■■■■ 已變更過的檔案
PAMapp/components/Client/ClientCard.vue 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Consultant/ConsultantCard.vue 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/nuxt.config.js 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/appointment/_appointmentId/index.vue 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/index.vue 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/plugins/filters/consult-type.filter.ts 15 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/plugins/filters/consultation-method.filter.ts 15 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/components/Client/ClientCard.vue
@@ -118,7 +118,7 @@
                <p>性別:<span>{{gender}}</span></p>
                <p>年齡:<span>{{client.age | toAgeLabel }}</span></p>
                <p>職業:<span>{{client.job}}</span></p>
                <p>諮詢方式:<span>{{client.consultationMethod | toConsulType }}</span></p>
                <p>諮詢方式:<span>{{client.consultationMethod | toConsultationMethod }}</span></p>
                <p>需求:<span>{{ client.requirement ? client.requirement.split(',').join('、') : '--' }}</span></p>
                <p v-for="(item, index) in hopeContactTime"
                    :key="index"
PAMapp/components/Consultant/ConsultantCard.vue
@@ -76,7 +76,7 @@
                    <p>性別:{{gender}}</p>
                    <p>年齡:{{appointmentDetail.age | toAgeLabel }}</p>
                    <p>職業:{{appointmentDetail.job}}</p>
                    <p>諮詢方式:{{appointmentDetail.consultationMethod | toConsulType }}</p>
                    <p>諮詢方式:{{appointmentDetail.consultationMethod | toConsultationMethod }}</p>
                    <p>需求:{{appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('、') : '--'}}</p>
                    <p
                        v-for="(item, index) in hopeContactTime"
PAMapp/nuxt.config.js
@@ -39,7 +39,7 @@
    '~/plugins/vue-scroll-picker',
    '~/plugins/filters/date.filter.ts',
    '~/plugins/filters/age.filter.ts',
    '~/plugins/filters/consult-type.filter.ts',
    '~/plugins/filters/consultation-method.filter.ts',
    '~/plugins/filters/appointment-fail-reason.filter.ts',
    '~/plugins/filters/serve-area.filter.ts',
  ],
PAMapp/pages/appointment/_appointmentId/index.vue
@@ -39,7 +39,7 @@
        <div class="client-detail-demand__demand-list mb-10">
          <div class="client-detail-demand__demand-list-label">諮詢<br />方式</div>
          <div class="client-detail-demand__demand-list-content">{{ appointmentDetail.consultationMethod | toConsulType }}</div>
          <div class="client-detail-demand__demand-list-content">{{ appointmentDetail.consultationMethod | toConsultationMethod }}</div>
        </div>
        <div class="client-detail-demand__demand-list mb-10">
PAMapp/pages/index.vue
@@ -59,7 +59,7 @@
                  <p>性別:{{gender}}</p>
                  <p>年齡:{{appointmentDetail.age | toAgeLabel }}</p>
                  <p>職業:{{appointmentDetail.job}}</p>
                  <p>諮詢方式:{{appointmentDetail.consultationMethod | toConsulType }}</p>
                  <p>諮詢方式:{{appointmentDetail.consultationMethod | toConsultationMethod }}</p>
                  <p>需求:{{ appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('、') : '--'}}</p>
                  <p
                      v-for="(item, index) in hopeContactTime"
PAMapp/plugins/filters/consult-type.filter.ts
Àɮפw§R°£
PAMapp/plugins/filters/consultation-method.filter.ts
¤ñ¹ï·sÀÉ®×
@@ -0,0 +1,15 @@
import Vue from 'vue'
Vue.filter('toConsultationMethod', (value: string): string => {
  if (!value ||  typeof value !== 'string') {
    return '--';
  };
  const consultationMethodLabel = {
    'online': '線上',
    'offline': '線下',
  };
  return  consultationMethodLabel[value];
})