整体细节处理
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import * as echarts from 'echarts';
|
||||
const grid = {
|
||||
left: 100,
|
||||
right: 100,
|
||||
@ -14,17 +13,17 @@ const titleList = [
|
||||
{ name: '请假人数', color: '#000' }
|
||||
];
|
||||
|
||||
export const echartsConfig = (ref: any, list?: any) => {
|
||||
const commandstatsIntance = echarts.init(ref, 'macarons');
|
||||
// export const echartsConfig = (ref: any, list?: any) => {
|
||||
// const commandstatsIntance = echarts.init(ref, 'macarons');
|
||||
// };
|
||||
|
||||
export const option = (list?: any) => {
|
||||
const attendanceArray = list.map((item) => item.attendance);
|
||||
const halfAttendanceArray = list.map((item) => item.halfAttendance);
|
||||
const absenteeismArray = list.map((item) => item.absenteeism);
|
||||
const leaveArray = list.map((item) => item.leave);
|
||||
|
||||
const rawData = [attendanceArray, halfAttendanceArray, absenteeismArray, leaveArray];
|
||||
//y轴数据
|
||||
const data = list.map((item) => item.clockDate);
|
||||
|
||||
const series: any = titleList.map((item, sid) => {
|
||||
return {
|
||||
name: item.name,
|
||||
@ -42,7 +41,8 @@ export const echartsConfig = (ref: any, list?: any) => {
|
||||
data: rawData[sid]
|
||||
};
|
||||
});
|
||||
commandstatsIntance.setOption({
|
||||
const data = list.map((item) => item.clockDate);
|
||||
const option = {
|
||||
legend: {
|
||||
selectedMode: false,
|
||||
right: 0
|
||||
@ -58,5 +58,6 @@ export const echartsConfig = (ref: any, list?: any) => {
|
||||
},
|
||||
series,
|
||||
color
|
||||
});
|
||||
};
|
||||
return option;
|
||||
};
|
||||
|
@ -107,7 +107,7 @@ export interface AttendanceForm extends BaseEntity {
|
||||
userId?: string | number;
|
||||
typeOfWork?: string;
|
||||
teamId?: string;
|
||||
clockMonth?: string;
|
||||
clockDate?: string;
|
||||
|
||||
/**
|
||||
* 人脸照
|
||||
@ -187,7 +187,6 @@ export interface AttendanceQuery extends PageQuery {
|
||||
projectId?: string | number;
|
||||
typeOfWork?: string | number;
|
||||
teamId?: string | number;
|
||||
clockMonth?: string | number;
|
||||
|
||||
/**
|
||||
* 打卡日期
|
||||
|
@ -113,6 +113,7 @@ export interface ProjectVO {
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface locationType {
|
||||
|
@ -35,7 +35,7 @@ export interface ProjectTeamForm extends BaseEntity {
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
peopleNumber?: string | number;
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
@ -62,7 +62,7 @@ export interface ProjectTeamQuery extends PageQuery {
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
peopleNumber?: string | number;
|
||||
/**
|
||||
* 班组名称
|
||||
*/
|
||||
|
@ -3,6 +3,8 @@ export interface WorkerDailyReportVO {
|
||||
* 申请人名字
|
||||
*/
|
||||
userName: string;
|
||||
userId?: string;
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* 今日完成工作
|
||||
@ -23,7 +25,6 @@ export interface WorkerDailyReportVO {
|
||||
* 需协调与帮助
|
||||
*/
|
||||
coordinationHelp: string;
|
||||
|
||||
}
|
||||
|
||||
export interface WorkerDailyReportForm extends BaseEntity {
|
||||
@ -36,6 +37,10 @@ export interface WorkerDailyReportForm extends BaseEntity {
|
||||
* 项目id
|
||||
*/
|
||||
projectId?: string | number;
|
||||
teamName?: string;
|
||||
resubmitReason?: string;
|
||||
reportDate?: string;
|
||||
isResubmit: string;
|
||||
|
||||
/**
|
||||
* 班组id
|
||||
@ -75,12 +80,30 @@ export interface WorkerDailyReportForm extends BaseEntity {
|
||||
/**
|
||||
* 附件
|
||||
*/
|
||||
file?: string;
|
||||
fileList?: Array<string>;
|
||||
dailyPieceItemVoList?: dailyPieceItemVO[];
|
||||
}
|
||||
|
||||
interface dailyPieceItemVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 计件类型
|
||||
*/
|
||||
pieceType?: string;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
*/
|
||||
pieceCount?: number;
|
||||
pieceUnit?: string;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface WorkerDailyReportQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目id
|
||||
*/
|
||||
@ -101,11 +124,9 @@ export interface WorkerDailyReportQuery extends PageQuery {
|
||||
*/
|
||||
userName?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
isResubmit?: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user