| | |
| | | <UiField :span="12" icon="time" label="最後上線時間"> |
| | | {{ agentInfo.latestLoginTime | formatDate }} |
| | | </UiField> |
| | | <UiField :span="12" icon="calender" label="到職日期"> |
| | | <UiField :span="12" icon="calender" label="到職日期" class="pam-editInfo-date-picker"> |
| | | <UiDatePicker |
| | | id="el-date-picker" |
| | | class="mt-10" |
| | | :defaultValue ="editInfoValue.entryDate" |
| | | :defaultValue ="agentInfo.entryDate" |
| | | @changeDate="onChangeDate($event)" |
| | | ></UiDatePicker> |
| | | </UiField> |
| | |
| | | import { agentCommunicationStyleList } from '~/shared/const/agent-communication-style-list'; |
| | | import { taiwanCities } from '~/shared/const/taiwan-cities'; |
| | | |
| | | |
| | | const localStorageTest = namespace('localStorage'); |
| | | const loginStore = namespace('login.store'); |
| | | |
| | |
| | | photoBase64 : '', |
| | | phoneNumber : '', |
| | | email : '', |
| | | entryDate : ',' |
| | | entryDate : '', |
| | | }; |
| | | |
| | | communicationStyleList: string[] = agentCommunicationStyleList; |
| | |
| | | |
| | | mounted(){ |
| | | this.setAgentInfo(this.agentInfo); |
| | | |
| | | const bodyEl = document.querySelector('body'); |
| | | |
| | | bodyEl?.addEventListener('scroll', function() { |
| | | const elDatePickerEl = document.querySelector('#el-date-picker'); |
| | | const elDatePickerPanelEl = document.querySelector('.el-picker-panel'); |
| | | if (elDatePickerPanelEl) { |
| | | elDatePickerPanelEl['style']['z-index'] = 5; |
| | | const elDatePickerOffsetTop = elDatePickerEl!.getBoundingClientRect().top; |
| | | elDatePickerPanelEl!['style'].top = elDatePickerOffsetTop + 30 + 'px'; |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | |
| | | padding-right: 20px; |
| | | } |
| | | |
| | | .pam-editInfo-date-picker{ |
| | | .pam-date.el-input { |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | </style> |