Commit 1a16cc22 authored by 张伯涛's avatar 张伯涛

修改

parent 28d2473b
......@@ -23,6 +23,22 @@ export function getDictTypePage(
params: queryParams,
});
}
/** 查询字典数据列表*/
export function listData(query) {
return request({
url: "/system/dict/data/list",
method: "get",
params: query,
});
}
export function listType(query) {
return request({
url: "/system/dict/type/list",
method: "get",
params: query,
});
}
/** 获取字典选择框列表*/
export function selectDictType(dictType) {
return request({
......
......@@ -24,6 +24,24 @@ export interface DictTypeQuery extends PageQuery {
endTime?: string | null;
}
/**
* 字典数据查询参数
*/
export interface DictTypeDataQuery extends PageQuery {
/**
* 字典名称
*/
dictType?: string;
/**
* 字典标签
*/
dictLabel?: string;
/**
* 状态
*/
flag?: string;
}
/**
* 字典类型分页对象
*/
......
......@@ -241,7 +241,7 @@ onMounted(() => {
getList();
});
onBeforeRouteLeave((to, from, next) => {
onBeforeRouteLeave?.((to, from, next) => {
setDataCache(route.path, queryParams);
next();
});
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment