保誠-保戶業務員媒合平台
Tomas
2022-04-06 277a354ac5ba5452286ced03b6b32bc81559bc58
PAMapp/pages/agentInfo/edit/_agentNo.vue
@@ -125,10 +125,11 @@
        <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>
@@ -274,6 +275,7 @@
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');
@@ -309,7 +311,7 @@
    photoBase64       : '',
    phoneNumber       : '',
    email             : '',
    entryDate         : ','
    entryDate         : '',
  };
  communicationStyleList: string[] = agentCommunicationStyleList;
@@ -370,6 +372,18 @@
  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';
      }
    });
  }
@@ -545,4 +559,10 @@
  padding-right: 20px;
}
.pam-editInfo-date-picker{
  .pam-date.el-input {
      width: 100%;
  }
}
</style>