项目初始化
This commit is contained in:
64
web-vue/packages/biz/api/biz/myWorkbench.ts
Normal file
64
web-vue/packages/biz/api/biz/myWorkbench.ts
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/**
|
||||||
|
* 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 } from '@jeesite/core/api/model/baseModel';
|
||||||
|
|
||||||
|
const { adminPath } = useGlobSetting();
|
||||||
|
|
||||||
|
export interface NoteInfo extends BasicModel<NoteInfo> {
|
||||||
|
key: string; // 指标Key
|
||||||
|
label: string; // 指标名称
|
||||||
|
value01: number; // 指标数值
|
||||||
|
value02: number; // 指标数值
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MyNotes extends BasicModel<MyNotes> {
|
||||||
|
createTime?: string; // 记录时间
|
||||||
|
noteId?: string; // 唯一标识
|
||||||
|
title: string; // 标题
|
||||||
|
content: string; // 内容
|
||||||
|
priority: string; // 级别
|
||||||
|
ustatus: string; // 状态
|
||||||
|
startTime?: string; // 开始时间
|
||||||
|
endTime?: string; // 结束时间
|
||||||
|
type: string; // 类型
|
||||||
|
deadline: string; // 截至时间
|
||||||
|
updateTime?: string; // 更新时间
|
||||||
|
createUser?: string; // 创建用户
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ChartDataItem extends BasicModel<ChartDataItem> {
|
||||||
|
itemCode: string; // 项目编号
|
||||||
|
soring: number; // 序号
|
||||||
|
axisName: string; // X轴名称
|
||||||
|
value01: string; // 指标01
|
||||||
|
value02: string; // 指标02
|
||||||
|
value03: string; // 指标03
|
||||||
|
value04: string; // 指标04
|
||||||
|
value05: string; // 指标05
|
||||||
|
value06: string; // 指标06
|
||||||
|
value07: string; // 指标07
|
||||||
|
value08: string; // 指标08
|
||||||
|
value09: string; // 指标09
|
||||||
|
value10: string; // 指标10
|
||||||
|
value11: string; // 指标11
|
||||||
|
value12: string; // 指标12
|
||||||
|
value13: string; // 指标13
|
||||||
|
value14: string; // 指标14
|
||||||
|
value15: string; // 指标15
|
||||||
|
bizKey: string; // 业务主键编号
|
||||||
|
indexSum: number; // 指标求和
|
||||||
|
indexAvg: number; // 指标平均
|
||||||
|
indexMax: number; // 指标最大
|
||||||
|
indexMin: number; // 指标最小
|
||||||
|
}
|
||||||
|
|
||||||
|
export const NoteInfoData = () =>
|
||||||
|
defHttp.get<NoteInfo[]>({ url: adminPath + '/desktop/workbench/getNoteInfo' });
|
||||||
|
|
||||||
|
export const NoteChartData = (params?: MyNotes | any) =>
|
||||||
|
defHttp.get<ChartDataItem[]>({ url: adminPath + '/desktop/workbench/getNoteChart', params });
|
||||||
Reference in New Issue
Block a user