This commit is contained in:
parent
69fca571ab
commit
be91de996e
|
|
@ -1,4 +1,4 @@
|
|||
# VITE_API_BASE_URL = http://112.29.103.165:1616
|
||||
VITE_API_BASE_URL = /api
|
||||
# VITE_API_BASE_URL = http://192.168.0.14:1999/hd-realname/prod-api
|
||||
# VITE_API_BASE_URL = /api
|
||||
VITE_API_BASE_URL = http://192.168.0.14:1999/hd-realname/prod-api
|
||||
# VITE_API_BASE_URL = http://192.168.0.234:38080
|
||||
|
|
|
|||
|
|
@ -114,12 +114,13 @@
|
|||
multiple
|
||||
:maxCount="1"
|
||||
:name="item.name"
|
||||
accept="image/*"
|
||||
accept="image"
|
||||
:fileList="item.fileList"
|
||||
@delete="deletePic($event, index)"
|
||||
:disabled="isEditContractStatus"
|
||||
:deletable="!isEditContractStatus"
|
||||
@afterRead="afterRead($event, index)"
|
||||
:capture="['album', 'camera']"
|
||||
/>
|
||||
</up-form-item>
|
||||
</up-form>
|
||||
|
|
|
|||
|
|
@ -92,9 +92,10 @@
|
|||
multiple
|
||||
:maxCount="1"
|
||||
name="faceImg"
|
||||
accept="image/*"
|
||||
accept="image"
|
||||
@delete="deletePic"
|
||||
@afterRead="afterRead"
|
||||
:capture="['album', 'camera']"
|
||||
:fileList="keyInfoForm.faceImg"
|
||||
/>
|
||||
</up-form-item>
|
||||
|
|
|
|||
|
|
@ -69,9 +69,10 @@
|
|||
<up-upload
|
||||
multiple
|
||||
:maxCount="1"
|
||||
accept="image"
|
||||
:name="item.name"
|
||||
accept="image/*"
|
||||
:fileList="item.fileList"
|
||||
:capture="['album', 'camera']"
|
||||
@delete="deletePic($event, index)"
|
||||
@afterRead="afterRead($event, index)"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -39,25 +39,12 @@
|
|||
import { ref, onMounted, onBeforeUnmount } from 'vue'
|
||||
import { useCommonStore } from '@/stores'
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
const commonStore = useCommonStore()
|
||||
const currentTime = ref('') //获取当前的时分秒时间
|
||||
const timeInterval = ref(null) //定时器
|
||||
const activeProjectName = ref('') // 当前选择的工程名称
|
||||
|
||||
onMounted(() => {
|
||||
timeInterval.value = setInterval(() => {
|
||||
// currentTime.value = new Date().toLocaleTimeString()
|
||||
|
||||
// 设置时分秒
|
||||
currentTime.value = dayjs().format('HH:mm:ss')
|
||||
}, 1000)
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
clearInterval(timeInterval.value)
|
||||
timeInterval.value = null
|
||||
})
|
||||
|
||||
// 打卡记录
|
||||
const onAttendanceRecord = () => {
|
||||
uni.navigateTo({
|
||||
|
|
@ -82,9 +69,22 @@ const onAttendanceHandle = () => {
|
|||
uni.$u.toast('功能正在开发中,敬请期待...')
|
||||
}
|
||||
|
||||
// onMounted生命周期 组件挂载时
|
||||
onMounted(() => {
|
||||
timeInterval.value = setInterval(() => {
|
||||
// currentTime.value = new Date().toLocaleTimeString()
|
||||
|
||||
// 设置时分秒
|
||||
currentTime.value = dayjs().format('HH:mm:ss')
|
||||
}, 1000)
|
||||
activeProjectName.value = commonStore?.activeProjectName
|
||||
})
|
||||
|
||||
// onBeforeUnmount生命周期 组件卸载时
|
||||
onBeforeUnmount(() => {
|
||||
clearInterval(timeInterval.value)
|
||||
timeInterval.value = null
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
|
|
|||
|
|
@ -42,12 +42,12 @@
|
|||
class="custom-input"
|
||||
>
|
||||
<template #suffix>
|
||||
<u-icon
|
||||
<!-- <u-icon
|
||||
size="20"
|
||||
@tap="showPassword = !showPassword"
|
||||
:name="!showPassword ? 'eye-fill' : 'eye'"
|
||||
color="#2979ff"
|
||||
/>
|
||||
/> -->
|
||||
</template>
|
||||
</up-input>
|
||||
</up-form-item>
|
||||
|
|
|
|||
|
|
@ -33,11 +33,12 @@
|
|||
v-model="editPasswordModel.oldPassword"
|
||||
>
|
||||
<template #suffix>
|
||||
<u-icon
|
||||
<!-- <u-icon
|
||||
v-if="showPassword_1"
|
||||
:name="!showPassword_1 ? 'eye-fill' : 'eye'"
|
||||
@tap="showPassword_1 = !showPassword_1"
|
||||
size="20"
|
||||
/>
|
||||
/> -->
|
||||
</template>
|
||||
</up-input>
|
||||
</up-form-item>
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@
|
|||
<up-upload
|
||||
multiple
|
||||
:maxCount="3"
|
||||
name="faceImg"
|
||||
accept="image/*"
|
||||
accept="image"
|
||||
@delete="deletePic"
|
||||
:fileList="fileList"
|
||||
@afterRead="afterRead"
|
||||
:capture="['album', 'camera']"
|
||||
/>
|
||||
</view>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue