fix(hrm): 将请假时长单位从天改为小时
修改所有相关组件中的请假时长显示单位,从"天"改为"小时",包括图表、表格和表单中的标签。同时调整时间差计算逻辑,直接计算小时数而非天数。
This commit is contained in:
@@ -42,13 +42,13 @@ export default {
|
||||
const option = {
|
||||
title: { text: '按时间请假统计', left: 'center', textStyle: { fontSize: 14 } },
|
||||
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
|
||||
legend: { data: ['请假记录数', '请假总天数'], top: 30 },
|
||||
legend: { data: ['请假记录数', '请假总小时'], top: 30 },
|
||||
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
||||
xAxis: [{ type: 'category', data: this.chartData.xAxis }],
|
||||
yAxis: [{ type: 'value' }],
|
||||
series: [
|
||||
{ name: '请假记录数', type: 'line', data: this.chartData.countData, smooth: true },
|
||||
{ name: '请假总天数', type: 'line', data: this.chartData.dayData, smooth: true }
|
||||
{ name: '请假总小时', type: 'line', data: this.chartData.dayData, smooth: true }
|
||||
]
|
||||
};
|
||||
this.chart.setOption(option);
|
||||
|
||||
Reference in New Issue
Block a user