From bcf398d588c873875e680541431c267d611ef557 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 12 五月 2025 13:36:02 +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