/admin/content/list 페이징 처리와 검색 조건 기능 추가
This commit is contained in:
@@ -16,7 +16,7 @@ const DEFAULT_CONTENT_QUERY: ContentListQueryType = {
|
||||
page: 1,
|
||||
siteId: '',
|
||||
size: 10,
|
||||
type: ''
|
||||
type: 'TOTAL'
|
||||
};
|
||||
|
||||
const DEFAULT_CONTENTS_LIST: Page<ContentListType> = {
|
||||
|
||||
@@ -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
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user