This commit is contained in:
BianLzhaoMin 2025-09-01 09:39:44 +08:00
parent 69fca571ab
commit be91de996e
8 changed files with 29 additions and 25 deletions

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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)"
/>

View File

@ -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">

View File

@ -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>

View File

@ -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>

View File

@ -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>