diff --git a/src/views/hrm/clock_record.vue b/src/views/hrm/clock_record.vue index daa7413b..6026f0bb 100644 --- a/src/views/hrm/clock_record.vue +++ b/src/views/hrm/clock_record.vue @@ -223,9 +223,11 @@ weekList.push(week); } let chartName = this.excelName+that.query.year+'年'+that.query.month+'月考勤统计表'; - titleData.push(chartName) + let tipsData = ['','在岗时间长','在岗时间长','缺卡','缺卡','在岗时间短','在岗时间短','加班','加班']; + titleData.push(chartName); let tableData = []; tableData.push(titleData) + tableData.push(tipsData) tableData.push(weekList) tableData.push(daysList) that.ElLoading = this.$loading({ @@ -288,6 +290,50 @@ fgColor: { rgb: "FFFFAA00" } } }; + }else if(key==='B2'){ + ws[key].s = { + font: {sz: 10}, + alignment: { + horizontal: "center", vertical: "center" + }, + fill: { + bgColor: { rgb: "FF0000" }, + fgColor: { rgb: "FF0000" } + } + }; + }else if(key==='D2'){ + ws[key].s = { + font: {sz: 10}, + alignment: { + horizontal: "center", vertical: "center" + }, + fill: { + bgColor: { rgb: "FA8435" }, + fgColor: { rgb: "FA8435" } + } + }; + }else if(key==='F2'){ + ws[key].s = { + font: {sz: 10}, + alignment: { + horizontal: "center", vertical: "center" + }, + fill: { + bgColor: { rgb: "F8DD4E" }, + fgColor: { rgb: "F8DD4E" } + } + }; + }else if(key==='H2'){ + ws[key].s = { + font: {sz: 10}, + alignment: { + horizontal: "center", vertical: "center" + }, + fill: { + bgColor: { rgb: "44CEF6" }, + fgColor: { rgb: "44CEF6" } + } + }; }else{ let cal = ws[key]['v']+''; let type = null; @@ -355,12 +401,11 @@ // s 意为 start ,即开始的单元格//r 是 row ,表示行号,从 0 计起//c 是 col ,表示列号,从 0 计起 let cNumber = daysList.length-1; let merge = [{ s: { r: 0, c: 0 }, e: { r: 0, c:cNumber } }];//{ s: { r: 0, c: 0 }, e: { r: 1, c: 0 } }, - for(let i = 1;i