| | |
| | | import { namespace } from 'nuxt-property-decorator'; |
| | | import { Vue, Component,} from 'vue-property-decorator'; |
| | | |
| | | import * as _ from 'lodash'; |
| | | import { Role } from '~/shared/models/enum/Role'; |
| | | |
| | | const appointmentStore = namespace('appointment.store'); |
| | |
| | | break; |
| | | case 'agentInfo': |
| | | const agentFeatureLabel = this.$route.name.includes('edit') ? '編輯帳號資訊' : '查看帳號資訊'; |
| | | featureLabel = _.isEqual(this.currentRole,Role.ADMIN) |
| | | featureLabel = this.currentRole === Role.ADMIN |
| | | ? agentFeatureLabel |
| | | : '業務員資訊' |
| | | break; |
| | |
| | | case 'accountSetting': |
| | | featureLabel = '個人帳號設定'; |
| | | break; |
| | | case 'appointmentAgenda': |
| | | featureLabel = '即將約訪排程'; |
| | | break; |
| | | case 'consultantAccountSetting': |
| | | featureLabel = '查看帳號資訊'; |
| | | break; |
| | | case 'faq': |
| | | featureLabel = 'F&Q 常見問題'; |
| | | featureLabel = 'FAQ 常見問題'; |
| | | break; |
| | | case 'appointment': |
| | | const appointmentFeatureLabel = this.$route.name.includes('close') |