From f382164df68c334a6c268f2bcb78ec384b88e710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90-=E6=9D=8E?= <1537080775@qq.com> Date: Fri, 28 Jul 2023 13:13:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A1=A8=E6=A0=BC=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6):=20=E4=BF=AE=E6=94=B9=E4=BA=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=AF=B7=E6=B1=82=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/tableSelector/index.vue | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/web/src/components/tableSelector/index.vue b/web/src/components/tableSelector/index.vue index d98cff446..a2a0bdf0f 100644 --- a/web/src/components/tableSelector/index.vue +++ b/web/src/components/tableSelector/index.vue @@ -43,6 +43,7 @@ import {defineProps, onMounted, reactive, ref, toRaw, watch} from 'vue' import {dict} from '@fast-crud/fast-crud' import XEUtils from 'xe-utils' +import { request } from '/@/utils/service'; const props = defineProps({ modelValue: {}, @@ -119,16 +120,18 @@ const handleCurrentChange = (val: any) => { * 获取字典值 */ const getDict = async () => { - const url = props.tableConfig.url - const params = { - page: pageConfig.page, - limit: pageConfig.limit, - search: search - } - const dicts = dict({url: url, params: params}) - await dicts.reloadDict() - const dictData: any = dicts.data - const {data, page, limit, total} = dictData + const url = props.tableConfig.url; + const params = { + page: pageConfig.page, + limit: pageConfig.limit, + search: search.value, + }; + const dicts = await request({ + url: url, + method: 'get', + params: params, + }); + const { data, page, limit, total } = dicts; pageConfig.page = page pageConfig.limit = limit pageConfig.total = total -- Gitee