From fbd4fdcbd14fd83b8dbc46a01e1d7c6e4963714e Mon Sep 17 00:00:00 2001 From: dragon <3013557874@qq.com> Date: Thu, 18 Jul 2024 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8B=8B=E7=AB=A0=E8=AF=B7=E6=B1=82=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/medal/MedalInfo.vue | 10 +++++----- src/views/medal/MedalRecord.vue | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/medal/MedalInfo.vue b/src/views/medal/MedalInfo.vue index f526d5f..22c7a49 100644 --- a/src/views/medal/MedalInfo.vue +++ b/src/views/medal/MedalInfo.vue @@ -129,7 +129,7 @@ filterable v-model="controlsObj.value" placeholder="请选择" - style="width:100%" + style="width: 100%" > { + this.controlsObj.options = res.data; + this.getData(); + }); }); - listPartitionInfo().then((res) => { - this.controlsObj.options = res.data; - }); - this.getData(); }, methods: { // 查询接口 diff --git a/src/views/medal/MedalRecord.vue b/src/views/medal/MedalRecord.vue index 8ea2b73..15afa59 100644 --- a/src/views/medal/MedalRecord.vue +++ b/src/views/medal/MedalRecord.vue @@ -243,6 +243,7 @@ export default { listAll().then((res) => { if (res.code == 200) { this.grantObj.options = res.data; + this.getData(); } else { ElMessage({ showClose: true, @@ -251,7 +252,6 @@ export default { }); } }); - this.getData(); }, methods: { // 查询接口