@vtx/modals2 5.0.22 → 5.0.24
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.
|
@@ -23,9 +23,9 @@ var List = function List(props) {
|
|
|
23
23
|
var id = props.id,
|
|
24
24
|
startDate = props.startDate,
|
|
25
25
|
endDate = props.endDate,
|
|
26
|
-
service = props.service
|
|
26
|
+
service = props.service,
|
|
27
|
+
alarmTypeCode = props.alarmTypeCode;
|
|
27
28
|
var _useSetState = useSetState({
|
|
28
|
-
alarmTypeCode: 'all',
|
|
29
29
|
pagination: {
|
|
30
30
|
current: 1,
|
|
31
31
|
pageSize: 10,
|
|
@@ -37,8 +37,7 @@ var List = function List(props) {
|
|
|
37
37
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
38
38
|
state = _useSetState2[0],
|
|
39
39
|
setState = _useSetState2[1];
|
|
40
|
-
var
|
|
41
|
-
pagination = state.pagination,
|
|
40
|
+
var pagination = state.pagination,
|
|
42
41
|
sortBy = state.sortBy,
|
|
43
42
|
order = state.order;
|
|
44
43
|
var _AlarmService$useAlar = AlarmService.useAlarmRecord(id, alarmTypeCode === 'all' ? '' : alarmTypeCode, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), pagination.current - 1, sortBy, order, service),
|
|
@@ -85,9 +85,11 @@ export default function WorkingHours(props) {
|
|
|
85
85
|
name: '加班时长',
|
|
86
86
|
fontType: 'green'
|
|
87
87
|
}].map(function (ele, index) {
|
|
88
|
+
var _ele$value;
|
|
88
89
|
return /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({
|
|
89
90
|
type: "sm"
|
|
90
91
|
}, ele), {}, {
|
|
92
|
+
value: (_ele$value = ele.value) === null || _ele$value === void 0 ? void 0 : _ele$value.toFixed(2),
|
|
91
93
|
unit: 'h',
|
|
92
94
|
img: ele["img".concat(isDark ? 'Dark' : '')]
|
|
93
95
|
}), index);
|