From c291ea45b0b43e0a82aa20c90ab705db67fbcc4f Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 24 Oct 2025 15:29:34 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/TagsView/index.vue | 2 +- .../attendance-count/person-table.vue | 16 ++++++++++++---- .../attendance-count/sub-team-table.vue | 8 +++++++- .../project-count/detail/index.vue | 2 ++ .../three-and-one/detail/index.vue | 19 ++++++++++++++++--- 5 files changed, 38 insertions(+), 9 deletions(-) diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index c0902a6..78dd789 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -207,10 +207,10 @@ export default { } }, closeSelectedTag(view) { - this.$tab.refreshPage(view) this.$tab.closePage(view).then(({ visitedViews }) => { if (this.isActive(view)) { this.toLastView(visitedViews, view) + this.$store.dispatch('tagsView/delIframeView', this.$route) } }) }, diff --git a/src/views/construction-person/attendance-manage/attendance-count/person-table.vue b/src/views/construction-person/attendance-manage/attendance-count/person-table.vue index 45f014d..997652d 100644 --- a/src/views/construction-person/attendance-manage/attendance-count/person-table.vue +++ b/src/views/construction-person/attendance-manage/attendance-count/person-table.vue @@ -13,10 +13,7 @@ :sendParams="{ proId: proId, teamId: teamId, - time: [ - new Date().toISOString().split('T')[0], - new Date().toISOString().split('T')[0], - ], + time: times, }" > diff --git a/src/views/synthesize-query/project-count/detail/index.vue b/src/views/synthesize-query/project-count/detail/index.vue index 1e22ba9..83f2332 100644 --- a/src/views/synthesize-query/project-count/detail/index.vue +++ b/src/views/synthesize-query/project-count/detail/index.vue @@ -76,6 +76,8 @@ export default { $route: { handler(newVal) { // this.proId = newVal.query.proId + + console.log(newVal.query, 'newVal.query') const { proId, proName, diff --git a/src/views/synthesize-query/three-and-one/detail/index.vue b/src/views/synthesize-query/three-and-one/detail/index.vue index afb7a32..61d7698 100644 --- a/src/views/synthesize-query/three-and-one/detail/index.vue +++ b/src/views/synthesize-query/three-and-one/detail/index.vue @@ -29,9 +29,9 @@ export default { }, created() { // 从路由参数获取项目ID - this.projectId = this.$route.query?.id - this.proName = this.$route.query?.proName - this.subComName = this.$route.query?.subComName + // this.projectId = this.$route.query?.id + // this.proName = this.$route.query?.proName + // this.subComName = this.$route.query?.subComName }, methods: { // 处理卡片点击事件 @@ -67,5 +67,18 @@ export default { }) }, }, + + watch: { + $route: { + handler(newVal) { + const { id, proName, subComName } = newVal.query + this.projectId = id + this.proName = proName + this.subComName = subComName + }, + immediate: true, + deep: true, + }, + }, }