|
@@ -9,8 +9,8 @@
|
|
|
<div class="avatarsBox" @mouseover="showIcon = true" @mouseleave="showIcon = false">
|
|
|
<v-badge
|
|
|
v-if="baseInfo?.sex === '1' || baseInfo?.sex === '2'"
|
|
|
- bordered
|
|
|
- :color="baseInfo?.sex ? (baseInfo?.sex === '1' ? '#1867c0' : 'error') : 'error'"
|
|
|
+ bordered
|
|
|
+ :color="baseInfo?.sex ? (baseInfo?.sex === '1' ? '#1867c0' : 'error') : 'error'"
|
|
|
:icon="baseInfo?.sex ? (baseInfo?.sex === '1' ? 'mdi-gender-male' : 'mdi-gender-female') : 'mdi-gender-female'">
|
|
|
<v-img :src="getUserAvatar(baseInfo?.avatar, baseInfo?.sex)" width="130" height="130" style="border-radius: 6px;"></v-img>
|
|
|
<div v-show="showIcon" @click.self="openFileInput" class="mdi mdi-camera-outline camera">
|
|
@@ -108,7 +108,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<Loading :visible="overlay"></Loading>
|
|
|
<!-- 图片裁剪 -->
|
|
|
<ImgCropper :visible="isShowCopper" :image="selectPic" :cropBoxResizable="true" @submit="handleHideCopper" :aspectRatio="1 / 1" @close="isShowCopper = false, selectPic = ''"></ImgCropper>
|
|
@@ -267,8 +267,7 @@ const items = ref({
|
|
|
mode: 'date',
|
|
|
labelWidth: 110,
|
|
|
key: 'birthday',
|
|
|
- value: '2000-01-01',
|
|
|
- defaultValue: new Date(2000, 1, 1),
|
|
|
+ value: new Date(2000, 0, 1).getTime(), // 月份是从 0 开始的
|
|
|
label: '出生日期 *',
|
|
|
disabledFutureDates: true,
|
|
|
col: 6,
|
|
@@ -281,9 +280,8 @@ const items = ref({
|
|
|
type: 'datePicker',
|
|
|
mode: 'month',
|
|
|
key: 'firstWorkTime',
|
|
|
- value: '2000-01',
|
|
|
+ value: new Date(2000, 0).getTime(), // 月份是从 0 开始的
|
|
|
disabledFutureDates: true,
|
|
|
- defaultValue: new Date(2000, 1),
|
|
|
format: 'YYYY/MM',
|
|
|
labelWidth: 110,
|
|
|
flexStyle: 'mb-7',
|
|
@@ -407,7 +405,7 @@ const items = ref({
|
|
|
col: 6,
|
|
|
items: [],
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
]
|
|
|
})
|
|
|
|