首页-人员列表查询
This commit is contained in:
parent
1e04c59636
commit
3a99cf4209
|
|
@ -151,7 +151,17 @@ export default {
|
||||||
const chartsData = this.chartData.series[0].data
|
const chartsData = this.chartData.series[0].data
|
||||||
const currenRows = chartsData[currentIndex]
|
const currenRows = chartsData[currentIndex]
|
||||||
console.log('currenRows选中的工种类型', currenRows.name)
|
console.log('currenRows选中的工种类型', currenRows.name)
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?xxx=${currenRows.name}` })
|
if(currenRows.name=="普工"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?selectType=3&postName=${currenRows.name}`})
|
||||||
|
}else if(currenRows.name=="技工"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?selectType=3&postName=${currenRows.name}`})
|
||||||
|
}else if(currenRows.name=="高空"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?selectType=3&postName=${currenRows.name}`})
|
||||||
|
}else if(currenRows.name=="电焊"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?selectType=3&postName=${currenRows.name}`})
|
||||||
|
}else if(currenRows.name=="其他"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?selectType=3&postName=${currenRows.name}`})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,17 @@ export default {
|
||||||
const chartsData = this.chartData.series[0].data
|
const chartsData = this.chartData.series[0].data
|
||||||
const currenRows = chartsData[currentIndex]
|
const currenRows = chartsData[currentIndex]
|
||||||
console.log('currenRows选中的人员类型(这个应该时年龄范围)', currenRows.name)
|
console.log('currenRows选中的人员类型(这个应该时年龄范围)', currenRows.name)
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?xxx=${currenRows.name}` })
|
if(currenRows.name=="< 20"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?ageType=0`})
|
||||||
|
}else if(currenRows.name=="20-30"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?ageType=1`})
|
||||||
|
}else if(currenRows.name=="30-40"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?ageType=2`})
|
||||||
|
}else if(currenRows.name=="40-50"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?ageType=3`})
|
||||||
|
}else if(currenRows.name=="50-60"){
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?ageType=4`})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -703,26 +703,29 @@ export default {
|
||||||
switch (title) {
|
switch (title) {
|
||||||
case '在场考勤率':
|
case '在场考勤率':
|
||||||
params = '在场考勤率'
|
params = '在场考勤率'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?isAtt=0` })
|
||||||
break
|
break
|
||||||
case '作业考勤率':
|
case '作业考勤率':
|
||||||
params = '作业考勤率'
|
params = '作业考勤率'
|
||||||
|
uni.navigateTo({ url: '/pages/realName/index/pages/personList?isAtt=0&isPlanWorker=1' })
|
||||||
break
|
break
|
||||||
case '在场人员(固定)':
|
case '在场人员(固定)':
|
||||||
params = '在场人员(固定)'
|
params = '在场人员(固定)'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?workerType=1` })
|
||||||
break
|
break
|
||||||
case '在场人员(临时)':
|
case '在场人员(临时)':
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?workerType=0` })
|
||||||
params = '在场人员(临时)'
|
params = '在场人员(临时)'
|
||||||
break
|
break
|
||||||
case '考勤率(固定人员)':
|
case '考勤率(固定人员)':
|
||||||
params = '考勤率(固定人员)'
|
params = '考勤率(固定人员)'
|
||||||
|
uni.navigateTo({ url: '/pages/realName/index/pages/personList?isAtt=0&workerType=1' })
|
||||||
break
|
break
|
||||||
case '考勤率(临时人员)':
|
case '考勤率(临时人员)':
|
||||||
params = '考勤率(临时人员)'
|
params = '考勤率(临时人员)'
|
||||||
|
uni.navigateTo({ url: '/pages/realName/index/pages/personList?isAtt=0&workerType=0' })
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('params路由参数考勤固定等··', params)
|
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?xxx=${params}` })
|
|
||||||
},
|
},
|
||||||
/* 工程概况跳转 */
|
/* 工程概况跳转 */
|
||||||
onJumpProjectList(title) {
|
onJumpProjectList(title) {
|
||||||
|
|
@ -752,30 +755,34 @@ export default {
|
||||||
// 跳转人员列表
|
// 跳转人员列表
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 1:
|
case 1:
|
||||||
params = '绿灯'
|
// params = '绿灯'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?lightStatus=2` })
|
||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
params = '黄灯'
|
params = '黄灯'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?lightStatus=1` })
|
||||||
break
|
break
|
||||||
case 3:
|
case 3:
|
||||||
params = '红灯'
|
params = '红灯'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?lightStatus=0` })
|
||||||
break
|
break
|
||||||
case 4:
|
case 4:
|
||||||
params = '男性'
|
params = '男性'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?sex=1` })
|
||||||
break
|
break
|
||||||
case 5:
|
case 5:
|
||||||
params = '女性'
|
params = '女性'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?sex=0` })
|
||||||
break
|
break
|
||||||
case 6:
|
case 6:
|
||||||
params = '固定人员'
|
params = '固定人员'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?workerType=1` })
|
||||||
break
|
break
|
||||||
case 7:
|
case 7:
|
||||||
params = '临时人员'
|
params = '临时人员'
|
||||||
|
uni.navigateTo({ url: `/pages/realName/index/pages/personList?workerType=0` })
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('params路由参数红黄灯以及性别··和固定、临时', params)
|
|
||||||
uni.navigateTo({ url: `/pages/realName/index/pages/personList?xxx=${params}` })
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
<view style="font-weight: bold;margin-left: 40rpx;">{{item.postName}}</view>
|
<view style="font-weight: bold;margin-left: 40rpx;">{{item.postName}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="width: 40%;margin:0 20rpx;display: flex;align-items: center;">
|
<view style="width: 40%;margin:0 20rpx;display: flex;align-items: center;">
|
||||||
<view>联系方式</view>
|
<view style="width: 100rpx;">联系方式</view>
|
||||||
<view style="color: #3f9dfd; font-weight: bold;margin-left: 40rpx;">{{item.phone}}</view>
|
<view style="color: #3f9dfd; font-weight: bold;margin-left: 40rpx;">{{item.phone}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -286,6 +286,14 @@ export default {
|
||||||
this.activeIndex3 = 2
|
this.activeIndex3 = 2
|
||||||
this.queryParams.params.workerType = "0"
|
this.queryParams.params.workerType = "0"
|
||||||
this.getListData()
|
this.getListData()
|
||||||
|
}else if(option.sex&&option.sex==1){//男
|
||||||
|
this.activeIndex5 = 1
|
||||||
|
this.queryParams.params.sex = "1"
|
||||||
|
this.getListData()
|
||||||
|
}else if(option.sex&&option.sex==0){//女
|
||||||
|
this.activeIndex5 = 2
|
||||||
|
this.queryParams.params.sex = "0"
|
||||||
|
this.getListData()
|
||||||
}else if(option.lightStatus&&option.lightStatus==2){//绿灯
|
}else if(option.lightStatus&&option.lightStatus==2){//绿灯
|
||||||
this.activeIndex2 = 1
|
this.activeIndex2 = 1
|
||||||
this.queryParams.params.lightStatus = "2"
|
this.queryParams.params.lightStatus = "2"
|
||||||
|
|
@ -298,7 +306,46 @@ export default {
|
||||||
this.activeIndex2 = 3
|
this.activeIndex2 = 3
|
||||||
this.queryParams.params.lightStatus = "0"
|
this.queryParams.params.lightStatus = "0"
|
||||||
this.getListData()
|
this.getListData()
|
||||||
} else {
|
}else if(option.isAtt&&option.isAtt==0&&option.workerType&&option.workerType==1){//已考勤-固定人员
|
||||||
|
this.activeIndex6=1
|
||||||
|
this.queryParams.params.isAtt = "0"
|
||||||
|
this.activeIndex3 = 1
|
||||||
|
this.queryParams.params.workerType = "1,2"
|
||||||
|
this.getListData()
|
||||||
|
}else if(option.isAtt&&option.isAtt==0&&option.workerType&&option.workerType==0){//已考勤-临时人员
|
||||||
|
this.activeIndex6=1
|
||||||
|
this.queryParams.params.isAtt = "0"
|
||||||
|
this.activeIndex3 = 2
|
||||||
|
this.queryParams.params.workerType = "0"
|
||||||
|
this.getListData()
|
||||||
|
}else if(option.selectType&&option.postName){//已考勤-临时人员
|
||||||
|
this.selectType=Number(option.selectType)
|
||||||
|
this.keyWord = option.postName||"";
|
||||||
|
this.getListData()
|
||||||
|
}else if(option.ageType&&option.ageType!=""){//年龄
|
||||||
|
if(option.ageType==0){
|
||||||
|
this.activeIndex4 = 1
|
||||||
|
this.queryParams.params.startAge = '0'
|
||||||
|
this.queryParams.params.endAge = '20'
|
||||||
|
}else if(option.ageType==1){
|
||||||
|
this.activeIndex4 = 2
|
||||||
|
this.queryParams.params.startAge = '20'
|
||||||
|
this.queryParams.params.endAge = '30'
|
||||||
|
}else if(option.ageType==2){
|
||||||
|
this.activeIndex4 = 3
|
||||||
|
this.queryParams.params.startAge = '30'
|
||||||
|
this.queryParams.params.endAge = '40'
|
||||||
|
}else if(option.ageType==3){
|
||||||
|
this.activeIndex4 = 4
|
||||||
|
this.queryParams.params.startAge = '40'
|
||||||
|
this.queryParams.params.endAge = '50'
|
||||||
|
}else if(option.ageType==4){
|
||||||
|
this.activeIndex4 = 5
|
||||||
|
this.queryParams.params.startAge = '50'
|
||||||
|
this.queryParams.params.endAge = '60'
|
||||||
|
}
|
||||||
|
this.getListData()
|
||||||
|
}else{
|
||||||
this.getListData()
|
this.getListData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -306,15 +353,14 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
/* 获取列表 */
|
/* 获取列表 */
|
||||||
async getListData() {
|
async getListData() {
|
||||||
|
|
||||||
if(this.selectType==0){
|
if(this.selectType==0){
|
||||||
this.workerName=this.keyWord
|
this.queryParams.params.workerName=this.keyWord
|
||||||
}else if(this.selectType==1){
|
}else if(this.selectType==1){
|
||||||
this.subName=this.keyWord
|
this.queryParams.params.subName=this.keyWord
|
||||||
}else if(this.selectType==2){
|
}else if(this.selectType==2){
|
||||||
this.teamName=this.keyWord
|
this.queryParams.params.teamName=this.keyWord
|
||||||
}else if(this.selectType==3){
|
}else if(this.selectType==3){
|
||||||
this.postName=this.keyWord
|
this.queryParams.params.postName=this.keyWord
|
||||||
}
|
}
|
||||||
console.log(this.queryParams)
|
console.log(this.queryParams)
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue