From 5f460fcbdfc01b392e739ce4a08cf399cd150cd9 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 7 Nov 2024 11:43:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E9=80=9A=E8=AF=9D=E8=AE=B0=E5=BD=95=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fvcomponents/fvTable/index.vue | 7 ++++++- src/views/home/index.vue | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/fvcomponents/fvTable/index.vue b/src/fvcomponents/fvTable/index.vue index a0edf10..0172f61 100644 --- a/src/fvcomponents/fvTable/index.vue +++ b/src/fvcomponents/fvTable/index.vue @@ -125,6 +125,11 @@ const props = defineProps({ isSettingCol: { type: Boolean, default: true + }, + //表格是否刷新 + isLoading: { + type: Boolean, + default: true } }) @@ -217,7 +222,7 @@ const getList = async () => { const { api, params } = props.tableConfig const queryParmas = {...localData.query, ...params} if(api) { - localData.loading = true + localData.loading = props.isLoading try { const {code, data, msg} = await requestList(api, queryParmas).then(res=>{ // console.log(res) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index b980a6c..0b3f58a 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -6,7 +6,7 @@