初始化项目
This commit is contained in:
59
web-vue/packages/biz/api/biz/myChartInfo.ts
Normal file
59
web-vue/packages/biz/api/biz/myChartInfo.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* 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 MyChartInfo extends BasicModel<MyChartInfo> {
|
||||
createTime?: string; // 记录时间
|
||||
chartId: string; // 唯一标识
|
||||
chartName?: string; // 图表名称
|
||||
chartCode?: string; // 图表编号
|
||||
sort?: number; // 序号
|
||||
vueName?: string; // 组件名称
|
||||
grid?: string; // 间距
|
||||
ustatus?: string; // 状态
|
||||
chartType?: string; // 图表类型
|
||||
itemName?: string; // 项目名称
|
||||
itemCode?: string; // 项目编号
|
||||
remark?: string; // 备注描述
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const myChartInfoList = (params?: MyChartInfo | any) =>
|
||||
defHttp.get<MyChartInfo>({ url: adminPath + '/biz/myChartInfo/list', params });
|
||||
|
||||
export const myChartInfoListAll = (params?: MyChartInfo | any) =>
|
||||
defHttp.get<MyChartInfo[]>({ url: adminPath + '/biz/myChartInfo/listAll', params });
|
||||
|
||||
export const myChartInfoListData = (params?: MyChartInfo | any) =>
|
||||
defHttp.post<Page<MyChartInfo>>({ url: adminPath + '/biz/myChartInfo/listData', params });
|
||||
|
||||
export const myChartInfoForm = (params?: MyChartInfo | any) =>
|
||||
defHttp.get<MyChartInfo>({ url: adminPath + '/biz/myChartInfo/form', params });
|
||||
|
||||
export const myChartInfoSave = (params?: any, data?: MyChartInfo | any) =>
|
||||
defHttp.postJson<MyChartInfo>({ url: adminPath + '/biz/myChartInfo/save', params, data });
|
||||
|
||||
export const myChartInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myChartInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myChartInfoDelete = (params?: MyChartInfo | any) =>
|
||||
defHttp.get<MyChartInfo>({ url: adminPath + '/biz/myChartInfo/delete', params });
|
||||
59
web-vue/packages/biz/api/biz/myProjectInfo.ts
Normal file
59
web-vue/packages/biz/api/biz/myProjectInfo.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* 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 MyProjectInfo extends BasicModel<MyProjectInfo> {
|
||||
createTime?: string; // 记录创建时间
|
||||
projectId?: string; // 唯一主键
|
||||
projectCode: string; // 项目编码
|
||||
projectName: string; // 项目名称
|
||||
projectDesc?: string; // 项目描述
|
||||
personId: string; // 人员编号
|
||||
priority: string; // 级别
|
||||
areaLevel: string; // 区域级别
|
||||
areaCode: string; // 区域编号
|
||||
startDate?: string; // 预计开始日期
|
||||
endDate?: string; // 预计结束日期
|
||||
actualEndDate?: string; // 实际结束日期
|
||||
budget: number; // 项目预算(元)
|
||||
projectType: string; // 项目类型
|
||||
projectStatus: string; // 项目状态
|
||||
updateTime?: string; // 更新时间
|
||||
}
|
||||
|
||||
export const myProjectInfoList = (params?: MyProjectInfo | any) =>
|
||||
defHttp.get<MyProjectInfo>({ url: adminPath + '/biz/myProjectInfo/list', params });
|
||||
|
||||
export const myProjectInfoListData = (params?: MyProjectInfo | any) =>
|
||||
defHttp.post<Page<MyProjectInfo>>({ url: adminPath + '/biz/myProjectInfo/listData', params });
|
||||
|
||||
export const myProjectInfoForm = (params?: MyProjectInfo | any) =>
|
||||
defHttp.get<MyProjectInfo>({ url: adminPath + '/biz/myProjectInfo/form', params });
|
||||
|
||||
export const myProjectInfoSave = (params?: any, data?: MyProjectInfo | any) =>
|
||||
defHttp.postJson<MyProjectInfo>({ url: adminPath + '/biz/myProjectInfo/save', params, data });
|
||||
|
||||
export const myProjectInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/myProjectInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const myProjectInfoDelete = (params?: MyProjectInfo | any) =>
|
||||
defHttp.get<MyProjectInfo>({ url: adminPath + '/biz/myProjectInfo/delete', params });
|
||||
Reference in New Issue
Block a user