| | |
| | | </UiField> |
| | | <UiField :span="12" icon="calender" label="到職日期" class="pam-editInfo-date-picker"> |
| | | <UiDatePicker |
| | | id="el-date-picker" |
| | | class="mt-10" |
| | | :defaultValue ="agentInfo.entryDate" |
| | | @changeDate="onChangeDate($event)" |
| | |
| | | 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'); |
| | | |
| | |
| | | |
| | | 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'; |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | private setAgentInfo(agentInfo: AgentInfo): void { |