From 8f38cbf36743746bde6997cef3998eadc6e95e10 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 07 一月 2025 18:16:00 +0800 Subject: [PATCH] 核算重构 --- src/views/system/contract/score/index.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/views/system/contract/score/index.vue b/src/views/system/contract/score/index.vue index 2f2e193..00fa913 100644 --- a/src/views/system/contract/score/index.vue +++ b/src/views/system/contract/score/index.vue @@ -272,8 +272,11 @@ }; }, created() { - this.getList(); this.getUnitSelect(); + if(this.$route.query.time){ + this.daterangeCreateTime= this.$route.query.time + } + this.getList(); }, methods: { /** 璇︾粏鎸夐挳鎿嶄綔 */ @@ -362,6 +365,13 @@ // 杩愮淮鍗曚綅涓嬫媺鍒楄〃 unitSelect().then((res) => { this.unitList = res.data; + if (this.$route.query.unitId) { + // 鍏堟壘鍒板搴旂殑閫夐」 + const unit = this.unitList.find(item => item.id === Number(this.$route.query.unitId) || item.id === this.$route.query.unitId); + if (unit) { + this.queryParams.unitId = unit.id; // 纭繚绫诲瀷鍖归厤 + } + } }) }, /** 鏌ヨ杩濊瀹℃牳鍒楄〃 */ -- Gitblit v1.8.0