@vtx/modals2 2.15.98 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/lib/index.js +7 -0
  2. package/lib/index.js.map +1 -1
  3. package/lib/vm-info-collection/index.js +1 -1
  4. package/lib/vm-info-collection/index.js.map +1 -1
  5. package/lib/vm-map/index.js +20 -2
  6. package/lib/vm-map/index.js.map +1 -1
  7. package/lib/vtx-base-modal/index.js +5 -2
  8. package/lib/vtx-base-modal/index.js.map +1 -1
  9. package/lib/vtx-qyry-modal/api.js +450 -0
  10. package/lib/vtx-qyry-modal/api.js.map +1 -0
  11. package/lib/vtx-qyry-modal/components/AlarmInfo/Charts.js +189 -0
  12. package/lib/vtx-qyry-modal/components/AlarmInfo/Charts.js.map +1 -0
  13. package/lib/vtx-qyry-modal/components/AlarmInfo/List.js +123 -0
  14. package/lib/vtx-qyry-modal/components/AlarmInfo/List.js.map +1 -0
  15. package/lib/vtx-qyry-modal/components/AlarmInfo/index.css +27 -0
  16. package/lib/vtx-qyry-modal/components/AlarmInfo/index.js +107 -0
  17. package/lib/vtx-qyry-modal/components/AlarmInfo/index.js.map +1 -0
  18. package/lib/vtx-qyry-modal/components/AlarmInfo/index.less +23 -0
  19. package/lib/vtx-qyry-modal/components/Attendance/Exeception.js +106 -0
  20. package/lib/vtx-qyry-modal/components/Attendance/Exeception.js.map +1 -0
  21. package/lib/vtx-qyry-modal/components/Attendance/Record.js +214 -0
  22. package/lib/vtx-qyry-modal/components/Attendance/Record.js.map +1 -0
  23. package/lib/vtx-qyry-modal/components/Attendance/WorkingHours.js +139 -0
  24. package/lib/vtx-qyry-modal/components/Attendance/WorkingHours.js.map +1 -0
  25. package/lib/vtx-qyry-modal/components/Attendance/index.css +51 -0
  26. package/lib/vtx-qyry-modal/components/Attendance/index.js +82 -0
  27. package/lib/vtx-qyry-modal/components/Attendance/index.js.map +1 -0
  28. package/lib/vtx-qyry-modal/components/Attendance/index.less +45 -0
  29. package/lib/vtx-qyry-modal/components/BaseInfo/Lcfx.js +115 -0
  30. package/lib/vtx-qyry-modal/components/BaseInfo/Lcfx.js.map +1 -0
  31. package/lib/vtx-qyry-modal/components/BaseInfo/ListZymx.js +119 -0
  32. package/lib/vtx-qyry-modal/components/BaseInfo/ListZymx.js.map +1 -0
  33. package/lib/vtx-qyry-modal/components/BaseInfo/TodayWork.js +40 -0
  34. package/lib/vtx-qyry-modal/components/BaseInfo/TodayWork.js.map +1 -0
  35. package/lib/vtx-qyry-modal/components/BaseInfo/WorkStatic.js +140 -0
  36. package/lib/vtx-qyry-modal/components/BaseInfo/WorkStatic.js.map +1 -0
  37. package/lib/vtx-qyry-modal/components/BaseInfo/WorkStaticDay.js +145 -0
  38. package/lib/vtx-qyry-modal/components/BaseInfo/WorkStaticDay.js.map +1 -0
  39. package/lib/vtx-qyry-modal/components/BaseInfo/index.css +275 -0
  40. package/lib/vtx-qyry-modal/components/BaseInfo/index.js +204 -0
  41. package/lib/vtx-qyry-modal/components/BaseInfo/index.js.map +1 -0
  42. package/lib/vtx-qyry-modal/components/BaseInfo/index.less +231 -0
  43. package/lib/vtx-qyry-modal/components/DetailInfo/index.css +35 -0
  44. package/lib/vtx-qyry-modal/components/DetailInfo/index.js +177 -0
  45. package/lib/vtx-qyry-modal/components/DetailInfo/index.js.map +1 -0
  46. package/lib/vtx-qyry-modal/components/DetailInfo/index.less +38 -0
  47. package/lib/vtx-qyry-modal/components/Equipment/index.css +55 -0
  48. package/lib/vtx-qyry-modal/components/Equipment/index.js +149 -0
  49. package/lib/vtx-qyry-modal/components/Equipment/index.js.map +1 -0
  50. package/lib/vtx-qyry-modal/components/Equipment/index.less +53 -0
  51. package/lib/vtx-qyry-modal/components/StaticInfo/Charts.js +161 -0
  52. package/lib/vtx-qyry-modal/components/StaticInfo/Charts.js.map +1 -0
  53. package/lib/vtx-qyry-modal/components/StaticInfo/index.css +336 -0
  54. package/lib/vtx-qyry-modal/components/StaticInfo/index.js +130 -0
  55. package/lib/vtx-qyry-modal/components/StaticInfo/index.js.map +1 -0
  56. package/lib/vtx-qyry-modal/components/StaticInfo/index.less +271 -0
  57. package/lib/vtx-qyry-modal/components/index.js +42 -0
  58. package/lib/vtx-qyry-modal/components/index.js.map +1 -0
  59. package/lib/vtx-qyry-modal/config.js +12 -0
  60. package/lib/vtx-qyry-modal/config.js.map +1 -0
  61. package/lib/vtx-qyry-modal/imgs/caution.png +0 -0
  62. package/lib/vtx-qyry-modal/imgs/help.png +0 -0
  63. package/lib/vtx-qyry-modal/imgs/offlinePeople.png +0 -0
  64. package/lib/vtx-qyry-modal/imgs/onlinePeople.png +0 -0
  65. package/lib/vtx-qyry-modal/imgs/position.png +0 -0
  66. package/lib/vtx-qyry-modal/imgs/refresh.png +0 -0
  67. package/lib/vtx-qyry-modal/imgs/rjzx.png +0 -0
  68. package/lib/vtx-qyry-modal/imgs/rjzx_light.png +0 -0
  69. package/lib/vtx-qyry-modal/imgs/staff.png +0 -0
  70. package/lib/vtx-qyry-modal/imgs/time.png +0 -0
  71. package/lib/vtx-qyry-modal/imgs/todayOnline.png +0 -0
  72. package/lib/vtx-qyry-modal/imgs/todayOnline_light.png +0 -0
  73. package/lib/vtx-qyry-modal/imgs/todayWork.png +0 -0
  74. package/lib/vtx-qyry-modal/imgs/todayWork_light.png +0 -0
  75. package/lib/vtx-qyry-modal/imgs/yl.png +0 -0
  76. package/lib/vtx-qyry-modal/imgs/zhzf.png +0 -0
  77. package/lib/vtx-qyry-modal/imgs/zzx.png +0 -0
  78. package/lib/vtx-qyry-modal/imgs/zzx_light.png +0 -0
  79. package/lib/vtx-qyry-modal/index.js +102 -0
  80. package/lib/vtx-qyry-modal/index.js.map +1 -0
  81. package/lib/vtx-qyry-modal/style/css.js +8 -0
  82. package/lib/vtx-qyry-modal/style/css.js.map +1 -0
  83. package/lib/vtx-qyry-modal/style/index.css +152 -0
  84. package/lib/vtx-qyry-modal/style/index.js +8 -0
  85. package/lib/vtx-qyry-modal/style/index.js.map +1 -0
  86. package/lib/vtx-qyry-modal/style/index.less +1 -0
  87. package/lib/vtx-staff-modal/api.js +20 -38
  88. package/lib/vtx-staff-modal/api.js.map +1 -1
  89. package/package.json +1 -1
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = Exeception;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _echartsForReact = _interopRequireDefault(require("echarts-for-react"));
9
+ var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
10
+ var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
11
+ var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
12
+ var _api = require("../../api");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ /**
15
+ * 异常统计
16
+ */
17
+
18
+ function Exeception(props) {
19
+ var _useSettings = (0, _useSettings2["default"])(),
20
+ chartColor = _useSettings.chartColor,
21
+ chartFontColor = _useSettings.chartFontColor,
22
+ isDark = _useSettings.isDark,
23
+ theme = _useSettings.theme;
24
+ var id = props.id,
25
+ startDate = props.startDate,
26
+ endDate = props.endDate;
27
+ var _AttendanceService$us = _api.AttendanceService.useAnalysis(id, startDate, endDate),
28
+ attendAnalysisRes = _AttendanceService$us.attendAnalysisRes;
29
+ var option = {
30
+ color: chartColor,
31
+ backgroundColor: 'transparent',
32
+ tooltip: {
33
+ show: true,
34
+ trigger: 'item',
35
+ formatter: function formatter(params) {
36
+ var str = "".concat(params === null || params === void 0 ? void 0 : params.name);
37
+ var color = params.color; // 获取系列的颜色
38
+ str += "<div ><span style=\"color:".concat(color, ";font-size:24px \">\u2022</span> &nbsp;&nbsp;&nbsp;").concat(params.value, "\u6B21</div>");
39
+ return str; // 返回带点的字符串
40
+ }
41
+ },
42
+ legend: {
43
+ orient: 'vertical',
44
+ left: '50%',
45
+ top: 'middle',
46
+ align: 'left',
47
+ itemGap: 12,
48
+ itemWidth: 10,
49
+ itemHeight: 10,
50
+ formatter: function formatter(name) {
51
+ var value = attendAnalysisRes.find(function (item) {
52
+ return item.name === name;
53
+ });
54
+ if (value) {
55
+ return "\t\t".concat(name, "\t\t").concat(value.value, "\u6B21\t\t");
56
+ } else {
57
+ return '';
58
+ }
59
+ },
60
+ textStyle: {
61
+ fontSize: 14,
62
+ color: theme === 'blue' ? '#fff' : chartFontColor
63
+ },
64
+ pageIconColor: chartFontColor,
65
+ pageIconInactiveColor: chartFontColor,
66
+ pageTextStyle: {
67
+ color: theme === 'blue' ? '#fff' : chartFontColor
68
+ }
69
+ },
70
+ series: [{
71
+ type: 'pie',
72
+ radius: ['55%', '75%'],
73
+ center: ['30%', '50%'],
74
+ hoverAnimation: true,
75
+ z: 10,
76
+ itemStyle: {
77
+ normal: {
78
+ borderWidth: 2,
79
+ borderColor: isDark ? '#003359' : '#ffffff'
80
+ }
81
+ },
82
+ label: {
83
+ show: false
84
+ },
85
+ data: attendAnalysisRes,
86
+ labelLine: {
87
+ show: false
88
+ }
89
+ }]
90
+ };
91
+ return /*#__PURE__*/_react["default"].createElement("div", {
92
+ key: id,
93
+ className: "staff-attend-exec"
94
+ }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
95
+ title: "\u8003\u52E4\u5F02\u5E38\u7EDF\u8BA1"
96
+ }), (attendAnalysisRes === null || attendAnalysisRes === void 0 ? void 0 : attendAnalysisRes.length) > 0 ? (/*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
97
+ option: option,
98
+ notMerge: true,
99
+ lazyUpdate: true,
100
+ style: {
101
+ height: '200px',
102
+ width: '100%'
103
+ }
104
+ })) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null)));
105
+ }
106
+ //# sourceMappingURL=Exeception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Exeception.js","names":["_react","_interopRequireDefault","require","_echartsForReact","_vmSubTitle","_vmNodata","_useSettings2","_api","e","__esModule","Exeception","props","_useSettings","useSettings","chartColor","chartFontColor","isDark","theme","id","startDate","endDate","_AttendanceService$us","AttendanceService","useAnalysis","attendAnalysisRes","option","color","backgroundColor","tooltip","show","trigger","formatter","params","str","concat","name","value","legend","orient","left","top","align","itemGap","itemWidth","itemHeight","find","item","textStyle","fontSize","pageIconColor","pageIconInactiveColor","pageTextStyle","series","type","radius","center","hoverAnimation","z","itemStyle","normal","borderWidth","borderColor","label","data","labelLine","React","createElement","key","className","SubTitle","title","length","ReactEcharts","notMerge","lazyUpdate","style","height","width","NoData"],"sources":["vtx-qyry-modal/components/Attendance/Exeception.js"],"sourcesContent":["/**\n * 异常统计\n */\nimport React from 'react';\nimport ReactEcharts from 'echarts-for-react';\nimport SubTitle from '../../../vm-sub-title';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { AttendanceService } from '../../api';\nexport default function Exeception(props) {\n const { chartColor, chartFontColor, isDark, theme } = useSettings();\n const { id, startDate, endDate } = props;\n const { attendAnalysisRes } = AttendanceService.useAnalysis(id, startDate, endDate);\n let option = {\n color: chartColor,\n backgroundColor: 'transparent',\n tooltip: {\n show: true,\n trigger: 'item',\n formatter: function (params) {\n let str = `${params === null || params === void 0 ? void 0 : params.name}`;\n let color = params.color; // 获取系列的颜色\n str += `<div ><span style=\"color:${color};font-size:24px \">•</span> &nbsp;&nbsp;&nbsp;${params.value}次</div>`;\n return str; // 返回带点的字符串\n },\n },\n legend: {\n orient: 'vertical',\n left: '50%',\n top: 'middle',\n align: 'left',\n itemGap: 12,\n itemWidth: 10,\n itemHeight: 10,\n formatter: function (name) {\n const value = attendAnalysisRes.find((item) => item.name === name);\n if (value) {\n return `\\t\\t${name}\\t\\t${value.value}次\\t\\t`;\n }\n else {\n return '';\n }\n },\n textStyle: {\n fontSize: 14,\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n pageIconColor: chartFontColor,\n pageIconInactiveColor: chartFontColor,\n pageTextStyle: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n },\n series: [\n {\n type: 'pie',\n radius: ['55%', '75%'],\n center: ['30%', '50%'],\n hoverAnimation: true,\n z: 10,\n itemStyle: {\n normal: {\n borderWidth: 2,\n borderColor: isDark ? '#003359' : '#ffffff',\n },\n },\n label: {\n show: false,\n },\n data: attendAnalysisRes,\n labelLine: {\n show: false,\n },\n },\n ],\n };\n return (React.createElement(\"div\", { key: id, className: \"staff-attend-exec\" },\n React.createElement(SubTitle, { title: \"\\u8003\\u52E4\\u5F02\\u5E38\\u7EDF\\u8BA1\" }),\n (attendAnalysisRes === null || attendAnalysisRes === void 0 ? void 0 : attendAnalysisRes.length) > 0 ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height: '200px', width: '100%' } })) : (React.createElement(NoData, null))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA8C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAR9C;AACA;AACA;;AAOe,SAASE,UAAUA,CAACC,KAAK,EAAE;EACtC,IAAAC,YAAA,GAAsD,IAAAC,wBAAW,EAAC,CAAC;IAA3DC,UAAU,GAAAF,YAAA,CAAVE,UAAU;IAAEC,cAAc,GAAAH,YAAA,CAAdG,cAAc;IAAEC,MAAM,GAAAJ,YAAA,CAANI,MAAM;IAAEC,KAAK,GAAAL,YAAA,CAALK,KAAK;EACjD,IAAQC,EAAE,GAAyBP,KAAK,CAAhCO,EAAE;IAAEC,SAAS,GAAcR,K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MAAM,EAAE,OAAO;MAAEC,KAAK,EAAE;IAAO;EAAE,CAAC,CAAC,kBAAKZ,iBAAK,CAACC,aAAa,CAACY,oBAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AAC1R","ignoreList":[]}
@@ -0,0 +1,214 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = Record;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _ahooks = require("ahooks");
9
+ var _antd = require("antd");
10
+ var _vmTable = _interopRequireDefault(require("../../../vm-table"));
11
+ var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
12
+ var _api = require("../../api");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
15
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
16
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
17
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
19
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } /**
20
+ * 考勤记录
21
+ */
22
+ function Record(props) {
23
+ var id = props.id,
24
+ startDate = props.startDate,
25
+ endDate = props.endDate;
26
+ var _useSetState = (0, _ahooks.useSetState)({
27
+ shiftClockWay: 'CLOCK_IN_OUT',
28
+ pagination: {
29
+ current: 1,
30
+ pageSize: 10,
31
+ total: 0
32
+ }
33
+ }),
34
+ _useSetState2 = _slicedToArray(_useSetState, 2),
35
+ state = _useSetState2[0],
36
+ setState = _useSetState2[1];
37
+ var pagination = state.pagination,
38
+ shiftClockWay = state.shiftClockWay;
39
+ var _AttendanceService$us = _api.AttendanceService.useAttendRecord(id, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), pagination.current - 1, shiftClockWay),
40
+ attendRecordRes = _AttendanceService$us.attendRecordRes;
41
+ var records = {
42
+ total: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.total) || 0,
43
+ rows: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.rows) || []
44
+ };
45
+ var getColor = function getColor(code) {
46
+ var color = '';
47
+ switch (code) {
48
+ case 'Normal':
49
+ color = 'green';
50
+ break;
51
+ case 'Late':
52
+ case 'Early':
53
+ color = 'red';
54
+ break;
55
+ case 'Leave':
56
+ case 'Absent':
57
+ color = 'orange';
58
+ break;
59
+ default:
60
+ color = 'warning';
61
+ break;
62
+ }
63
+ return color;
64
+ };
65
+ var columnVisible = shiftClockWay === 'CLOCK_IN_OUT';
66
+ var columns = [{
67
+ title: '所属机构',
68
+ dataIndex: 'deptName',
69
+ key: 'deptName',
70
+ width: 120,
71
+ ellipsis: true
72
+ }, {
73
+ title: '姓名',
74
+ dataIndex: 'staffName',
75
+ key: 'staffName'
76
+ }, {
77
+ title: '岗位',
78
+ dataIndex: 'workTypeName',
79
+ key: 'workTypeName'
80
+ }, {
81
+ title: '班次',
82
+ dataIndex: 'shiftName',
83
+ key: 'shiftName',
84
+ width: 100,
85
+ ellipsis: true
86
+ }, {
87
+ title: '开始时间',
88
+ dataIndex: 'shiftStartTime',
89
+ key: 'shiftStartTime',
90
+ width: 160
91
+ }, {
92
+ title: '结束时间',
93
+ dataIndex: 'shiftEndTime',
94
+ key: 'shiftEndTime',
95
+ width: 160
96
+ }, {
97
+ title: '排班区域',
98
+ dataIndex: 'shiftWorkElementNames',
99
+ key: 'shiftWorkElementNames',
100
+ width: 100,
101
+ ellipsis: true,
102
+ render: function render(text) {
103
+ return text ? text : '-';
104
+ }
105
+ }, !columnVisible && {
106
+ title: '打卡时间',
107
+ dataIndex: 'clockInTime',
108
+ key: 'clockInTime',
109
+ width: 180,
110
+ render: function render(text) {
111
+ return text ? text : '-';
112
+ }
113
+ }, !columnVisible && {
114
+ title: '打卡状态',
115
+ dataIndex: 'clockInStatusName',
116
+ key: 'clockInStatusName',
117
+ width: 100,
118
+ render: function render(text, record) {
119
+ return /*#__PURE__*/_react["default"].createElement("div", {
120
+ style: {
121
+ color: getColor(record.clockInStatusCode)
122
+ }
123
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Tag, {
124
+ color: getColor(record.clockInStatusCode)
125
+ }, text));
126
+ }
127
+ }, columnVisible && {
128
+ title: '上班时间',
129
+ dataIndex: 'clockInTime',
130
+ key: 'clockInTime',
131
+ width: 140,
132
+ render: function render(text) {
133
+ return text ? text : '-';
134
+ }
135
+ }, columnVisible && {
136
+ title: '上班状态',
137
+ dataIndex: 'clockInStatusName',
138
+ key: 'clockInStatusName',
139
+ width: 80,
140
+ render: function render(text, record) {
141
+ return /*#__PURE__*/_react["default"].createElement("div", {
142
+ style: {
143
+ color: getColor(record.clockInStatusCode)
144
+ }
145
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Tag, {
146
+ color: getColor(record.clockInStatusCode)
147
+ }, text));
148
+ }
149
+ }, columnVisible && {
150
+ title: '下班时间',
151
+ dataIndex: 'clockOutTime',
152
+ key: 'clockOutTime',
153
+ width: 140,
154
+ render: function render(text) {
155
+ return text ? text : '-';
156
+ }
157
+ }, columnVisible && {
158
+ title: '下班状态',
159
+ dataIndex: 'clockOutStatusName',
160
+ key: 'clockOutStatusName',
161
+ width: 80,
162
+ render: function render(text, record) {
163
+ return /*#__PURE__*/_react["default"].createElement("div", {
164
+ style: {
165
+ color: getColor(record.clockOutStatusCode)
166
+ }
167
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Tag, {
168
+ color: getColor(record.clockOutStatusCode)
169
+ }, text));
170
+ }
171
+ }].filter(function (ele) {
172
+ return !!ele;
173
+ });
174
+ var pageChange = function pageChange(page) {
175
+ setState({
176
+ pagination: Object.assign(Object.assign({}, pagination), {
177
+ current: page
178
+ })
179
+ });
180
+ };
181
+ var tableProps = {
182
+ pagination: Object.assign(Object.assign({}, pagination), {
183
+ total: records.total,
184
+ defaultPageSize: 10,
185
+ onChange: pageChange
186
+ }),
187
+ style: {
188
+ padding: '0 20px'
189
+ },
190
+ height: 250,
191
+ dataSource: records.rows
192
+ };
193
+ return /*#__PURE__*/_react["default"].createElement("div", {
194
+ key: id
195
+ }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
196
+ title: "\u8003\u52E4\u8BB0\u5F55",
197
+ extra: /*#__PURE__*/_react["default"].createElement(_antd.Radio.Group, {
198
+ value: shiftClockWay,
199
+ onChange: function onChange(e) {
200
+ return setState({
201
+ shiftClockWay: e.target.value
202
+ });
203
+ }
204
+ }, /*#__PURE__*/_react["default"].createElement(_antd.Radio.Button, {
205
+ value: "CLOCK_IN_OUT"
206
+ }, "\u4E0A\u4E0B\u73ED\u6253\u5361"), /*#__PURE__*/_react["default"].createElement(_antd.Radio.Button, {
207
+ value: "SHIFT_CHECK_IN"
208
+ }, "\u73ED\u6B21\u5185\u6253\u5361"))
209
+ }), /*#__PURE__*/_react["default"].createElement(_vmTable["default"], Object.assign({
210
+ columns: columns,
211
+ rowKey: "id"
212
+ }, tableProps)));
213
+ }
214
+ //# sourceMappingURL=Record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Record.js","names":["_react","_interopRequireDefault","require","_ahooks","_antd","_vmTable","_vmSubTitle","_api","e","__esModule","_slicedToArray","r","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","t","toString","call","slice","constructor","name","Array","from","test","length","n","l","Symbol","iterator","i","u","f","o","next","Object","done","push","value","isArray","Record","props","id","startDate","endDate","_useSetState","useSetState","shiftClockWay","pagination","current","pageSize","total","_useSetState2","state","setState","_AttendanceService$us","AttendanceService","useAttendRecord","concat","attendRecordRes","records","rows","getColor","code","color","columnVisible","columns","title","dataIndex","key","width","ellipsis","render","text","record","React","createElement","style","clockInStatusCode","Tag","clockOutStatusCode","filter","ele","pageChange","page","assign","tableProps","defaultPageSize","onChange","padding","height","dataSource","SubTitle","extra","Radio","Group","target","Button","VMTable","rowKey"],"sources":["vtx-qyry-modal/components/Attendance/Record.js"],"sourcesContent":["/**\n * 考勤记录\n */\nimport React from 'react';\nimport { useSetState } from 'ahooks';\nimport { Radio, Tag } from 'antd';\nimport VMTable from '../../../vm-table';\nimport SubTitle from '../../../vm-sub-title';\nimport { AttendanceService } from '../../api';\nexport default function Record(props) {\n const { id, startDate, endDate } = props;\n const [state, setState] = useSetState({\n shiftClockWay: 'CLOCK_IN_OUT',\n pagination: {\n current: 1,\n pageSize: 10,\n total: 0,\n },\n });\n const { pagination, shiftClockWay } = state;\n const { attendRecordRes } = AttendanceService.useAttendRecord(id, `${startDate} 00:00:00`, `${endDate} 23:59:59`, pagination.current - 1, shiftClockWay);\n const records = {\n total: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.total) || 0,\n rows: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.rows) || [],\n };\n const getColor = (code) => {\n let color = '';\n switch (code) {\n case 'Normal':\n color = 'green';\n break;\n case 'Late':\n case 'Early':\n color = 'red';\n break;\n case 'Leave':\n case 'Absent':\n color = 'orange';\n break;\n default:\n color = 'warning';\n break;\n }\n return color;\n };\n const columnVisible = shiftClockWay === 'CLOCK_IN_OUT';\n const columns = [\n {\n title: '所属机构',\n dataIndex: 'deptName',\n key: 'deptName',\n width: 120,\n ellipsis: true,\n },\n {\n title: '姓名',\n dataIndex: 'staffName',\n key: 'staffName',\n },\n {\n title: '岗位',\n dataIndex: 'workTypeName',\n key: 'workTypeName',\n },\n {\n title: '班次',\n dataIndex: 'shiftName',\n key: 'shiftName',\n width: 100,\n ellipsis: true,\n },\n {\n title: '开始时间',\n dataIndex: 'shiftStartTime',\n key: 'shiftStartTime',\n width: 160,\n },\n {\n title: '结束时间',\n dataIndex: 'shiftEndTime',\n key: 'shiftEndTime',\n width: 160,\n },\n {\n title: '排班区域',\n dataIndex: 'shiftWorkElementNames',\n key: 'shiftWorkElementNames',\n width: 100,\n ellipsis: true,\n render: (text) => {\n return text ? text : '-';\n },\n },\n !columnVisible && {\n title: '打卡时间',\n dataIndex: 'clockInTime',\n key: 'clockInTime',\n width: 180,\n render: (text) => {\n return text ? text : '-';\n },\n },\n !columnVisible && {\n title: '打卡状态',\n dataIndex: 'clockInStatusName',\n key: 'clockInStatusName',\n width: 100,\n render: (text, record) => {\n return (React.createElement(\"div\", { style: { color: getColor(record.clockInStatusCode) } },\n React.createElement(Tag, { color: getColor(record.clockInStatusCode) }, text)));\n },\n },\n columnVisible && {\n title: '上班时间',\n dataIndex: 'clockInTime',\n key: 'clockInTime',\n width: 140,\n render: (text) => {\n return text ? text : '-';\n },\n },\n columnVisible && {\n title: '上班状态',\n dataIndex: 'clockInStatusName',\n key: 'clockInStatusName',\n width: 80,\n render: (text, record) => {\n return (React.createElement(\"div\", { style: { color: getColor(record.clockInStatusCode) } },\n React.createElement(Tag, { color: getColor(record.clockInStatusCode) }, text)));\n },\n },\n columnVisible && {\n title: '下班时间',\n dataIndex: 'clockOutTime',\n key: 'clockOutTime',\n width: 140,\n render: (text) => {\n return text ? text : '-';\n },\n },\n columnVisible && {\n title: '下班状态',\n dataIndex: 'clockOutStatusName',\n key: 'clockOutStatusName',\n width: 80,\n render: (text, record) => {\n return (React.createElement(\"div\", { style: { color: getColor(record.clockOutStatusCode) } },\n React.createElement(Tag, { color: getColor(record.clockOutStatusCode) }, text)));\n },\n },\n ].filter(ele => !!ele);\n const pageChange = (page) => {\n setState({\n pagination: Object.assign(Object.assign({}, pagination), { current: page }),\n });\n };\n const tableProps = {\n pagination: Object.assign(Object.assign({}, pagination), { total: records.total, defaultPageSize: 10, onChange: pageChange }),\n style: { padding: '0 20px' },\n height: 250,\n dataSource: records.rows,\n };\n return (React.createElement(\"div\", { key: id },\n React.createElement(SubTitle, { title: \"\\u8003\\u52E4\\u8BB0\\u5F55\", extra: React.createElement(Radio.Group, { value: shiftClockWay, onChange: (e) => setState({ shiftClockWay: e.target.value }) },\n React.createElement(Radio.Button, { value: \"CLOCK_IN_OUT\" }, \"\\u4E0A\\u4E0B\\u73ED\\u6253\\u5361\"),\n React.createElement(Radio.Button, { value: \"SHIFT_CHECK_IN\" }, \"\\u73ED\\u6B21\\u5185\\u6253\\u5361\")) }),\n React.createElement(VMTable, Object.assign({ columns: columns, rowKey: \"id\" }, tableProps))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA8C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,eAAAC,CAAA,EAAAH,CAAA,WAAAI,eAAA,CAAA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AC;MAAA;IAAC,CAAC,eACzLqC,iBAAK,CAACC,aAAa,CAACkB,WAAK,CAACG,MAAM,EAAE;MAAE3D,KAAK,EAAE;IAAe,CAAC,EAAE,gCAAgC,CAAC,eAC9FqC,iBAAK,CAACC,aAAa,CAACkB,WAAK,CAACG,MAAM,EAAE;MAAE3D,KAAK,EAAE;IAAiB,CAAC,EAAE,gCAAgC,CAAC;EAAE,CAAC,CAAC,eAC5GqC,iBAAK,CAACC,aAAa,CAACsB,mBAAO,EAAE/D,MAAM,CAACkD,MAAM,CAAC;IAAEnB,OAAO,EAAEA,OAAO;IAAEiC,MAAM,EAAE;EAAK,CAAC,EAAEb,UAAU,CAAC,CAAC,CAAC;AACpG","ignoreList":[]}
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = WorkingHours;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _echartsForReact = _interopRequireDefault(require("echarts-for-react"));
9
+ var _vmSubTitle = _interopRequireDefault(require("../../../vm-sub-title"));
10
+ var _vmNodata = _interopRequireDefault(require("../../../vm-nodata"));
11
+ var _useSettings2 = _interopRequireDefault(require("../../../vm-hooks/useSettings"));
12
+ var _api = require("../../api");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ /**
15
+ * 工时统计
16
+ */
17
+
18
+ function WorkingHours(props) {
19
+ var _useSettings = (0, _useSettings2["default"])(),
20
+ chartColor = _useSettings.chartColor,
21
+ chartFontColor = _useSettings.chartFontColor,
22
+ theme = _useSettings.theme;
23
+ var id = props.id,
24
+ startDate = props.startDate,
25
+ endDate = props.endDate;
26
+ var _AttendanceService$us = _api.AttendanceService.useTimeAnalysis(id, startDate, endDate),
27
+ attendTimeAnalysisRes = _AttendanceService$us.attendTimeAnalysisRes;
28
+ var names = attendTimeAnalysisRes.names,
29
+ values = attendTimeAnalysisRes.values;
30
+ var option = {
31
+ color: chartColor,
32
+ tooltip: {
33
+ trigger: 'axis',
34
+ formatter: function formatter(params) {
35
+ // params 是一个数组,包含了触发 tooltip 的所有数据点信息
36
+ var res = params[0].name + '<br/>'; // 添加数据点的名称
37
+ params.forEach(function (item) {
38
+ res += item.seriesName + ' : ';
39
+ res += item.value + ' 小时'; // 在这里添加单位
40
+ res += '<br/>';
41
+ });
42
+ return res;
43
+ }
44
+ },
45
+ legend: {
46
+ show: true,
47
+ itemWith: 6,
48
+ itemHeight: 6,
49
+ top: 20,
50
+ textStyle: {
51
+ color: theme === 'blue' ? '#fff' : chartFontColor,
52
+ fontSize: 12
53
+ }
54
+ },
55
+ grid: {
56
+ left: 24,
57
+ bottom: 12,
58
+ right: 40,
59
+ containLabel: true
60
+ },
61
+ xAxis: {
62
+ type: 'category',
63
+ boundaryGap: false,
64
+ axisTick: {
65
+ show: false
66
+ },
67
+ axisLabel: {
68
+ color: theme === 'blue' ? '#fff' : chartFontColor
69
+ },
70
+ data: names || []
71
+ },
72
+ yAxis: [{
73
+ name: '小时',
74
+ type: 'value',
75
+ nameTextStyle: {
76
+ color: theme === 'blue' ? '#fff' : chartFontColor
77
+ },
78
+ axisTick: {
79
+ show: false
80
+ },
81
+ axisLabel: {
82
+ color: theme === 'blue' ? '#fff' : chartFontColor
83
+ },
84
+ axisLine: {
85
+ show: true
86
+ },
87
+ splitLine: {
88
+ lineStyle: {
89
+ type: 'dashed',
90
+ color: 'rgba(151,151,151,0.28)'
91
+ }
92
+ }
93
+ }],
94
+ series: [{
95
+ name: '每日工时',
96
+ type: 'line',
97
+ data: (values === null || values === void 0 ? void 0 : values.length) > 1 ? values[1] : [],
98
+ markLine: {
99
+ data: [{
100
+ type: 'average',
101
+ name: '平均工时'
102
+ }],
103
+ label: {
104
+ show: true,
105
+ position: 'insideEndTop',
106
+ formatter: '{b}: {c}',
107
+ color: theme === 'blue' ? '#fff' : chartFontColor,
108
+ fontWeight: 'normal'
109
+ },
110
+ lineStyle: {
111
+ color: '#76F8FA'
112
+ }
113
+ }
114
+ }, {
115
+ name: '请假时长',
116
+ type: 'line',
117
+ data: (values === null || values === void 0 ? void 0 : values.length) > 2 ? values[2] : []
118
+ }, {
119
+ name: '加班时长',
120
+ type: 'line',
121
+ data: (values === null || values === void 0 ? void 0 : values.length) > 3 ? values[3] : []
122
+ }]
123
+ };
124
+ return /*#__PURE__*/_react["default"].createElement("div", {
125
+ key: id,
126
+ className: "staff-attend-workhours"
127
+ }, /*#__PURE__*/_react["default"].createElement(_vmSubTitle["default"], {
128
+ title: "\u5DE5\u65F6\u7EDF\u8BA1"
129
+ }), (names === null || names === void 0 ? void 0 : names.length) > 0 ? (/*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
130
+ option: option,
131
+ notMerge: true,
132
+ lazyUpdate: true,
133
+ style: {
134
+ height: '220px',
135
+ width: '100%'
136
+ }
137
+ })) : (/*#__PURE__*/_react["default"].createElement(_vmNodata["default"], null)));
138
+ }
139
+ //# sourceMappingURL=WorkingHours.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkingHours.js","names":["_react","_interopRequireDefault","require","_echartsForReact","_vmSubTitle","_vmNodata","_useSettings2","_api","e","__esModule","WorkingHours","props","_useSettings","useSettings","chartColor","chartFontColor","theme","id","startDate","endDate","_AttendanceService$us","AttendanceService","useTimeAnalysis","attendTimeAnalysisRes","names","values","option","color","tooltip","trigger","formatter","params","res","name","forEach","item","seriesName","value","legend","show","itemWith","itemHeight","top","textStyle","fontSize","grid","left","bottom","right","containLabel","xAxis","type","boundaryGap","axisTick","axisLabel","data","yAxis","nameTextStyle","axisLine","splitLine","lineStyle","series","length","markLine","label","position","fontWeight","React","createElement","key","className","SubTitle","title","ReactEcharts","notMerge","lazyUpdate","style","height","width","NoData"],"sources":["vtx-qyry-modal/components/Attendance/WorkingHours.js"],"sourcesContent":["/**\n * 工时统计\n */\nimport React from 'react';\nimport ReactEcharts from 'echarts-for-react';\nimport SubTitle from '../../../vm-sub-title';\nimport NoData from '../../../vm-nodata';\nimport useSettings from '../../../vm-hooks/useSettings';\nimport { AttendanceService } from '../../api';\nexport default function WorkingHours(props) {\n const { chartColor, chartFontColor, theme } = useSettings();\n const { id, startDate, endDate } = props;\n const { attendTimeAnalysisRes } = AttendanceService.useTimeAnalysis(id, startDate, endDate);\n const { names, values } = attendTimeAnalysisRes;\n const option = {\n color: chartColor,\n tooltip: {\n trigger: 'axis',\n formatter: function (params) {\n // params 是一个数组,包含了触发 tooltip 的所有数据点信息\n var res = params[0].name + '<br/>'; // 添加数据点的名称\n params.forEach(function (item) {\n res += item.seriesName + ' : ';\n res += item.value + ' 小时'; // 在这里添加单位\n res += '<br/>';\n });\n return res;\n }\n },\n legend: {\n show: true,\n itemWith: 6,\n itemHeight: 6,\n top: 20,\n textStyle: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n fontSize: 12,\n },\n },\n grid: {\n left: 24,\n bottom: 12,\n right: 40,\n containLabel: true,\n },\n xAxis: {\n type: 'category',\n boundaryGap: false,\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n data: names || [],\n },\n yAxis: [\n {\n name: '小时',\n type: 'value',\n nameTextStyle: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n axisTick: {\n show: false,\n },\n axisLabel: {\n color: theme === 'blue' ? '#fff' : chartFontColor,\n },\n axisLine: {\n show: true,\n },\n splitLine: {\n lineStyle: {\n type: 'dashed',\n color: 'rgba(151,151,151,0.28)',\n },\n },\n },\n ],\n series: [\n {\n name: '每日工时',\n type: 'line',\n data: (values === null || values === void 0 ? void 0 : values.length) > 1 ? values[1] : [],\n markLine: {\n data: [{ type: 'average', name: '平均工时' }],\n label: {\n show: true,\n position: 'insideEndTop',\n formatter: '{b}: {c}',\n color: theme === 'blue' ? '#fff' : chartFontColor,\n fontWeight: 'normal',\n },\n lineStyle: {\n color: '#76F8FA',\n },\n },\n },\n {\n name: '请假时长',\n type: 'line',\n data: (values === null || values === void 0 ? void 0 : values.length) > 2 ? values[2] : [],\n },\n {\n name: '加班时长',\n type: 'line',\n data: (values === null || values === void 0 ? void 0 : values.length) > 3 ? values[3] : [],\n },\n ],\n };\n return (React.createElement(\"div\", { key: id, className: \"staff-attend-workhours\" },\n React.createElement(SubTitle, { title: \"\\u5DE5\\u65F6\\u7EDF\\u8BA1\" }),\n (names === null || names === void 0 ? void 0 : names.length) > 0 ? (React.createElement(ReactEcharts, { option: option, notMerge: true, lazyUpdate: true, style: { height: '220px', width: '100%' } })) : (React.createElement(NoData, null))));\n}\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAL,OAAA;AAA8C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAR9C;AACA;AACA;;AAOe,SAASE,YAAYA,CAACC,KAAK,EAAE;EACxC,IAAAC,YAAA,GAA8C,IAAAC,wBAAW,EAAC,CAAC;IAAnDC,UAAU,GAAAF,YAAA,CAAVE,UAAU;IAAEC,cAAc,GAAAH,YAAA,CAAdG,cAAc;IAAEC,KAAK,GAAAJ,YAAA,CAALI,KAAK;EACzC,IAAQC,EAAE,GAAyBN,KAAK,CAAhCM,EAAE;IAAEC,SAAS,GAAcP,KAAK,CAA5BO,SAAS;IAAEC,OAAO,GAAKR,KAAK,CAAjBQ,OAAO;EAC9B,IAAAC,qBAAA,GAAkCC,sBAAiB,CAACC,eAAe,CAACL,EAAE,EAAEC,SAAS,EAAEC,OAAO,CAAC;IAAnFI,qBAAqB,GAAAH,qBAAA,CAArBG,qBAAqB;EAC7B,IA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,CAAC,GAAG;IAC5F,CAAC,EACD;MACIQ,IAAI,EAAE,MAAM;MACZkB,IAAI,EAAE,MAAM;MACZI,IAAI,EAAE,CAAC9B,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,MAAM,CAACqC,MAAM,IAAI,CAAC,GAAGrC,MAAM,CAAC,CAAC,CAAC,GAAG;IAC5F,CAAC;EAET,CAAC;EACD,oBAAQ0C,iBAAK,CAACC,aAAa,CAAC,KAAK,EAAE;IAAEC,GAAG,EAAEpD,EAAE;IAAEqD,SAAS,EAAE;EAAyB,CAAC,eAC/EH,iBAAK,CAACC,aAAa,CAACG,sBAAQ,EAAE;IAAEC,KAAK,EAAE;EAA2B,CAAC,CAAC,EACpE,CAAChD,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,KAAK,CAACsC,MAAM,IAAI,CAAC,iBAAIK,iBAAK,CAACC,aAAa,CAACK,2BAAY,EAAE;IAAE/C,MAAM,EAAEA,MAAM;IAAEgD,QAAQ,EAAE,IAAI;IAAEC,UAAU,EAAE,IAAI;IAAEC,KAAK,EAAE;MAAEC,MAAM,EAAE,OAAO;MAAEC,KAAK,EAAE;IAAO;EAAE,CAAC,CAAC,kBAAKX,iBAAK,CAACC,aAAa,CAACW,oBAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACtP","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ .staff-attend {
2
+ padding: 10px;
3
+ }
4
+ .staff-attend .sub-title {
5
+ height: 40px;
6
+ line-height: 40px;
7
+ font-size: 14px;
8
+ font-weight: 800;
9
+ border-bottom: 1px solid var(--calendar-border);
10
+ padding: 0 20px;
11
+ }
12
+ .staff-attend .sub-title .extra {
13
+ right: 20px;
14
+ font-weight: 400;
15
+ }
16
+ .staff-attend-head {
17
+ position: absolute;
18
+ top: 50px;
19
+ right: 0;
20
+ background-color: var(--bg-color2);
21
+ padding: 10px 20px;
22
+ height: 52px;
23
+ display: -webkit-box;
24
+ display: -ms-flexbox;
25
+ display: flex;
26
+ -webkit-box-align: center;
27
+ -ms-flex-align: center;
28
+ align-items: center;
29
+ -webkit-box-pack: end;
30
+ -ms-flex-pack: end;
31
+ justify-content: flex-end;
32
+ margin-bottom: 10px;
33
+ }
34
+ .staff-attend-exec {
35
+ height: 280px;
36
+ padding: 0 0 20px 0;
37
+ background-color: var(--bg-color2);
38
+ border: 1px solid var(--bg-border-color2);
39
+ }
40
+ .staff-attend-workhours {
41
+ height: 280px;
42
+ padding: 0 0 20px 0;
43
+ background-color: var(--bg-color2);
44
+ border: 1px solid var(--bg-border-color2);
45
+ }
46
+ .staff-attend-record {
47
+ width: 100%;
48
+ padding: 0;
49
+ background-color: var(--bg-color2);
50
+ border: 1px solid var(--bg-border-color2);
51
+ }