财务门户设计
This commit is contained in:
72
web-vue/packages/biz/api/biz/itemInfo.ts
Normal file
72
web-vue/packages/biz/api/biz/itemInfo.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now http://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 BizItemInfo extends BasicModel<BizItemInfo> {
|
||||
createTime?: string; // 创建时间
|
||||
itemName: string; // 项目名称
|
||||
itemCode: string; // 项目编号
|
||||
title?: string; // 备注描述
|
||||
seq?: number; // 序号
|
||||
ym: string; // 请求日期
|
||||
cycle?: string; // 指标周期
|
||||
reqParam?: string; // 请求参数
|
||||
xAxis?: string; // x轴名称
|
||||
index01?: string; // 指标01
|
||||
index02?: string; // 指标02
|
||||
index03?: string; // 指标03
|
||||
index04?: string; // 指标04
|
||||
index05?: string; // 指标05
|
||||
index06?: string; // 指标06
|
||||
index07?: string; // 指标07
|
||||
index08?: string; // 指标08
|
||||
index09?: string; // 指标09
|
||||
index10?: string; // 指标10
|
||||
index11?: string; // 指标11
|
||||
index12?: string; // 指标12
|
||||
index13?: string; // 指标13
|
||||
index14?: string; // 指标14
|
||||
index15?: string; // 指标15
|
||||
updateTime?: string; // 更新时间
|
||||
isDeleted?: string; // 删除标识(1-未删,0-已删)
|
||||
}
|
||||
|
||||
export const bizItemInfoList = (params?: BizItemInfo | any) =>
|
||||
defHttp.get<BizItemInfo>({ url: adminPath + '/biz/itemInfo/list', params });
|
||||
|
||||
export const bizItemInfoListAll = (params?: BizItemInfo | any) =>
|
||||
defHttp.get<BizItemInfo>({ url: adminPath + '/biz/itemInfo/listAll', params });
|
||||
|
||||
export const bizItemInfoListData = (params?: BizItemInfo | any) =>
|
||||
defHttp.post<Page<BizItemInfo>>({ url: adminPath + '/biz/itemInfo/listData', params });
|
||||
|
||||
export const bizItemInfoForm = (params?: BizItemInfo | any) =>
|
||||
defHttp.get<BizItemInfo>({ url: adminPath + '/biz/itemInfo/form', params });
|
||||
|
||||
export const bizItemInfoSave = (params?: any, data?: BizItemInfo | any) =>
|
||||
defHttp.postJson<BizItemInfo>({ url: adminPath + '/biz/itemInfo/save', params, data });
|
||||
|
||||
export const bizItemInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/itemInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizItemInfoDelete = (params?: BizItemInfo | any) =>
|
||||
defHttp.get<BizItemInfo>({ url: adminPath + '/biz/itemInfo/delete', params });
|
||||
Reference in New Issue
Block a user