This commit is contained in:
caozehui
2025-02-14 16:22:45 +08:00
parent 95022f62a8
commit e8de7b56d9
4 changed files with 24 additions and 18 deletions

View File

@@ -1,10 +1,16 @@
import http from '@/api'
import { type Dict } from '@/api/system/dictionary/interface'
import {c} from "vite/dist/node/types.d-aGj9QkWt";
//获取字典类型
export const getDictTreeList = (params: Dict.ResDictTree) => {
export const getDictTreeByCode = (params: Dict.ResDictTree) => {
const code = params.code || '';
return http.get(`/dictTree/getTreeByCode?code=${code}`)
}
export const getDictTreeByName = (params: Dict.ResDictTree) => {
const name = params.name || '';
return http.get(`/dictTree/getTree?keyword=${name}`, params)
return http.get(`/dictTree/getTreeByName?name=${name}`)
}
//添加字典类型