初始化项目
This commit is contained in:
57
web-vue/packages/biz/api/biz/myPageIndex.ts
Normal file
57
web-vue/packages/biz/api/biz/myPageIndex.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
* @author gaoxq
|
||||
*/
|
||||
import { defHttp } from '@jeesite/core/utils/http/axios';
|
||||
import { useGlobSetting } from '@jeesite/core/hooks/setting';
|
||||
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
|
||||
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
||||
import { UploadFileParams } from '@jeesite/types/axios';
|
||||
import { AxiosProgressEvent } from 'axios';
|
||||
|
||||
const { ctxPath, adminPath } = useGlobSetting();
|
||||
|
||||
export interface MyPageIndex extends BasicModel<MyPageIndex> {
|
||||
createTime?: string; // 记录时间
|
||||
indexId?: string; // 唯一标识
|
||||
module: string; // 模块名称
|
||||
moduleCode: string; // 模块编码
|
||||
title: string; // 说明描述
|
||||
value?: number; // 数值
|
||||
label?: string; // 名称
|
||||
iconImg: string; // 图片路径
|
||||
iconFilter?: string; // 图标颜色
|
||||
sort: number; // 序号
|
||||
indexCode: string; // 指标编号
|
||||
}
|
||||
|
||||
export const myPageIndexList = (params?: MyPageIndex | any) =>
|
||||
defHttp.get<MyPageIndex>({ url: adminPath + '/biz/myPageIndex/list', params });
|
||||
|
||||
export const myPageIndexListAll = (params?: MyPageIndex | any) =>
|
||||
defHttp.get<MyPageIndex[]>({ url: adminPath + '/biz/myPageIndex/listAll', params });
|
||||
|
||||
export const myPageIndexListData = (params?: MyPageIndex | any) =>
|
||||
defHttp.post<Page<MyPageIndex>>({ url: adminPath + '/biz/myPageIndex/listData', params });
|
||||
|
||||
export const myPageIndexForm = (params?: MyPageIndex | any) =>
|
||||
defHttp.get<MyPageIndex>({ url: adminPath + '/biz/myPageIndex/form', params });
|
||||
|
||||
export const myPageIndexSave = (params?: any, data?: MyPageIndex | any) =>
|
||||
defHttp.postJson<MyPageIndex>({ url: adminPath + '/biz/myPageIndex/save', params, data });
|
||||
|
||||
export const myPageIndexImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myPageIndex/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myPageIndexDelete = (params?: MyPageIndex | any) =>
|
||||
defHttp.get<MyPageIndex>({ url: adminPath + '/biz/myPageIndex/delete', params });
|
||||
Reference in New Issue
Block a user