This commit is contained in:
parent
67bf32b962
commit
ee6026a46a
|
|
@ -201,6 +201,23 @@ export default {
|
||||||
mainProId: this.selectCompany,
|
mainProId: this.selectCompany,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
initParams: {
|
||||||
|
subComId: '',
|
||||||
|
proStatus: '',
|
||||||
|
volLevel: '',
|
||||||
|
proType: '',
|
||||||
|
lightStatus: '',
|
||||||
|
startAge: '',
|
||||||
|
endAge: '',
|
||||||
|
sex: '',
|
||||||
|
isAtt: '',
|
||||||
|
postId: '',
|
||||||
|
teamId: '',
|
||||||
|
subId: '',
|
||||||
|
proId: '',
|
||||||
|
age: '',
|
||||||
|
},
|
||||||
|
|
||||||
commonSlots: [
|
commonSlots: [
|
||||||
'onSiteCount',
|
'onSiteCount',
|
||||||
'todayAttendanceCount',
|
'todayAttendanceCount',
|
||||||
|
|
@ -322,13 +339,14 @@ export default {
|
||||||
|
|
||||||
// 查看人员信息
|
// 查看人员信息
|
||||||
handleCheckPersonCount(data, type) {
|
handleCheckPersonCount(data, type) {
|
||||||
|
// 初始化查询条件
|
||||||
|
Object.assign(this.queryParams, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParams.isAtt = '1'
|
this.queryParams.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
this.queryParams.isAtt = ''
|
this.queryParams.isAtt = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
this.queryParams.lightStatus = ''
|
|
||||||
this.queryParams.teamId = data.teamId
|
this.queryParams.teamId = data.teamId
|
||||||
this.queryParams.proId = data.proId
|
this.queryParams.proId = data.proId
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
|
|
|
||||||
|
|
@ -422,6 +422,23 @@ export default {
|
||||||
mainProId: '',
|
mainProId: '',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
initParams: {
|
||||||
|
subComId: '',
|
||||||
|
proStatus: '',
|
||||||
|
volLevel: '',
|
||||||
|
proType: '',
|
||||||
|
lightStatus: '',
|
||||||
|
startAge: '',
|
||||||
|
endAge: '',
|
||||||
|
sex: '',
|
||||||
|
age: '',
|
||||||
|
isAtt: '',
|
||||||
|
postId: '',
|
||||||
|
teamId: '',
|
||||||
|
subId: '',
|
||||||
|
proId: '',
|
||||||
|
},
|
||||||
|
|
||||||
mainProId: '', // 总工程id
|
mainProId: '', // 总工程id
|
||||||
proId: '', // 标段工程id
|
proId: '', // 标段工程id
|
||||||
subId: '', // 分包id
|
subId: '', // 分包id
|
||||||
|
|
@ -523,11 +540,11 @@ export default {
|
||||||
// 获取筛选条件
|
// 获取筛选条件
|
||||||
handelSettingQuery(query) {
|
handelSettingQuery(query) {
|
||||||
console.log('筛选条件', query)
|
console.log('筛选条件', query)
|
||||||
this.queryParams = query
|
this.queryParamsPerson = query
|
||||||
|
|
||||||
if (query.lightStatus == 3) {
|
if (query.lightStatus == 3) {
|
||||||
this.$set(this.queryParams, 'lightStatusSeven', 7)
|
this.$set(this.queryParamsPerson, 'lightStatusSeven', 7)
|
||||||
this.queryParams.lightStatus = 1
|
this.queryParamsPerson.lightStatus = 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -580,13 +597,13 @@ export default {
|
||||||
|
|
||||||
// 标段工程列表点击查看人员信息
|
// 标段工程列表点击查看人员信息
|
||||||
handleCheckPersonCount_1(data, type) {
|
handleCheckPersonCount_1(data, type) {
|
||||||
|
Object.assign(this.queryParamsPerson, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParamsPerson.isAtt = '1'
|
this.queryParamsPerson.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
this.queryParamsPerson.isAtt = ''
|
this.queryParamsPerson.isAtt = ''
|
||||||
}
|
}
|
||||||
this.queryParamsPerson.subId = ''
|
|
||||||
this.queryParamsPerson.teamId = ''
|
|
||||||
this.queryParamsPerson.proId = data.proId
|
this.queryParamsPerson.proId = data.proId
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
this.dialogConfigFour.outerVisible = true
|
this.dialogConfigFour.outerVisible = true
|
||||||
|
|
@ -594,19 +611,21 @@ export default {
|
||||||
|
|
||||||
// 分包列表点击查看人员信息
|
// 分包列表点击查看人员信息
|
||||||
handleCheckPersonCount_2(data, type) {
|
handleCheckPersonCount_2(data, type) {
|
||||||
|
Object.assign(this.queryParamsPerson, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParamsPerson.isAtt = '1'
|
this.queryParamsPerson.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
this.queryParamsPerson.isAtt = ''
|
this.queryParamsPerson.isAtt = ''
|
||||||
}
|
}
|
||||||
this.queryParamsPerson.subId = data.subId
|
this.queryParamsPerson.subId = data.subId
|
||||||
this.queryParamsPerson.teamId = ''
|
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
this.dialogConfigFour.outerVisible = true
|
this.dialogConfigFour.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
// 班组列表点击查看人员信息
|
// 班组列表点击查看人员信息
|
||||||
handleCheckPersonCount_3(data, type) {
|
handleCheckPersonCount_3(data, type) {
|
||||||
|
Object.assign(this.queryParamsPerson, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParamsPerson.isAtt = '1'
|
this.queryParamsPerson.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -277,6 +277,23 @@ export default {
|
||||||
mainProId: this.selectCompany,
|
mainProId: this.selectCompany,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
initParams: {
|
||||||
|
subComId: '',
|
||||||
|
proStatus: '',
|
||||||
|
volLevel: '',
|
||||||
|
proType: '',
|
||||||
|
lightStatus: '',
|
||||||
|
startAge: '',
|
||||||
|
endAge: '',
|
||||||
|
sex: '',
|
||||||
|
isAtt: '',
|
||||||
|
postId: '',
|
||||||
|
teamId: '',
|
||||||
|
subId: '',
|
||||||
|
proId: '',
|
||||||
|
age: '',
|
||||||
|
},
|
||||||
|
|
||||||
commonSlots: [
|
commonSlots: [
|
||||||
'onSiteCount',
|
'onSiteCount',
|
||||||
'todayAttendanceCount',
|
'todayAttendanceCount',
|
||||||
|
|
@ -355,6 +372,7 @@ export default {
|
||||||
|
|
||||||
// 查看人员信息
|
// 查看人员信息
|
||||||
handleCheckPersonCount(data, type) {
|
handleCheckPersonCount(data, type) {
|
||||||
|
Object.assign(this.queryParams, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParams.isAtt = '1'
|
this.queryParams.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -362,12 +380,13 @@ export default {
|
||||||
}
|
}
|
||||||
this.queryParams.subId = data.subId
|
this.queryParams.subId = data.subId
|
||||||
this.queryParams.proId = data.proId
|
this.queryParams.proId = data.proId
|
||||||
this.queryParams.teamId = ''
|
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
this.dialogConfigFour.outerVisible = true
|
this.dialogConfigFour.outerVisible = true
|
||||||
},
|
},
|
||||||
// 班组列表点击查看信息
|
// 班组列表点击查看信息
|
||||||
handleCheckPersonCount_2(data, type) {
|
handleCheckPersonCount_2(data, type) {
|
||||||
|
Object.assign(this.queryParams, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParams.isAtt = '1'
|
this.queryParams.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -376,6 +395,7 @@ export default {
|
||||||
this.queryParams.subId = this.subId
|
this.queryParams.subId = this.subId
|
||||||
this.queryParams.proId = this.proId
|
this.queryParams.proId = this.proId
|
||||||
this.queryParams.teamId = data.teamId
|
this.queryParams.teamId = data.teamId
|
||||||
|
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
this.dialogConfigFour.outerVisible = true
|
this.dialogConfigFour.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -355,6 +355,23 @@ export default {
|
||||||
getWorkerProjectListAPI,
|
getWorkerProjectListAPI,
|
||||||
queryParams: {},
|
queryParams: {},
|
||||||
|
|
||||||
|
initParams: {
|
||||||
|
subComId: '',
|
||||||
|
proStatus: '',
|
||||||
|
volLevel: '',
|
||||||
|
proType: '',
|
||||||
|
lightStatus: '',
|
||||||
|
startAge: '',
|
||||||
|
endAge: '',
|
||||||
|
sex: '',
|
||||||
|
age: '',
|
||||||
|
isAtt: '',
|
||||||
|
postId: '',
|
||||||
|
teamId: '',
|
||||||
|
subId: '',
|
||||||
|
proId: '',
|
||||||
|
},
|
||||||
|
|
||||||
queryParamsProject: {
|
queryParamsProject: {
|
||||||
subComId: this.selectCompany,
|
subComId: this.selectCompany,
|
||||||
proStatus: this.proStatus,
|
proStatus: this.proStatus,
|
||||||
|
|
@ -476,11 +493,11 @@ export default {
|
||||||
// 获取筛选条件
|
// 获取筛选条件
|
||||||
handelSettingQuery(query) {
|
handelSettingQuery(query) {
|
||||||
console.log('筛选条件', query)
|
console.log('筛选条件', query)
|
||||||
this.queryParams = query
|
this.queryParamsPerson = query
|
||||||
|
|
||||||
if (query.lightStatus == 3) {
|
if (query.lightStatus == 3) {
|
||||||
this.$set(this.queryParams, 'lightStatusSeven', 7)
|
this.$set(this.queryParams, 'lightStatusSeven', 7)
|
||||||
this.queryParams.lightStatus = 1
|
this.queryParamsPerson.lightStatus = 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -524,13 +541,13 @@ export default {
|
||||||
|
|
||||||
// 标段工程列表点击查看人员信息
|
// 标段工程列表点击查看人员信息
|
||||||
handleCheckPersonCount_1(data, type) {
|
handleCheckPersonCount_1(data, type) {
|
||||||
|
Object.assign(this.queryParamsPerson, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParamsPerson.isAtt = '1'
|
this.queryParamsPerson.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
this.queryParamsPerson.isAtt = ''
|
this.queryParamsPerson.isAtt = ''
|
||||||
}
|
}
|
||||||
this.queryParamsPerson.subId = ''
|
|
||||||
this.queryParamsPerson.teamId = ''
|
|
||||||
this.queryParamsPerson.proId = data.proId
|
this.queryParamsPerson.proId = data.proId
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
this.dialogConfigFour.outerVisible = true
|
this.dialogConfigFour.outerVisible = true
|
||||||
|
|
@ -538,19 +555,22 @@ export default {
|
||||||
|
|
||||||
// 分包列表点击查看人员信息
|
// 分包列表点击查看人员信息
|
||||||
handleCheckPersonCount_2(data, type) {
|
handleCheckPersonCount_2(data, type) {
|
||||||
|
Object.assign(this.queryParamsPerson, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParamsPerson.isAtt = '1'
|
this.queryParamsPerson.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
this.queryParamsPerson.isAtt = ''
|
this.queryParamsPerson.isAtt = ''
|
||||||
}
|
}
|
||||||
this.queryParamsPerson.subId = data.subId
|
this.queryParamsPerson.subId = data.subId
|
||||||
this.queryParamsPerson.teamId = ''
|
|
||||||
|
this.queryParamsPerson.lightStatus = ''
|
||||||
this.dialogConfigFour.outerTitle = '人员信息'
|
this.dialogConfigFour.outerTitle = '人员信息'
|
||||||
this.dialogConfigFour.outerVisible = true
|
this.dialogConfigFour.outerVisible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
// 班组列表点击查看人员信息
|
// 班组列表点击查看人员信息
|
||||||
handleCheckPersonCount_3(data, type) {
|
handleCheckPersonCount_3(data, type) {
|
||||||
|
Object.assign(this.queryParamsPerson, this.initParams)
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
this.queryParamsPerson.isAtt = '1'
|
this.queryParamsPerson.isAtt = '1'
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue