From c57ac1aa704d5700d6949cc73ab424e70b4a9f63 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 20 二月 2025 16:54:49 +0800 Subject: [PATCH] 项目增加项目子类型字段 --- src/api/system/dict/data.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js index 6c9eb79..1500fc2 100644 --- a/src/api/system/dict/data.js +++ b/src/api/system/dict/data.js @@ -50,3 +50,20 @@ method: 'delete' }) } + +// 鏌ヨ瀛楀吀鏁版嵁鍒楄〃锛堜笉鍒嗛〉锛� +export function dataList(query) { + return request({ + url: '/system/dict/data/dataList', + method: 'get', + params: query + }) +} + +// 鏍规嵁鐖剁骇id鑾峰彇瀛愮骇鏁版嵁 +export function getChildList(parentId) { + return request({ + url: '/system/dict/data/child/by/parent/' + parentId, + method: 'get' + }) +} -- Gitblit v1.8.0