From ee6026a46a1bf7ec8a8dda8f098b3683204f6c9c Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 25 Nov 2025 15:40:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/item-four.vue | 20 +++++++++++- .../components/item-one.vue | 31 +++++++++++++++---- .../components/item-three.vue | 22 ++++++++++++- .../components/item-two.vue | 30 +++++++++++++++--- 4 files changed, 90 insertions(+), 13 deletions(-) diff --git a/src/views/home-index/components/dataOverviewProject/components/item-four.vue b/src/views/home-index/components/dataOverviewProject/components/item-four.vue index 310be03..12de587 100644 --- a/src/views/home-index/components/dataOverviewProject/components/item-four.vue +++ b/src/views/home-index/components/dataOverviewProject/components/item-four.vue @@ -201,6 +201,23 @@ export default { mainProId: this.selectCompany, }, + initParams: { + subComId: '', + proStatus: '', + volLevel: '', + proType: '', + lightStatus: '', + startAge: '', + endAge: '', + sex: '', + isAtt: '', + postId: '', + teamId: '', + subId: '', + proId: '', + age: '', + }, + commonSlots: [ 'onSiteCount', 'todayAttendanceCount', @@ -322,13 +339,14 @@ export default { // 查看人员信息 handleCheckPersonCount(data, type) { + // 初始化查询条件 + Object.assign(this.queryParams, this.initParams) if (type === 2) { this.queryParams.isAtt = '1' } else { this.queryParams.isAtt = '' } - this.queryParams.lightStatus = '' this.queryParams.teamId = data.teamId this.queryParams.proId = data.proId this.dialogConfigFour.outerTitle = '人员信息' diff --git a/src/views/home-index/components/dataOverviewProject/components/item-one.vue b/src/views/home-index/components/dataOverviewProject/components/item-one.vue index 77ce48c..dcb6f5f 100644 --- a/src/views/home-index/components/dataOverviewProject/components/item-one.vue +++ b/src/views/home-index/components/dataOverviewProject/components/item-one.vue @@ -422,6 +422,23 @@ export default { mainProId: '', }, + initParams: { + subComId: '', + proStatus: '', + volLevel: '', + proType: '', + lightStatus: '', + startAge: '', + endAge: '', + sex: '', + age: '', + isAtt: '', + postId: '', + teamId: '', + subId: '', + proId: '', + }, + mainProId: '', // 总工程id proId: '', // 标段工程id subId: '', // 分包id @@ -523,11 +540,11 @@ export default { // 获取筛选条件 handelSettingQuery(query) { console.log('筛选条件', query) - this.queryParams = query + this.queryParamsPerson = query if (query.lightStatus == 3) { - this.$set(this.queryParams, 'lightStatusSeven', 7) - this.queryParams.lightStatus = 1 + this.$set(this.queryParamsPerson, 'lightStatusSeven', 7) + this.queryParamsPerson.lightStatus = 1 } }, @@ -580,13 +597,13 @@ export default { // 标段工程列表点击查看人员信息 handleCheckPersonCount_1(data, type) { + Object.assign(this.queryParamsPerson, this.initParams) if (type === 2) { this.queryParamsPerson.isAtt = '1' } else { this.queryParamsPerson.isAtt = '' } - this.queryParamsPerson.subId = '' - this.queryParamsPerson.teamId = '' + this.queryParamsPerson.proId = data.proId this.dialogConfigFour.outerTitle = '人员信息' this.dialogConfigFour.outerVisible = true @@ -594,19 +611,21 @@ export default { // 分包列表点击查看人员信息 handleCheckPersonCount_2(data, type) { + Object.assign(this.queryParamsPerson, this.initParams) if (type === 2) { this.queryParamsPerson.isAtt = '1' } else { this.queryParamsPerson.isAtt = '' } this.queryParamsPerson.subId = data.subId - this.queryParamsPerson.teamId = '' + this.dialogConfigFour.outerTitle = '人员信息' this.dialogConfigFour.outerVisible = true }, // 班组列表点击查看人员信息 handleCheckPersonCount_3(data, type) { + Object.assign(this.queryParamsPerson, this.initParams) if (type === 2) { this.queryParamsPerson.isAtt = '1' } else { diff --git a/src/views/home-index/components/dataOverviewProject/components/item-three.vue b/src/views/home-index/components/dataOverviewProject/components/item-three.vue index 46b1a4a..263657b 100644 --- a/src/views/home-index/components/dataOverviewProject/components/item-three.vue +++ b/src/views/home-index/components/dataOverviewProject/components/item-three.vue @@ -277,6 +277,23 @@ export default { mainProId: this.selectCompany, }, + initParams: { + subComId: '', + proStatus: '', + volLevel: '', + proType: '', + lightStatus: '', + startAge: '', + endAge: '', + sex: '', + isAtt: '', + postId: '', + teamId: '', + subId: '', + proId: '', + age: '', + }, + commonSlots: [ 'onSiteCount', 'todayAttendanceCount', @@ -355,6 +372,7 @@ export default { // 查看人员信息 handleCheckPersonCount(data, type) { + Object.assign(this.queryParams, this.initParams) if (type === 2) { this.queryParams.isAtt = '1' } else { @@ -362,12 +380,13 @@ export default { } this.queryParams.subId = data.subId this.queryParams.proId = data.proId - this.queryParams.teamId = '' + this.dialogConfigFour.outerTitle = '人员信息' this.dialogConfigFour.outerVisible = true }, // 班组列表点击查看信息 handleCheckPersonCount_2(data, type) { + Object.assign(this.queryParams, this.initParams) if (type === 2) { this.queryParams.isAtt = '1' } else { @@ -376,6 +395,7 @@ export default { this.queryParams.subId = this.subId this.queryParams.proId = this.proId this.queryParams.teamId = data.teamId + this.dialogConfigFour.outerTitle = '人员信息' this.dialogConfigFour.outerVisible = true }, diff --git a/src/views/home-index/components/dataOverviewProject/components/item-two.vue b/src/views/home-index/components/dataOverviewProject/components/item-two.vue index b2428d2..726b91b 100644 --- a/src/views/home-index/components/dataOverviewProject/components/item-two.vue +++ b/src/views/home-index/components/dataOverviewProject/components/item-two.vue @@ -355,6 +355,23 @@ export default { getWorkerProjectListAPI, queryParams: {}, + initParams: { + subComId: '', + proStatus: '', + volLevel: '', + proType: '', + lightStatus: '', + startAge: '', + endAge: '', + sex: '', + age: '', + isAtt: '', + postId: '', + teamId: '', + subId: '', + proId: '', + }, + queryParamsProject: { subComId: this.selectCompany, proStatus: this.proStatus, @@ -476,11 +493,11 @@ export default { // 获取筛选条件 handelSettingQuery(query) { console.log('筛选条件', query) - this.queryParams = query + this.queryParamsPerson = query if (query.lightStatus == 3) { this.$set(this.queryParams, 'lightStatusSeven', 7) - this.queryParams.lightStatus = 1 + this.queryParamsPerson.lightStatus = 1 } }, @@ -524,13 +541,13 @@ export default { // 标段工程列表点击查看人员信息 handleCheckPersonCount_1(data, type) { + Object.assign(this.queryParamsPerson, this.initParams) if (type === 2) { this.queryParamsPerson.isAtt = '1' } else { this.queryParamsPerson.isAtt = '' } - this.queryParamsPerson.subId = '' - this.queryParamsPerson.teamId = '' + this.queryParamsPerson.proId = data.proId this.dialogConfigFour.outerTitle = '人员信息' this.dialogConfigFour.outerVisible = true @@ -538,19 +555,22 @@ export default { // 分包列表点击查看人员信息 handleCheckPersonCount_2(data, type) { + Object.assign(this.queryParamsPerson, this.initParams) if (type === 2) { this.queryParamsPerson.isAtt = '1' } else { this.queryParamsPerson.isAtt = '' } this.queryParamsPerson.subId = data.subId - this.queryParamsPerson.teamId = '' + + this.queryParamsPerson.lightStatus = '' this.dialogConfigFour.outerTitle = '人员信息' this.dialogConfigFour.outerVisible = true }, // 班组列表点击查看人员信息 handleCheckPersonCount_3(data, type) { + Object.assign(this.queryParamsPerson, this.initParams) if (type === 2) { this.queryParamsPerson.isAtt = '1' } else {