/admin/content/list 페이징 처리와 검색 조건 기능 추가

This commit is contained in:
이진기
2024-11-27 16:23:07 +09:00
parent 40a1c2740d
commit f786df1d9b
19 changed files with 449 additions and 54 deletions

View File

@@ -16,7 +16,7 @@ const DEFAULT_CONTENT_QUERY: ContentListQueryType = {
page: 1,
siteId: '',
size: 10,
type: ''
type: 'TOTAL'
};
const DEFAULT_CONTENTS_LIST: Page<ContentListType> = {

View File

@@ -60,16 +60,6 @@ export const useDefaultStore = defineStore('useDefaultStore', () => {
});
export const useCommonCodeStore = defineStore('useCommonCodeStore', () => {
const searchCommonCodeList = async (
codeGroupId: string
): Promise<GridCodeType[]> => {
const { data } = await useAxios().get('/api/admin/code/codeList', {
params: {
codeGroupId
}
});
return data;
};
const searchSiteCodeList = async (): Promise<GridCodeType[]> => {
const { data } = await useAxios().get('/api/admin/code/siteList');
@@ -83,17 +73,8 @@ export const useCommonCodeStore = defineStore('useCommonCodeStore', () => {
return data;
};
const searchRoleCodeList = async (): Promise<GridCodeType[]> => {
const { data } = await useAxios().get<GridCodeType[]>(
'/api/admin/code/roleList'
);
return data;
};
return {
searchInstCodeList,
searchSiteCodeList,
searchCommonCodeList,
searchRoleCodeList
searchSiteCodeList
};
});