@vtx/modals2 5.0.19 → 5.0.21
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.
- package/lib/_components/vm-calendar/style/index.js +1 -0
- package/lib/_components/vm-calendar/style/index.less +4 -1
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-line-charts/index.js +11 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +3 -3
- package/lib/_components/vm-repair-maintain/index.js +2 -2
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/_components/vm-theme-provider/index.js +3 -3
- package/lib/vtx-area-modal/api.js +2 -2
- package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -2
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -2
- package/lib/vtx-area-modal/components/BaseInfo/index.js +2 -2
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +54 -54
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +6 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +2 -2
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +2 -2
- package/lib/vtx-cp-modal/index.js +2 -2
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfo/index.js +6 -6
- package/lib/vtx-df-modal/components/Calendar/index.js +4 -4
- package/lib/vtx-df-modal/components/Metering/index.js +8 -8
- package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +3 -3
- package/lib/vtx-df-modal/components/WorkCondition/index.js +8 -8
- package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +2 -2
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +2 -2
- package/lib/vtx-staff-modal/components/AlarmInfo/index.js +5 -5
- package/lib/vtx-staff-modal/components/Attendance/Exeception.js +4 -4
- package/lib/vtx-staff-modal/components/Attendance/Record.js +4 -4
- package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +4 -4
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +4 -14
- package/lib/vtx-staff-modal/components/BaseInfo/WorkStaticDay.js +2 -2
- package/lib/vtx-staff-modal/components/BaseInfo/index.js +5 -5
- package/lib/vtx-staff-modal/components/Calendar/index.js +1 -2
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/package.json +78 -78
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
.road-statistic-summary-main-rate {
|
|
2
|
-
--bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
|
|
3
|
-
&-dark {
|
|
4
|
-
--bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
|
|
5
|
-
}
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 130px;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: space-around;
|
|
11
|
-
padding: 0 24px;
|
|
12
|
-
background: var(--bg-color);
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
&--block {
|
|
15
|
-
width: 8px;
|
|
16
|
-
height: 8px;
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
}
|
|
19
|
-
&--label {
|
|
20
|
-
display: flex;
|
|
21
|
-
gap: 4px;
|
|
22
|
-
align-items: center;
|
|
23
|
-
font-size: 16px;
|
|
24
|
-
color: var(--img-text-color);
|
|
25
|
-
}
|
|
26
|
-
&--value {
|
|
27
|
-
margin-left: 12px;
|
|
28
|
-
font-weight: bold;
|
|
29
|
-
font-size: 24px;
|
|
30
|
-
color: #1F1F1F;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
.road-statistic-summary-main-rate {
|
|
2
|
+
--bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
|
|
3
|
+
&-dark {
|
|
4
|
+
--bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
|
|
5
|
+
}
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 130px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-around;
|
|
11
|
+
padding: 0 24px;
|
|
12
|
+
background: var(--bg-color);
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
&--block {
|
|
15
|
+
width: 8px;
|
|
16
|
+
height: 8px;
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
}
|
|
19
|
+
&--label {
|
|
20
|
+
display: flex;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
align-items: center;
|
|
23
|
+
font-size: 16px;
|
|
24
|
+
color: var(--img-text-color);
|
|
25
|
+
}
|
|
26
|
+
&--value {
|
|
27
|
+
margin-left: 12px;
|
|
28
|
+
font-weight: bold;
|
|
29
|
+
font-size: 24px;
|
|
30
|
+
color: #1F1F1F;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import
|
|
7
|
+
import dayjs from 'dayjs';
|
|
8
8
|
import { VmFactor, VmWrapper } from "../../../_components";
|
|
9
9
|
import useSettings from "../../../_hooks/useSettings";
|
|
10
10
|
import { overViewService, useGetDivisionBusinessPackages } from "../../api";
|
|
@@ -53,7 +53,7 @@ var Manage = function Manage(_ref2) {
|
|
|
53
53
|
});
|
|
54
54
|
var businessPackages = useGetDivisionBusinessPackages(id) || [];
|
|
55
55
|
// 今日已过时常
|
|
56
|
-
var todayPastHour = Number(((
|
|
56
|
+
var todayPastHour = Number(((dayjs().valueOf() - dayjs().startOf('day').valueOf()) / 1000 / 60 / 60).toFixed(1));
|
|
57
57
|
var cleanGroundDuration = data !== null && data !== void 0 && data.dirtyGroundDuration ? (todayPastHour - (data === null || data === void 0 ? void 0 : data.dirtyGroundDuration) / 60).toFixed(1) : 0;
|
|
58
58
|
var noOverflowDuration = data !== null && data !== void 0 && data.overflowDuration ? (todayPastHour - (data === null || data === void 0 ? void 0 : data.overflowDuration) / 60).toFixed(1) : 0;
|
|
59
59
|
return /*#__PURE__*/_jsx("div", {
|
|
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { useSetState } from 'ahooks';
|
|
12
|
-
import
|
|
12
|
+
import dayjs from 'dayjs';
|
|
13
13
|
import { useEffect } from 'react';
|
|
14
14
|
import { VmExtraTab, VmWrapper } from "../../../_components";
|
|
15
15
|
import { AlarmService } from "../../api";
|
|
@@ -22,8 +22,8 @@ var AlarmInfo = function AlarmInfo(props) {
|
|
|
22
22
|
_props$service = props.service,
|
|
23
23
|
service = _props$service === void 0 ? '' : _props$service;
|
|
24
24
|
var _useSetState = useSetState({
|
|
25
|
-
startDate:
|
|
26
|
-
endDate:
|
|
25
|
+
startDate: dayjs().startOf('M').format('YYYY-MM-DD'),
|
|
26
|
+
endDate: dayjs().format('YYYY-MM-DD'),
|
|
27
27
|
tabKey: 'chart',
|
|
28
28
|
alarmTypeCode: 'all'
|
|
29
29
|
}),
|
|
@@ -54,10 +54,10 @@ var AlarmInfo = function AlarmInfo(props) {
|
|
|
54
54
|
className: "staff-alarm",
|
|
55
55
|
children: [/*#__PURE__*/_jsx(VmWrapper, {
|
|
56
56
|
title: "\u62A5\u8B66\u6C47\u603B\u5206\u6790",
|
|
57
|
-
dateValue: [
|
|
57
|
+
dateValue: [dayjs(startDate), dayjs(endDate)],
|
|
58
58
|
filterType: "rangePicker",
|
|
59
59
|
filterChange: function filterChange(dates) {
|
|
60
|
-
return dates && handleDateChange(
|
|
60
|
+
return dates && handleDateChange(dayjs(dates[0]).format('YYYY-MM-DD'), dayjs(dates[1]).format('YYYY-MM-DD'));
|
|
61
61
|
},
|
|
62
62
|
style: {
|
|
63
63
|
marginBottom: 16
|
|
@@ -8,7 +8,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
8
8
|
* 异常统计
|
|
9
9
|
*/
|
|
10
10
|
import { useSetState } from 'ahooks';
|
|
11
|
-
import
|
|
11
|
+
import dayjs from 'dayjs';
|
|
12
12
|
import { VmEmpty, VmPieCharts, VmWrapper } from "../../../_components";
|
|
13
13
|
import { AttendanceService } from "../../api";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -16,8 +16,8 @@ export default function Exeception(props) {
|
|
|
16
16
|
var id = props.id,
|
|
17
17
|
service = props.service;
|
|
18
18
|
var _useSetState = useSetState({
|
|
19
|
-
startDate:
|
|
20
|
-
endDate:
|
|
19
|
+
startDate: dayjs(),
|
|
20
|
+
endDate: dayjs()
|
|
21
21
|
}),
|
|
22
22
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
23
23
|
state = _useSetState2[0],
|
|
@@ -36,7 +36,7 @@ export default function Exeception(props) {
|
|
|
36
36
|
className: "staff-attend-exec",
|
|
37
37
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
38
38
|
title: "\u8003\u52E4\u5F02\u5E38\u7EDF\u8BA1",
|
|
39
|
-
dateValue: [
|
|
39
|
+
dateValue: [dayjs(startDate), dayjs(endDate)],
|
|
40
40
|
filterType: "rangePicker",
|
|
41
41
|
filterChange: function filterChange(dates) {
|
|
42
42
|
return dates && handleDateChange(dates);
|
|
@@ -14,7 +14,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
* 考勤记录
|
|
15
15
|
*/
|
|
16
16
|
import { useSetState } from 'ahooks';
|
|
17
|
-
import
|
|
17
|
+
import dayjs from 'dayjs';
|
|
18
18
|
import { VmTable, VmWrapper } from "../../../_components";
|
|
19
19
|
import { AttendanceService } from "../../api";
|
|
20
20
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -22,8 +22,8 @@ export default function Record(props) {
|
|
|
22
22
|
var id = props.id,
|
|
23
23
|
service = props.service;
|
|
24
24
|
var _useSetState = useSetState({
|
|
25
|
-
startDate:
|
|
26
|
-
endDate:
|
|
25
|
+
startDate: dayjs(),
|
|
26
|
+
endDate: dayjs(),
|
|
27
27
|
pagination: {
|
|
28
28
|
current: 1,
|
|
29
29
|
pageSize: 10,
|
|
@@ -140,7 +140,7 @@ export default function Record(props) {
|
|
|
140
140
|
return /*#__PURE__*/_jsx("div", {
|
|
141
141
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
142
142
|
title: "\u8003\u52E4\u8BB0\u5F55",
|
|
143
|
-
dateValue: [
|
|
143
|
+
dateValue: [dayjs(startDate), dayjs(endDate)],
|
|
144
144
|
filterType: "rangePicker",
|
|
145
145
|
filterChange: function filterChange(dates) {
|
|
146
146
|
return dates && handleDateChange(dates);
|
|
@@ -14,7 +14,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
* 工时统计
|
|
15
15
|
*/
|
|
16
16
|
import { useSetState } from 'ahooks';
|
|
17
|
-
import
|
|
17
|
+
import dayjs from 'dayjs';
|
|
18
18
|
import { VmEmpty, VmFactor, VmLineCharts, VmWrapper } from "../../../_components";
|
|
19
19
|
import useSettings from "../../../_hooks/useSettings";
|
|
20
20
|
import { AttendanceService } from "../../api";
|
|
@@ -32,8 +32,8 @@ export default function WorkingHours(props) {
|
|
|
32
32
|
var id = props.id,
|
|
33
33
|
service = props.service;
|
|
34
34
|
var _useSetState = useSetState({
|
|
35
|
-
startDate:
|
|
36
|
-
endDate:
|
|
35
|
+
startDate: dayjs(),
|
|
36
|
+
endDate: dayjs()
|
|
37
37
|
}),
|
|
38
38
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
39
39
|
state = _useSetState2[0],
|
|
@@ -57,7 +57,7 @@ export default function WorkingHours(props) {
|
|
|
57
57
|
className: "staff-attend-workhours",
|
|
58
58
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
59
59
|
title: "\u5DE5\u65F6\u7EDF\u8BA1",
|
|
60
|
-
dateValue: [
|
|
60
|
+
dateValue: [dayjs(startDate), dayjs(endDate)],
|
|
61
61
|
filterType: "rangePicker",
|
|
62
62
|
filterChange: function filterChange(dates) {
|
|
63
63
|
return dates && handleDateChange(dates);
|
|
@@ -15,7 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { useSetState } from 'ahooks';
|
|
18
|
-
import
|
|
18
|
+
import dayjs from 'dayjs';
|
|
19
19
|
import { VmTable } from "../../../_components";
|
|
20
20
|
import { BaseService } from "../../api";
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -35,7 +35,7 @@ var ListZymx = function ListZymx(props) {
|
|
|
35
35
|
state = _useSetState2[0],
|
|
36
36
|
setState = _useSetState2[1];
|
|
37
37
|
var pagination = state.pagination;
|
|
38
|
-
var _BaseService$useToday = BaseService.useTodayWork(id, startDate ||
|
|
38
|
+
var _BaseService$useToday = BaseService.useTodayWork(id, startDate || dayjs().format('YYYY-MM-DD'), endDate || dayjs().format('YYYY-MM-DD'), pagination.current - 1, service),
|
|
39
39
|
todayWorkRes = _BaseService$useToday.todayWorkRes;
|
|
40
40
|
var columns = [{
|
|
41
41
|
title: '作业日期',
|
|
@@ -120,19 +120,9 @@ var ListZymx = function ListZymx(props) {
|
|
|
120
120
|
onChange: pageChange
|
|
121
121
|
})
|
|
122
122
|
};
|
|
123
|
-
return /*#__PURE__*/_jsx(VmTable, _objectSpread(
|
|
123
|
+
return /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
124
124
|
columns: columns,
|
|
125
125
|
rowKey: "id"
|
|
126
|
-
}, tableProps)
|
|
127
|
-
dataSource: [{
|
|
128
|
-
shiftDate: '2312313',
|
|
129
|
-
shiftName: 'sdfgdfgd',
|
|
130
|
-
completionRate: 20
|
|
131
|
-
}, {
|
|
132
|
-
shiftDate: '2312313',
|
|
133
|
-
shiftName: 'sdfgdfgd',
|
|
134
|
-
completionRate: 20
|
|
135
|
-
}]
|
|
136
|
-
}));
|
|
126
|
+
}, tableProps));
|
|
137
127
|
};
|
|
138
128
|
export default ListZymx;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* 区域进场量分析
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import dayjs from 'dayjs';
|
|
6
6
|
import { VmEmpty, VmPieCharts } from "../../../_components";
|
|
7
7
|
import { BaseService } from "../../api";
|
|
8
8
|
import "./index.less";
|
|
@@ -12,7 +12,7 @@ function WorkStaticDay(_ref) {
|
|
|
12
12
|
var id = _ref.id,
|
|
13
13
|
_ref$service = _ref.service,
|
|
14
14
|
service = _ref$service === void 0 ? '' : _ref$service;
|
|
15
|
-
var _BaseService$useWorkS = BaseService.useWorkStatic(id,
|
|
15
|
+
var _BaseService$useWorkS = BaseService.useWorkStatic(id, dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD'), service),
|
|
16
16
|
workStaticRes = _BaseService$useWorkS.workStaticRes;
|
|
17
17
|
return /*#__PURE__*/_jsx("div", {
|
|
18
18
|
className: "staff-base-static-chart",
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useSetState } from 'ahooks';
|
|
14
14
|
import { Col, Row } from 'antd';
|
|
15
|
-
import
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
16
|
import { VmExtraTab, VmFactor, VmInfoCollection, VmMap, VmTitle, VmWrapper } from "../../../_components";
|
|
17
17
|
import useSettings from "../../../_hooks/useSettings";
|
|
18
18
|
import { BaseService } from "../../api";
|
|
@@ -54,9 +54,9 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
54
54
|
pointLngLat = realInfo.pointLngLat,
|
|
55
55
|
mapPolygons = realInfo.mapPolygons,
|
|
56
56
|
realtimeInfo = realInfo.realtimeInfo;
|
|
57
|
-
var _BaseService$useWorkI = BaseService.useWorkInfo(id,
|
|
57
|
+
var _BaseService$useWorkI = BaseService.useWorkInfo(id, dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD'), service),
|
|
58
58
|
workInfoRes = _BaseService$useWorkI.workInfoRes;
|
|
59
|
-
var _BaseService$useWorkS = BaseService.useWorkStatic(id,
|
|
59
|
+
var _BaseService$useWorkS = BaseService.useWorkStatic(id, dayjs().startOf('M').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD'), service),
|
|
60
60
|
workStaticRes = _BaseService$useWorkS.workStaticRes;
|
|
61
61
|
var baseTabContent = /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
62
62
|
data: baseInfo,
|
|
@@ -172,8 +172,8 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
172
172
|
children: /*#__PURE__*/_jsx(ListZymx, {
|
|
173
173
|
id: id,
|
|
174
174
|
service: service,
|
|
175
|
-
startDate: activeKey === '2' ?
|
|
176
|
-
endDate: activeKey === '2' ?
|
|
175
|
+
startDate: activeKey === '2' ? dayjs().startOf('M').format('YYYY-MM-DD') : '',
|
|
176
|
+
endDate: activeKey === '2' ? dayjs().endOf('M').format('YYYY-MM-DD') : ''
|
|
177
177
|
})
|
|
178
178
|
})
|
|
179
179
|
})]
|
|
@@ -15,7 +15,6 @@ import { useSetState } from 'ahooks';
|
|
|
15
15
|
import { Space, Tooltip } from 'antd';
|
|
16
16
|
import dayjs from 'dayjs';
|
|
17
17
|
import { cloneDeep, keyBy } from 'lodash';
|
|
18
|
-
import moment from 'moment';
|
|
19
18
|
import { useEffect } from 'react';
|
|
20
19
|
import { VmCalendar, VmCalendarInner, VmWrapper } from "../../../_components";
|
|
21
20
|
import VmProgress from "../../../_components/vm-progress";
|
|
@@ -38,7 +37,7 @@ var StaticInfo = function StaticInfo(_ref) {
|
|
|
38
37
|
var _useSettings = useSettings(),
|
|
39
38
|
isDark = _useSettings.isDark;
|
|
40
39
|
var _useSetState = useSetState({
|
|
41
|
-
date:
|
|
40
|
+
date: dayjs(),
|
|
42
41
|
hoverType: []
|
|
43
42
|
}),
|
|
44
43
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
@@ -8,7 +8,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
8
8
|
* 监测指标趋势分析
|
|
9
9
|
*/
|
|
10
10
|
import { useSetState } from 'ahooks';
|
|
11
|
-
import
|
|
11
|
+
import dayjs from 'dayjs';
|
|
12
12
|
import * as echarts from 'echarts';
|
|
13
13
|
import { useEffect } from 'react';
|
|
14
14
|
import { VmEmpty, VmFilter, VmLineCharts, VmWrapper } from "../../../_components";
|
|
@@ -36,7 +36,7 @@ function Jczbqs(props) {
|
|
|
36
36
|
value: realtimeRes === null || realtimeRes === void 0 || (_realtimeRes$ = realtimeRes[0]) === null || _realtimeRes$ === void 0 ? void 0 : _realtimeRes$.monitorItemCode
|
|
37
37
|
});
|
|
38
38
|
}, [realtimeRes]);
|
|
39
|
-
var _BaseService$useJczbq = BaseService.useJczbqsfx(value, deviceId,
|
|
39
|
+
var _BaseService$useJczbq = BaseService.useJczbqsfx(value, deviceId, dayjs().subtract(24, 'hours').format('YYYY-MM-DD HH:mm:ss'), dayjs().format('YYYY-MM-DD HH:mm:ss')),
|
|
40
40
|
timeSumData = _BaseService$useJczbq.timeSumData;
|
|
41
41
|
return /*#__PURE__*/_jsx("div", {
|
|
42
42
|
className: "df-overview-trend",
|
package/package.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vtx/modals2",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"description": "弹窗组件",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"module": "lib/index.js",
|
|
7
|
-
"types": "lib/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "father build",
|
|
13
|
-
"build:watch": "father dev",
|
|
14
|
-
"dev": "dumi dev",
|
|
15
|
-
"docs:build": "dumi build",
|
|
16
|
-
"docs:preview": "dumi preview",
|
|
17
|
-
"doctor": "father doctor",
|
|
18
|
-
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
-
"prepare": "husky install && dumi setup",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"start": "npm run dev"
|
|
24
|
-
},
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"base-64": "^1.0.0",
|
|
27
|
-
"htmr": "^1.0.2",
|
|
28
|
-
"number-precision": "^1.6.0",
|
|
29
|
-
"react-tagcloud": "^2.3.3"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@ant-design/icons": "4.7.0",
|
|
33
|
-
"@babel/preset-react": "^7.28.5",
|
|
34
|
-
"@babel/runtime": "^7.6.3",
|
|
35
|
-
"@commitlint/cli": "^17.1.2",
|
|
36
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
37
|
-
"@types/lodash": "^4.14.202",
|
|
38
|
-
"@types/qs": "^6.9.11",
|
|
39
|
-
"@types/react": "^18.0.0",
|
|
40
|
-
"@types/react-dom": "^18.0.0",
|
|
41
|
-
"@umijs/lint": "^4.0.0",
|
|
42
|
-
"@vtx/components": "^3.1.166",
|
|
43
|
-
"@vtx/ol-map": "^1.0.151",
|
|
44
|
-
"@vtx/player": "latest",
|
|
45
|
-
"@vtx/utils": "^1.0.20",
|
|
46
|
-
"ahooks": "^3.1.5",
|
|
47
|
-
"antd": "^4.24.16",
|
|
48
|
-
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
49
|
-
"axios": "^0.21.1",
|
|
50
|
-
"babel-eslint": "^10.1.0",
|
|
51
|
-
"babel-plugin-import": "^1.13.8",
|
|
52
|
-
"dayjs": "^1.11.10",
|
|
53
|
-
"dumi": "^2.2.13",
|
|
54
|
-
"echarts": "^5.3.2",
|
|
55
|
-
"echarts-for-react": "3.0.2",
|
|
56
|
-
"echarts-liquidfill": "^3.1.0",
|
|
57
|
-
"eslint": "^8.23.0",
|
|
58
|
-
"father": "^4.1.0",
|
|
59
|
-
"husky": "^8.0.1",
|
|
60
|
-
"lint-staged": "^13.0.3",
|
|
61
|
-
"lodash": "^4.17.21",
|
|
62
|
-
"prettier": "^2.7.1",
|
|
63
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
64
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
65
|
-
"qs": "^6.0.0",
|
|
66
|
-
"react": "^18.0.0",
|
|
67
|
-
"react-dom": "^18.0.0",
|
|
68
|
-
"stylelint": "^14.9.1"
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"react": ">=16.9.0",
|
|
72
|
-
"react-dom": ">=16.9.0"
|
|
73
|
-
},
|
|
74
|
-
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
76
|
-
},
|
|
77
|
-
"authors": []
|
|
78
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vtx/modals2",
|
|
3
|
+
"version": "5.0.21",
|
|
4
|
+
"description": "弹窗组件",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"types": "lib/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"lib"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "father build",
|
|
13
|
+
"build:watch": "father dev",
|
|
14
|
+
"dev": "dumi dev",
|
|
15
|
+
"docs:build": "dumi build",
|
|
16
|
+
"docs:preview": "dumi preview",
|
|
17
|
+
"doctor": "father doctor",
|
|
18
|
+
"lint": "npm run lint:es && npm run lint:css",
|
|
19
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
|
20
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
|
21
|
+
"prepare": "husky install && dumi setup",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"start": "npm run dev"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"base-64": "^1.0.0",
|
|
27
|
+
"htmr": "^1.0.2",
|
|
28
|
+
"number-precision": "^1.6.0",
|
|
29
|
+
"react-tagcloud": "^2.3.3"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@ant-design/icons": "4.7.0",
|
|
33
|
+
"@babel/preset-react": "^7.28.5",
|
|
34
|
+
"@babel/runtime": "^7.6.3",
|
|
35
|
+
"@commitlint/cli": "^17.1.2",
|
|
36
|
+
"@commitlint/config-conventional": "^17.1.0",
|
|
37
|
+
"@types/lodash": "^4.14.202",
|
|
38
|
+
"@types/qs": "^6.9.11",
|
|
39
|
+
"@types/react": "^18.0.0",
|
|
40
|
+
"@types/react-dom": "^18.0.0",
|
|
41
|
+
"@umijs/lint": "^4.0.0",
|
|
42
|
+
"@vtx/components": "^3.1.166",
|
|
43
|
+
"@vtx/ol-map": "^1.0.151",
|
|
44
|
+
"@vtx/player": "latest",
|
|
45
|
+
"@vtx/utils": "^1.0.20",
|
|
46
|
+
"ahooks": "^3.1.5",
|
|
47
|
+
"antd": "^4.24.16",
|
|
48
|
+
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
49
|
+
"axios": "^0.21.1",
|
|
50
|
+
"babel-eslint": "^10.1.0",
|
|
51
|
+
"babel-plugin-import": "^1.13.8",
|
|
52
|
+
"dayjs": "^1.11.10",
|
|
53
|
+
"dumi": "^2.2.13",
|
|
54
|
+
"echarts": "^5.3.2",
|
|
55
|
+
"echarts-for-react": "3.0.2",
|
|
56
|
+
"echarts-liquidfill": "^3.1.0",
|
|
57
|
+
"eslint": "^8.23.0",
|
|
58
|
+
"father": "^4.1.0",
|
|
59
|
+
"husky": "^8.0.1",
|
|
60
|
+
"lint-staged": "^13.0.3",
|
|
61
|
+
"lodash": "^4.17.21",
|
|
62
|
+
"prettier": "^2.7.1",
|
|
63
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
64
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
|
65
|
+
"qs": "^6.0.0",
|
|
66
|
+
"react": "^18.0.0",
|
|
67
|
+
"react-dom": "^18.0.0",
|
|
68
|
+
"stylelint": "^14.9.1"
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"react": ">=16.9.0",
|
|
72
|
+
"react-dom": ">=16.9.0"
|
|
73
|
+
},
|
|
74
|
+
"publishConfig": {
|
|
75
|
+
"access": "public"
|
|
76
|
+
},
|
|
77
|
+
"authors": []
|
|
78
|
+
}
|