打包配置
|
|
@ -1,3 +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 = /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
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
VITE_API_BASE_URL = http://192.168.1.175:58080
|
VITE_API_BASE_URL = http://192.168.0.14:1999/hd-realname/prod-api
|
||||||
|
|
@ -12004,9 +12004,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/uview-plus": {
|
"node_modules/uview-plus": {
|
||||||
"version": "3.4.65",
|
"version": "3.5.25",
|
||||||
"resolved": "https://repo.huaweicloud.com/repository/npm/uview-plus/-/uview-plus-3.4.65.tgz",
|
"resolved": "https://repo.huaweicloud.com/repository/npm/uview-plus/-/uview-plus-3.5.25.tgz",
|
||||||
"integrity": "sha512-SXk3CgvO+v6XNTPe8g5RrEOfebgQRHHnrsn55wTz5y1s1VE2tORvqlVjAfzvfv0udSgioeq5a4227LHcDSN3QQ==",
|
"integrity": "sha512-Z7gCtZA45qXNT8b8IEUjrb0Y++bVauK1SLv4iz/1WjIfNd++Sq7dPIsTNS9NyTwIZqJiVpnE3HqkykqIhTNCAw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"clipboard": "^2.0.11",
|
"clipboard": "^2.0.11",
|
||||||
"dayjs": "^1.11.3"
|
"dayjs": "^1.11.3"
|
||||||
|
|
|
||||||
26
src/App.vue
|
|
@ -1,15 +1,25 @@
|
||||||
<script>
|
<script setup>
|
||||||
export default {
|
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
|
||||||
onLaunch: function () {
|
onLaunch(() => {
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
|
uni.loadFontFace({
|
||||||
|
family: 'uicon-iconfont',
|
||||||
|
source: 'url("https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf")',
|
||||||
|
global: true,
|
||||||
|
success: (success) => {
|
||||||
|
console.log('Font loaded successfully', success)
|
||||||
},
|
},
|
||||||
onShow: function () {
|
fail: (fail) => {
|
||||||
|
console.log('Font loading failed', fail)
|
||||||
|
},
|
||||||
|
})
|
||||||
|
})
|
||||||
|
onShow(() => {
|
||||||
console.log('App Show')
|
console.log('App Show')
|
||||||
},
|
})
|
||||||
onHide: function () {
|
onHide(() => {
|
||||||
console.log('App Hide')
|
console.log('App Hide')
|
||||||
},
|
})
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="contractForm">
|
<script setup name="contractForm">
|
||||||
import { ref, defineExpose, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
|
|
||||||
const contractFormRef = ref(null) // 合同见证表单ref
|
const contractFormRef = ref(null) // 合同见证表单ref
|
||||||
const dateType = ref(1) // 日期类型 1:合同签订日期 2:合同终止日期
|
const dateType = ref(1) // 日期类型 1:合同签订日期 2:合同终止日期
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="keyInfoForm">
|
<script setup name="keyInfoForm">
|
||||||
import { ref, defineExpose, onMounted, watch } from 'vue'
|
import { ref, onMounted, watch } from 'vue'
|
||||||
import {
|
import {
|
||||||
getPostTypeSelectListAPI,
|
getPostTypeSelectListAPI,
|
||||||
getSubSelectListByConditionAPI,
|
getSubSelectListByConditionAPI,
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="personIdCardForm">
|
<script setup name="personIdCardForm">
|
||||||
import { ref, defineExpose, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
const idCardFormRef = ref(null) // 身份证表单ref
|
const idCardFormRef = ref(null) // 身份证表单ref
|
||||||
const idCardModel = ref({
|
const idCardModel = ref({
|
||||||
age: '',
|
age: '',
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="wageCardForm">
|
<script setup name="wageCardForm">
|
||||||
import { ref, defineExpose, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
|
|
||||||
const wageCardFormRef = ref(null) // 工资卡见证表单ref
|
const wageCardFormRef = ref(null) // 工资卡见证表单ref
|
||||||
|
|
||||||
|
|
|
||||||
13
src/main.js
|
|
@ -5,8 +5,19 @@ import uviewPlus from 'uview-plus'
|
||||||
import './static/index.scss'
|
import './static/index.scss'
|
||||||
export function createApp() {
|
export function createApp() {
|
||||||
const app = createSSRApp(App)
|
const app = createSSRApp(App)
|
||||||
app.use(uviewPlus)
|
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
|
// app.use(uviewPlus)
|
||||||
|
app.use(uviewPlus, () => {
|
||||||
|
// 注意这里是一个函数
|
||||||
|
return {
|
||||||
|
options: {
|
||||||
|
config: {
|
||||||
|
loadFontOnce: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
app,
|
app,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
<script setup name="Attendance">
|
<script setup name="Attendance">
|
||||||
import { ref, onMounted, onBeforeUnmount } from 'vue'
|
import { ref, onMounted, onBeforeUnmount } from 'vue'
|
||||||
import { useCommonStore } from '@/stores'
|
import { useCommonStore } from '@/stores'
|
||||||
|
import dayjs from 'dayjs'
|
||||||
const commonStore = useCommonStore()
|
const commonStore = useCommonStore()
|
||||||
const currentTime = ref('') //获取当前的时分秒时间
|
const currentTime = ref('') //获取当前的时分秒时间
|
||||||
const timeInterval = ref(null) //定时器
|
const timeInterval = ref(null) //定时器
|
||||||
|
|
@ -45,7 +46,10 @@ const activeProjectName = ref('') // 当前选择的工程名称
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
timeInterval.value = setInterval(() => {
|
timeInterval.value = setInterval(() => {
|
||||||
currentTime.value = new Date().toLocaleTimeString()
|
// currentTime.value = new Date().toLocaleTimeString()
|
||||||
|
|
||||||
|
// 设置时分秒
|
||||||
|
currentTime.value = dayjs().format('HH:mm:ss')
|
||||||
}, 1000)
|
}, 1000)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,10 @@ const onHandleNext = () => {
|
||||||
editPasswordModel.value.oldPassword,
|
editPasswordModel.value.oldPassword,
|
||||||
)
|
)
|
||||||
// 调后台接口判断原密码是否正确
|
// 调后台接口判断原密码是否正确
|
||||||
const res = await checkPasswordApi({ oldP: editPasswordModel.value.oldPassword })
|
const res = await checkPasswordApi({
|
||||||
|
phonenumber: editPasswordModel.value.username,
|
||||||
|
oldPassword: editPasswordModel.value.oldPassword,
|
||||||
|
})
|
||||||
console.log(
|
console.log(
|
||||||
'%c🔍 校验原密码请求出参 %c',
|
'%c🔍 校验原密码请求出参 %c',
|
||||||
'background: linear-gradient(90deg, #FF6B6B, #4ECDC4); color: white; padding: 5px 10px; border-radius: 5px; font-weight: bold;',
|
'background: linear-gradient(90deg, #FF6B6B, #4ECDC4); color: white; padding: 5px 10px; border-radius: 5px; font-weight: bold;',
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<!-- 我的 -->
|
<!-- 我的 -->
|
||||||
<view class="my-container">
|
<view class="my-container app-container" :style="{ paddingTop: safeAreaInsets?.top + 'px' }">
|
||||||
<view class="my-info">
|
<view class="my-info">
|
||||||
<up-image
|
<up-image
|
||||||
width="52"
|
width="52"
|
||||||
|
|
@ -106,6 +106,8 @@ const switchProjectShow = ref(false)
|
||||||
const searchProjectValue = ref('')
|
const searchProjectValue = ref('')
|
||||||
const activeProjectId = ref('')
|
const activeProjectId = ref('')
|
||||||
const activeProjectName = ref('')
|
const activeProjectName = ref('')
|
||||||
|
|
||||||
|
const { safeAreaInsets } = uni.getSystemInfoSync()
|
||||||
const userInfo = ref(memberStore.userInfo || {})
|
const userInfo = ref(memberStore.userInfo || {})
|
||||||
|
|
||||||
const projectList = ref([])
|
const projectList = ref([])
|
||||||
|
|
@ -201,9 +203,9 @@ onMounted(() => {
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.my-container {
|
.my-container {
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
display: flex;
|
// display: flex;
|
||||||
flex-direction: column;
|
// flex-direction: column;
|
||||||
background-color: #f0f2f5;
|
background-color: #f0f2f5;
|
||||||
|
|
||||||
.my-info {
|
.my-info {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,10 @@
|
||||||
<NavBarModal :navBarTitle="navBarTitle" />
|
<NavBarModal :navBarTitle="navBarTitle" />
|
||||||
<view
|
<view
|
||||||
class="add-person-container"
|
class="add-person-container"
|
||||||
:style="{ paddingBottom: nextBtnHeight + 'px', paddingTop: paddingTop + 'px' }"
|
:style="{
|
||||||
|
paddingBottom: nextBtnHeight + 'px',
|
||||||
|
paddingTop: safeAreaInsets?.top + paddingTop + 'px',
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<!-- 步骤条 -->
|
<!-- 步骤条 -->
|
||||||
<view>
|
<view>
|
||||||
|
|
@ -60,12 +63,14 @@
|
||||||
<script setup name="addAndEditPerson">
|
<script setup name="addAndEditPerson">
|
||||||
import { ref, onMounted, nextTick } from 'vue'
|
import { ref, onMounted, nextTick } from 'vue'
|
||||||
import { getPersonInfoByIdAPI, updatePersonLightStatusApi } from '@/services/person-entry'
|
import { getPersonInfoByIdAPI, updatePersonLightStatusApi } from '@/services/person-entry'
|
||||||
|
|
||||||
import PersonIdCardForm from '@/components/PersonIdCardForm/index.vue'
|
import PersonIdCardForm from '@/components/PersonIdCardForm/index.vue'
|
||||||
import KeyInfoForm from '@/components/KeyInfoForm/index.vue'
|
import KeyInfoForm from '@/components/KeyInfoForm/index.vue'
|
||||||
import ContractForm from '@/components/ContractForm/index.vue'
|
import ContractForm from '@/components/ContractForm/index.vue'
|
||||||
import WageCardForm from '@/components/WageCardForm/index.vue'
|
import WageCardForm from '@/components/WageCardForm/index.vue'
|
||||||
import NavBarModal from '@/components/NavBarModal/index.vue'
|
import NavBarModal from '@/components/NavBarModal/index.vue'
|
||||||
import { onLoad } from '@dcloudio/uni-app'
|
import { onLoad } from '@dcloudio/uni-app'
|
||||||
|
const { safeAreaInsets } = uni.getSystemInfoSync()
|
||||||
const navBarTitle = ref('新增人员信息')
|
const navBarTitle = ref('新增人员信息')
|
||||||
const currentStep = ref(0) // 当前步骤
|
const currentStep = ref(0) // 当前步骤
|
||||||
const nextBtnRef = ref(null) // 下一步按钮ref
|
const nextBtnRef = ref(null) // 下一步按钮ref
|
||||||
|
|
|
||||||
|
|
@ -86,11 +86,12 @@ onMounted(() => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.my-project-title {
|
.my-project-title {
|
||||||
|
// margin-bottom: 20rpx;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #333;
|
||||||
padding: 14rpx 0;
|
padding: 14rpx 0;
|
||||||
border-bottom: 1px solid #e5e5e5;
|
// border-bottom: 1px solid #e5e5e5;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { http } from '@/utils/http'
|
||||||
export const checkPasswordApi = (data) => {
|
export const checkPasswordApi = (data) => {
|
||||||
return http({
|
return http({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: '/bmw/workerLight/getWorkerAttList',
|
url: '/bmw/app/validatePassword',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -12,7 +12,7 @@ export const checkPasswordApi = (data) => {
|
||||||
export const editPasswordApi = (data) => {
|
export const editPasswordApi = (data) => {
|
||||||
return http({
|
return http({
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: '/bmw/workerLight/getWorkerAttListById',
|
url: '/bmw/app/updatePassword',
|
||||||
data,
|
data,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 857 B |
|
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.6 KiB |
|
|
@ -10,8 +10,8 @@ export default defineConfig({
|
||||||
'/api': {
|
'/api': {
|
||||||
// target: 'http://112.29.103.165:1616', // 测试环境
|
// target: 'http://112.29.103.165:1616', // 测试环境
|
||||||
// target: 'http://192.168.0.133:58080', // 梁超
|
// target: 'http://192.168.0.133:58080', // 梁超
|
||||||
target: 'http://192.168.0.14:1999/hd-realname/prod-api', // 测试环境
|
// target: 'http://192.168.0.14:1999/hd-realname/prod-api', // 测试环境
|
||||||
// target: 'http://192.168.0.234:38080', // 方亮
|
target: 'http://192.168.0.234:38080', // 方亮
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => {
|
rewrite: (path) => {
|
||||||
return path.replace(/\/api/, '')
|
return path.replace(/\/api/, '')
|
||||||
|
|
|
||||||