diff --git a/web-vue/packages/biz/api/biz/myWorkbench.ts b/web-vue/packages/biz/api/biz/myWorkbench.ts new file mode 100644 index 0000000..9ac5ba8 --- /dev/null +++ b/web-vue/packages/biz/api/biz/myWorkbench.ts @@ -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 { + key: string; // 指标Key + label: string; // 指标名称 + value01: number; // 指标数值 + value02: number; // 指标数值 +} + +export interface MyNotes extends BasicModel { + 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 { + 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({ url: adminPath + '/desktop/workbench/getNoteInfo' }); + +export const NoteChartData = (params?: MyNotes | any) => + defHttp.get({ url: adminPath + '/desktop/workbench/getNoteChart', params }); \ No newline at end of file