From 085c894a019c02bb8a440286448450c1d9e6beef Mon Sep 17 00:00:00 2001
From: zhaoxuebing <1291173720@qq.com>
Date: Fri, 22 Mar 2024 15:38:22 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/dict/dict.data.ts | 7 ++++++-
src/views/infra/config/ConfigForm.vue | 26 +++++++++++++++++++++++-
src/views/infra/config/index.vue | 29 ++++++++++++++++++++-------
3 files changed, 53 insertions(+), 9 deletions(-)
diff --git a/src/api/system/dict/dict.data.ts b/src/api/system/dict/dict.data.ts
index 87e7dce71..faa0dca0f 100644
--- a/src/api/system/dict/dict.data.ts
+++ b/src/api/system/dict/dict.data.ts
@@ -23,8 +23,13 @@ export const getDictDataPage = (params: PageParam) => {
return request.get({ url: '/system/dict-data/page', params })
}
+// 查询字典数据列表根据类型
+export const queryByDictType = (dictType: number) => {
+ return request.get({ url: '/system/dict-data/queryByDictType?dictType=' + dictType })
+}
+
// 查询字典数据详情
-export const getDictData = (id: number) => {
+export const getDictData = (id: string) => {
return request.get({ url: '/system/dict-data/get?id=' + id })
}
diff --git a/src/views/infra/config/ConfigForm.vue b/src/views/infra/config/ConfigForm.vue
index 19b5bf1ea..e8a7bac26 100644
--- a/src/views/infra/config/ConfigForm.vue
+++ b/src/views/infra/config/ConfigForm.vue
@@ -19,6 +19,21 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+