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 = http://112.29.103.165:1616
VITE_API_BASE_URL = /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.14:1999/hd-realname/prod-api
# VITE_API_BASE_URL = http://192.168.0.234:38080 # VITE_API_BASE_URL = http://192.168.0.234:38080

View File

@ -114,12 +114,13 @@
multiple multiple
:maxCount="1" :maxCount="1"
:name="item.name" :name="item.name"
accept="image/*" accept="image"
:fileList="item.fileList" :fileList="item.fileList"
@delete="deletePic($event, index)" @delete="deletePic($event, index)"
:disabled="isEditContractStatus" :disabled="isEditContractStatus"
:deletable="!isEditContractStatus" :deletable="!isEditContractStatus"
@afterRead="afterRead($event, index)" @afterRead="afterRead($event, index)"
:capture="['album', 'camera']"
/> />
</up-form-item> </up-form-item>
</up-form> </up-form>

View File

@ -92,9 +92,10 @@
multiple multiple
:maxCount="1" :maxCount="1"
name="faceImg" name="faceImg"
accept="image/*" accept="image"
@delete="deletePic" @delete="deletePic"
@afterRead="afterRead" @afterRead="afterRead"
:capture="['album', 'camera']"
:fileList="keyInfoForm.faceImg" :fileList="keyInfoForm.faceImg"
/> />
</up-form-item> </up-form-item>

View File

@ -69,9 +69,10 @@
<up-upload <up-upload
multiple multiple
:maxCount="1" :maxCount="1"
accept="image"
:name="item.name" :name="item.name"
accept="image/*"
:fileList="item.fileList" :fileList="item.fileList"
:capture="['album', 'camera']"
@delete="deletePic($event, index)" @delete="deletePic($event, index)"
@afterRead="afterRead($event, index)" @afterRead="afterRead($event, index)"
/> />

View File

@ -39,25 +39,12 @@
import { ref, onMounted, onBeforeUnmount } from 'vue' import { ref, onMounted, onBeforeUnmount } from 'vue'
import { useCommonStore } from '@/stores' import { useCommonStore } from '@/stores'
import dayjs from 'dayjs' import dayjs from 'dayjs'
const commonStore = useCommonStore() const commonStore = useCommonStore()
const currentTime = ref('') // const currentTime = ref('') //
const timeInterval = ref(null) // const timeInterval = ref(null) //
const activeProjectName = ref('') // 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 = () => { const onAttendanceRecord = () => {
uni.navigateTo({ uni.navigateTo({
@ -82,9 +69,22 @@ const onAttendanceHandle = () => {
uni.$u.toast('功能正在开发中,敬请期待...') uni.$u.toast('功能正在开发中,敬请期待...')
} }
// onMounted
onMounted(() => { onMounted(() => {
timeInterval.value = setInterval(() => {
// currentTime.value = new Date().toLocaleTimeString()
//
currentTime.value = dayjs().format('HH:mm:ss')
}, 1000)
activeProjectName.value = commonStore?.activeProjectName activeProjectName.value = commonStore?.activeProjectName
}) })
// onBeforeUnmount
onBeforeUnmount(() => {
clearInterval(timeInterval.value)
timeInterval.value = null
})
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

View File

@ -42,12 +42,12 @@
class="custom-input" class="custom-input"
> >
<template #suffix> <template #suffix>
<u-icon <!-- <u-icon
size="20" size="20"
@tap="showPassword = !showPassword" @tap="showPassword = !showPassword"
:name="!showPassword ? 'eye-fill' : 'eye'" :name="!showPassword ? 'eye-fill' : 'eye'"
color="#2979ff" color="#2979ff"
/> /> -->
</template> </template>
</up-input> </up-input>
</up-form-item> </up-form-item>

View File

@ -33,11 +33,12 @@
v-model="editPasswordModel.oldPassword" v-model="editPasswordModel.oldPassword"
> >
<template #suffix> <template #suffix>
<u-icon <!-- <u-icon
v-if="showPassword_1"
:name="!showPassword_1 ? 'eye-fill' : 'eye'" :name="!showPassword_1 ? 'eye-fill' : 'eye'"
@tap="showPassword_1 = !showPassword_1" @tap="showPassword_1 = !showPassword_1"
size="20" size="20"
/> /> -->
</template> </template>
</up-input> </up-input>
</up-form-item> </up-form-item>

View File

@ -51,11 +51,11 @@
<up-upload <up-upload
multiple multiple
:maxCount="3" :maxCount="3"
name="faceImg" accept="image"
accept="image/*"
@delete="deletePic" @delete="deletePic"
:fileList="fileList" :fileList="fileList"
@afterRead="afterRead" @afterRead="afterRead"
:capture="['album', 'camera']"
/> />
</view> </view>