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 = 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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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)"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue