@vtx/modals2 5.0.18 → 5.0.20
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-empty/index.js +4 -1
- package/lib/_components/vm-empty/style/index.less +4 -0
- package/lib/_components/vm-filter/index.js +4 -2
- package/lib/_components/vm-pie-charts/index.js +8 -1
- 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/style/index.less +12 -4
- package/lib/_components/vm-theme-provider/index.js +3 -3
- package/lib/index.js +3 -1
- 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-cp-modal/components/AlarmInfo/MonthTrend.js +2 -2
- package/lib/vtx-cp-modal/components/BaseInfo/index.js +2 -2
- package/lib/vtx-default-modal/index.js +0 -1
- 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-jzlj-df-tpd-modal/api.js +212 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
- package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
- package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
- package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
- package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
- package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
- package/lib/vtx-qyry-modal/api.js +1 -0
- 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 +13 -4
- 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/lib/vtx-tfd-modal/index.js +18 -2
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
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
7
|
import classnames from 'classnames';
|
|
8
|
+
import useSettings from "../../_hooks/useSettings";
|
|
8
9
|
import no_chart from "./assets/no_chart.png";
|
|
9
10
|
import no_data from "./assets/no_data.png";
|
|
10
11
|
import no_data_2 from "./assets/no_data_2.png";
|
|
@@ -56,6 +57,8 @@ var CONFIG = {
|
|
|
56
57
|
};
|
|
57
58
|
var prefix = 'vm-empty';
|
|
58
59
|
function VmEmpty(props) {
|
|
60
|
+
var _useSettings = useSettings(),
|
|
61
|
+
isDark = _useSettings.isDark;
|
|
59
62
|
var _props$style = props.style,
|
|
60
63
|
style = _props$style === void 0 ? {} : _props$style,
|
|
61
64
|
_props$type = props.type,
|
|
@@ -68,7 +71,7 @@ function VmEmpty(props) {
|
|
|
68
71
|
img = _ref.img,
|
|
69
72
|
text = _ref.text;
|
|
70
73
|
return /*#__PURE__*/_jsxs("div", {
|
|
71
|
-
className: classnames("".concat(prefix), className),
|
|
74
|
+
className: classnames("".concat(prefix, " ").concat(isDark ? 'dark' : ''), className),
|
|
72
75
|
style: _objectSpread({}, style),
|
|
73
76
|
children: [/*#__PURE__*/_jsx("img", {
|
|
74
77
|
className: classnames("".concat(prefix, "-img")),
|
|
@@ -14,10 +14,11 @@ import { SearchOutlined } from '@ant-design/icons';
|
|
|
14
14
|
import { useDebounce } from 'ahooks';
|
|
15
15
|
import { DatePicker, Input, Select } from 'antd';
|
|
16
16
|
import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
17
|
-
import '
|
|
17
|
+
import 'dayjs/locale/zh-cn';
|
|
18
18
|
import { useEffect, useState } from 'react';
|
|
19
19
|
import useSettings from "../../_hooks/useSettings";
|
|
20
20
|
import "./style";
|
|
21
|
+
import VmEmpty from "../vm-empty";
|
|
21
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
var RangePicker = DatePicker.RangePicker,
|
|
23
24
|
MonthPicker = DatePicker.MonthPicker,
|
|
@@ -76,7 +77,8 @@ export var VMSelect = function VMSelect(props) {
|
|
|
76
77
|
isDark = _useSettings5.isDark;
|
|
77
78
|
return /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
78
79
|
className: "vm-select ".concat(isDark ? 'dark' : '', " "),
|
|
79
|
-
dropdownClassName: "vm-select-dropdown ".concat(isDark ? 'dark' : '')
|
|
80
|
+
dropdownClassName: "vm-select-dropdown ".concat(isDark ? 'dark' : ''),
|
|
81
|
+
notFoundContent: /*#__PURE__*/_jsx(VmEmpty, {})
|
|
80
82
|
}, props), {}, {
|
|
81
83
|
children: props.children
|
|
82
84
|
}));
|
|
@@ -37,7 +37,9 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
37
37
|
_ref$colors = _ref.colors,
|
|
38
38
|
colors = _ref$colors === void 0 ? null : _ref$colors,
|
|
39
39
|
_ref$colors2 = _ref.colors2,
|
|
40
|
-
colors2 = _ref$colors2 === void 0 ? null : _ref$colors2
|
|
40
|
+
colors2 = _ref$colors2 === void 0 ? null : _ref$colors2,
|
|
41
|
+
_ref$subTitle = _ref.subTitle,
|
|
42
|
+
subTitle = _ref$subTitle === void 0 ? null : _ref$subTitle;
|
|
41
43
|
var _useSettings = useSettings(),
|
|
42
44
|
chartFontColor = _useSettings.chartFontColor,
|
|
43
45
|
isDark = _useSettings.isDark;
|
|
@@ -169,6 +171,11 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
169
171
|
color: chartFontColor
|
|
170
172
|
},
|
|
171
173
|
children: title
|
|
174
|
+
}), subTitle && /*#__PURE__*/_jsx("div", {
|
|
175
|
+
style: {
|
|
176
|
+
color: chartFontColor
|
|
177
|
+
},
|
|
178
|
+
children: subTitle
|
|
172
179
|
})]
|
|
173
180
|
}), /*#__PURE__*/_jsx(ReactEcharts, {
|
|
174
181
|
option: option,
|
|
@@ -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 { BaseService } from "./api";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -33,8 +33,8 @@ export default function RmRecord(props) {
|
|
|
33
33
|
setState = _useSetState2[1];
|
|
34
34
|
var pagination = state.pagination,
|
|
35
35
|
sorter = state.sorter;
|
|
36
|
-
var startDate =
|
|
37
|
-
var endDate =
|
|
36
|
+
var startDate = dayjs().startOf('y').format('YYYY-MM-DD HH:mm:ss');
|
|
37
|
+
var endDate = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
38
38
|
var _BaseService$useRmRec = BaseService.useRmRecord(id, startDate, endDate, pagination.current - 1, sorter),
|
|
39
39
|
rmRecord = _BaseService$useRmRec.rmRecord;
|
|
40
40
|
var getColor = function getColor(code) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { Col, Row } from 'antd';
|
|
6
|
-
import
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
7
|
import { VmWrapper } from "../../_components";
|
|
8
8
|
import { BaseService } from "./api";
|
|
9
9
|
import RmInfoSummary from "./RmInfoSummary";
|
|
@@ -14,7 +14,7 @@ import "./style";
|
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
15
|
var RepaireMaintain = function RepaireMaintain(props) {
|
|
16
16
|
var id = props.id;
|
|
17
|
-
var date =
|
|
17
|
+
var date = dayjs().format('YYYY-MM-DD');
|
|
18
18
|
var _BaseService$useRepai = BaseService.useRepairMaintain(id, date, date),
|
|
19
19
|
rmSummary = _BaseService$useRepai.rmSummary,
|
|
20
20
|
rmType = _BaseService$useRepai.rmType,
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
--table-bg: white;
|
|
3
3
|
--table-color: #1f1f1f;
|
|
4
4
|
--table-header-bg-color: #e6f4ff;
|
|
5
|
+
--table-header-fixed-bg-color: #e6f4ff;
|
|
6
|
+
--table-bd-fixed-bg-color: #fff;
|
|
7
|
+
--table-bd-fixed-bg-odd-color: #e8e8e8;
|
|
5
8
|
--table-row-border: 1px solid #f2f2f2;
|
|
6
9
|
--table-row-bg-color: #f2f2f2;
|
|
7
10
|
--scroll-bar-hover-bg: #adadad;
|
|
@@ -10,6 +13,9 @@
|
|
|
10
13
|
--table-bg: transparent;
|
|
11
14
|
--table-color: #fff;
|
|
12
15
|
--table-header-bg-color: rgba(0, 157, 255, 0.2);
|
|
16
|
+
--table-header-fixed-bg-color: rgb(13 92 142);
|
|
17
|
+
--table-bd-fixed-bg-color: #155279;
|
|
18
|
+
--table-bd-fixed-bg-odd-color: #115d8e;
|
|
13
19
|
--table-row-border: 1px solid transparent;
|
|
14
20
|
--table-row-bg-color: rgba(0, 91, 136, 0.1);
|
|
15
21
|
--scroll-bar-hover-bg: #219fff3d;
|
|
@@ -122,7 +128,7 @@
|
|
|
122
128
|
.ant-table-thead {
|
|
123
129
|
.ant-table-cell-fix-left,
|
|
124
130
|
.ant-table-cell-fix-right {
|
|
125
|
-
background: var(--table-header-bg-color) !important;
|
|
131
|
+
background: var(--table-header-fixed-bg-color) !important;
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
134
|
|
|
@@ -158,7 +164,7 @@
|
|
|
158
164
|
tbody {
|
|
159
165
|
.ant-table-cell-fix-left,
|
|
160
166
|
.ant-table-cell-fix-right {
|
|
161
|
-
background: var(--table-bg) !important;
|
|
167
|
+
background: var(--table-bd-fixed-bg-color) !important;
|
|
162
168
|
}
|
|
163
169
|
tr {
|
|
164
170
|
td {
|
|
@@ -178,8 +184,10 @@
|
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
&:nth-child(odd) {
|
|
181
|
-
td,
|
|
182
|
-
|
|
187
|
+
td,
|
|
188
|
+
td.ant-table-cell-fix-left {
|
|
189
|
+
// background-color: var(--table-row-bg-color) !important;
|
|
190
|
+
background-color: var(--table-bd-fixed-bg-odd-color) !important;
|
|
183
191
|
// border-top: var(--table-row-border);
|
|
184
192
|
// border-bottom: var(--table-row-border);
|
|
185
193
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
var VtxThemeContext = /*#__PURE__*/React.createContext({
|
|
4
4
|
theme: 'light',
|
|
5
5
|
tabPosition: 'top',
|
|
6
6
|
chartFontColor: '#fff',
|
|
7
7
|
chartLineColor: '',
|
|
8
|
-
startDate:
|
|
9
|
-
endDate:
|
|
8
|
+
startDate: dayjs().format('YYYY-MM-DD'),
|
|
9
|
+
endDate: dayjs().format('YYYY-MM-DD'),
|
|
10
10
|
contentStyle: {},
|
|
11
11
|
mapInfo: {
|
|
12
12
|
coordinate: '',
|
package/lib/index.js
CHANGED
|
@@ -20,4 +20,6 @@ export { default as VtxSdydTfdModal } from "./vtx-sdyd-tfd-modal";
|
|
|
20
20
|
export { default as VtxZfModal } from "./vtx-zf-modal";
|
|
21
21
|
|
|
22
22
|
// 建筑垃圾产品弹窗
|
|
23
|
-
export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
|
|
23
|
+
export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
|
|
24
|
+
export { default as VtxJzljXncModal } from "./vtx-jzlj-xnc-modal"; // 建筑垃圾-消纳场
|
|
25
|
+
export { default as VtxJzljDfTpdModal } from "./vtx-jzlj-df-tpd-modal"; // 建筑垃圾-处置场/调配点
|
|
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import { MapIcon } from '@vtx/map-icon';
|
|
8
8
|
import { getUrlParam, getVtxToken, request } from '@vtx/utils';
|
|
9
9
|
import { useRequest } from 'ahooks';
|
|
10
|
-
import
|
|
10
|
+
import dayjs from 'dayjs';
|
|
11
11
|
var BaseService = {
|
|
12
12
|
useBaseInfo: function useBaseInfo(id, coordType) {
|
|
13
13
|
var _info$paramsDone, _numInfo$data, _numInfo$data2;
|
|
@@ -27,7 +27,7 @@ var BaseService = {
|
|
|
27
27
|
data: {
|
|
28
28
|
workElementId: id,
|
|
29
29
|
needRealtimeInfo: true,
|
|
30
|
-
date:
|
|
30
|
+
date: dayjs().format('YYYY-MM-DD'),
|
|
31
31
|
coordType: 'wgs84'
|
|
32
32
|
},
|
|
33
33
|
extraHeader: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as echarts from 'echarts';
|
|
2
2
|
import ReactEcharts from 'echarts-for-react';
|
|
3
|
-
import
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
4
|
import { VmEmpty } from "../../../_components";
|
|
5
5
|
import useSettings from "../../../_hooks/useSettings";
|
|
6
6
|
import { BaseService } from "../../api";
|
|
@@ -10,7 +10,7 @@ var Lcfx = function Lcfx(props) {
|
|
|
10
10
|
chartFontColor = _useSettings.chartFontColor,
|
|
11
11
|
theme = _useSettings.theme;
|
|
12
12
|
var id = props.id;
|
|
13
|
-
var _BaseService$useMileA = BaseService.useMileAnalysis(id,
|
|
13
|
+
var _BaseService$useMileA = BaseService.useMileAnalysis(id, dayjs().startOf('M').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')),
|
|
14
14
|
mileAnalysisRes = _BaseService$useMileA.mileAnalysisRes;
|
|
15
15
|
var names = mileAnalysisRes.names,
|
|
16
16
|
values = mileAnalysisRes.values;
|
|
@@ -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";
|
|
@@ -34,7 +34,7 @@ var ListZymx = function ListZymx(props) {
|
|
|
34
34
|
state = _useSetState2[0],
|
|
35
35
|
setState = _useSetState2[1];
|
|
36
36
|
var pagination = state.pagination;
|
|
37
|
-
var _BaseService$useToday = BaseService.useTodayWork(id, startDate ||
|
|
37
|
+
var _BaseService$useToday = BaseService.useTodayWork(id, startDate || dayjs().format('YYYY-MM-DD'), endDate || dayjs().format('YYYY-MM-DD'), pagination.current - 1),
|
|
38
38
|
todayWorkRes = _BaseService$useToday.todayWorkRes;
|
|
39
39
|
var columns = [{
|
|
40
40
|
title: '作业日期',
|
|
@@ -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 { useRef } from 'react';
|
|
17
17
|
import { VmFactor, VmFactorList, VmInfoCollection, VmMap, VmTitle, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
@@ -39,7 +39,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
39
39
|
isDark = _useSettings.isDark,
|
|
40
40
|
mapInfo = _useSettings.mapInfo;
|
|
41
41
|
var _useSetState = useSetState({
|
|
42
|
-
date:
|
|
42
|
+
date: dayjs()
|
|
43
43
|
}),
|
|
44
44
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
45
45
|
state = _useSetState2[0],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 公厕-报警信息-报警信息汇总
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import dayjs from 'dayjs';
|
|
5
5
|
import { VmEmpty, VmLineCharts, VmWrapper } from "../../../_components";
|
|
6
6
|
import { AlarmService } from "../../api";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
var MonthTrend = function MonthTrend(_ref) {
|
|
9
9
|
var id = _ref.id;
|
|
10
|
-
var _AlarmService$useAlar = AlarmService.useAlarmMonthTrend(id,
|
|
10
|
+
var _AlarmService$useAlar = AlarmService.useAlarmMonthTrend(id, dayjs().subtract(6, 'M').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')),
|
|
11
11
|
alarmMonthTrend = _AlarmService$useAlar.alarmMonthTrend;
|
|
12
12
|
var legends = alarmMonthTrend.legends,
|
|
13
13
|
names = alarmMonthTrend.names,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Col, Row } from 'antd';
|
|
2
|
-
import
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
3
|
import { VmInfoCollection, VmTitle, VmWrapper } from "../../../_components";
|
|
4
4
|
import useSettings from "../../../_hooks/useSettings";
|
|
5
5
|
import { BaseService } from "../../api";
|
|
@@ -15,7 +15,7 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
15
15
|
var _useSettings = useSettings(),
|
|
16
16
|
theme = _useSettings.theme,
|
|
17
17
|
isDark = _useSettings.isDark;
|
|
18
|
-
var nowDate =
|
|
18
|
+
var nowDate = dayjs().format('YYYY-MM-DD');
|
|
19
19
|
var _BaseService$useBaseI = BaseService.useBaseInfo(id, nowDate, nowDate),
|
|
20
20
|
todayWorkRes = _BaseService$useBaseI.todayWorkRes,
|
|
21
21
|
dataSource = _BaseService$useBaseI.dataSource;
|
|
@@ -9,7 +9,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
*/
|
|
10
10
|
import { VmCustom, VmRepairMaintain, VmVideo } from "../_components";
|
|
11
11
|
import Appraisal from "../vtx-kh-modal/components/Record";
|
|
12
|
-
// import VmVideo from '../vm-video';
|
|
13
12
|
import { useMemo } from 'react';
|
|
14
13
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
15
14
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
@@ -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",
|
|
@@ -8,7 +8,7 @@ import { VtxImage } from '@vtx/components';
|
|
|
8
8
|
import { getVtxToken } from '@vtx/utils';
|
|
9
9
|
import { useSetState } from 'ahooks';
|
|
10
10
|
import { Col, Row } from 'antd';
|
|
11
|
-
import
|
|
11
|
+
import dayjs from 'dayjs';
|
|
12
12
|
import { useRef } from 'react';
|
|
13
13
|
import { VmEmpty, VmInfoCollection, VmWrapper } from "../../../_components";
|
|
14
14
|
import { CommonService } from "../../../_service";
|
|
@@ -26,9 +26,9 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
26
26
|
code = props.code,
|
|
27
27
|
hasLm = props.hasLm,
|
|
28
28
|
realtimeMonitor = props.realtimeMonitor;
|
|
29
|
-
var nowDate =
|
|
29
|
+
var nowDate = dayjs().format('YYYY-MM-DD');
|
|
30
30
|
var _useSetState = useSetState({
|
|
31
|
-
startDate:
|
|
31
|
+
startDate: dayjs().subtract(1, 'month').format('YYYY-MM-DD'),
|
|
32
32
|
endDate: nowDate
|
|
33
33
|
}),
|
|
34
34
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
@@ -109,11 +109,11 @@ var BaseInfo = function BaseInfo(props) {
|
|
|
109
109
|
},
|
|
110
110
|
title: "\u533A\u57DF\u8FDB\u573A\u91CF\u5206\u6790",
|
|
111
111
|
filterType: "rangePicker",
|
|
112
|
-
dateValue: [
|
|
112
|
+
dateValue: [dayjs(startDate), dayjs(endDate)],
|
|
113
113
|
filterChange: function filterChange(dates) {
|
|
114
114
|
return dates && setState({
|
|
115
|
-
startDate:
|
|
116
|
-
endDate:
|
|
115
|
+
startDate: dayjs(dates[0]).format('YYYY-MM-DD'),
|
|
116
|
+
endDate: dayjs(dates[1]).format('YYYY-MM-DD')
|
|
117
117
|
});
|
|
118
118
|
},
|
|
119
119
|
children: /*#__PURE__*/_jsx(Qyjcl, {
|
|
@@ -11,7 +11,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11
11
|
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; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { useSetState } from 'ahooks';
|
|
14
|
-
import
|
|
14
|
+
import dayjs from 'dayjs';
|
|
15
15
|
import { VmCalendar, VmCalendarInner, VmWrapper } from "../../../_components";
|
|
16
16
|
import useSettings from "../../../_hooks/useSettings";
|
|
17
17
|
import { BaseService, CalendarService } from "../../api";
|
|
@@ -26,7 +26,7 @@ var Charts = function Charts(_ref) {
|
|
|
26
26
|
var _useSettings = useSettings(),
|
|
27
27
|
isDark = _useSettings.isDark;
|
|
28
28
|
var _useSetState = useSetState({
|
|
29
|
-
date:
|
|
29
|
+
date: dayjs(),
|
|
30
30
|
data: []
|
|
31
31
|
}),
|
|
32
32
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
@@ -45,7 +45,7 @@ var Charts = function Charts(_ref) {
|
|
|
45
45
|
return ele.date === value.format('YYYY-MM-DD');
|
|
46
46
|
})) || {}; // carNums、netWeight
|
|
47
47
|
var obj2 = (data2 === null || data2 === void 0 || (_data2$filter = data2.filter(function (ele) {
|
|
48
|
-
return !
|
|
48
|
+
return !dayjs(ele.date).isAfter(dayjs(), 'day');
|
|
49
49
|
}) // 筛选出当前日期之前的数据
|
|
50
50
|
) === null || _data2$filter === void 0 ? void 0 : _data2$filter.find(function (ele) {
|
|
51
51
|
return ele.date === value.format('YYYY-MM-DD');
|
|
@@ -102,7 +102,7 @@ var Charts = function Charts(_ref) {
|
|
|
102
102
|
});
|
|
103
103
|
},
|
|
104
104
|
disabledDate: function disabledDate(current) {
|
|
105
|
-
return current && current >
|
|
105
|
+
return current && current > dayjs().endOf('M');
|
|
106
106
|
},
|
|
107
107
|
contentStyle: {
|
|
108
108
|
marginBottom: 16,
|
|
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
16
16
|
|
|
17
17
|
import { useSetState } from 'ahooks';
|
|
18
18
|
import { Col, Row } from 'antd';
|
|
19
|
-
import
|
|
19
|
+
import dayjs from 'dayjs';
|
|
20
20
|
import { VmFactor, VmProgress, VmWrapper } from "../../../_components";
|
|
21
21
|
import useSettings from "../../../_hooks/useSettings";
|
|
22
22
|
import { CommonService } from "../../../_service";
|
|
@@ -41,8 +41,8 @@ var Metering = function Metering(props) {
|
|
|
41
41
|
sDate = _useSettings.startDate,
|
|
42
42
|
eDate = _useSettings.endDate;
|
|
43
43
|
var _useSetState = useSetState({
|
|
44
|
-
startDate: sDate ? sDate :
|
|
45
|
-
endDate: eDate ? eDate :
|
|
44
|
+
startDate: sDate ? sDate : dayjs().subtract(30, 'days').format('YYYY-MM-DD'),
|
|
45
|
+
endDate: eDate ? eDate : dayjs().format('YYYY-MM-DD'),
|
|
46
46
|
tabKey: '1'
|
|
47
47
|
}),
|
|
48
48
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
@@ -64,8 +64,8 @@ var Metering = function Metering(props) {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
var disabledDate = function disabledDate(current) {
|
|
67
|
-
var sdate =
|
|
68
|
-
var eDate =
|
|
67
|
+
var sdate = dayjs(startDate);
|
|
68
|
+
var eDate = dayjs(endDate);
|
|
69
69
|
var tooLate = sdate && current.diff(sdate, 'month') > 2;
|
|
70
70
|
var tooEarly = eDate && eDate.diff(current, 'month') > 2;
|
|
71
71
|
return !!tooEarly || !!tooLate;
|
|
@@ -85,12 +85,12 @@ var Metering = function Metering(props) {
|
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
87
|
needChange: true,
|
|
88
|
-
dateValue: [
|
|
88
|
+
dateValue: [dayjs(startDate), dayjs(endDate)],
|
|
89
89
|
disabledDate: disabledDate,
|
|
90
90
|
filterType: "rangePicker",
|
|
91
|
-
defaultValue: [
|
|
91
|
+
defaultValue: [dayjs().subtract(1, 'M'), dayjs()],
|
|
92
92
|
filterChange: function filterChange(dates) {
|
|
93
|
-
return dates && handleDateChange(
|
|
93
|
+
return dates && handleDateChange(dayjs(dates[0]).format('YYYY-MM-DD'), dayjs(dates[1]).format('YYYY-MM-DD'));
|
|
94
94
|
},
|
|
95
95
|
children: [tabKey === 'chart' && /*#__PURE__*/_jsxs("div", {
|
|
96
96
|
className: "metering-content-main",
|
|
@@ -7,7 +7,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
7
7
|
import { useSetState } from 'ahooks';
|
|
8
8
|
import * as echarts from 'echarts';
|
|
9
9
|
import ReactEcharts from 'echarts-for-react';
|
|
10
|
-
import
|
|
10
|
+
import dayjs from 'dayjs';
|
|
11
11
|
import { useEffect } from 'react';
|
|
12
12
|
import { VmEmpty, VmFilter } from "../../../_components";
|
|
13
13
|
import useSettings from "../../../_hooks/useSettings";
|
|
@@ -37,7 +37,7 @@ function Jczbqs(props) {
|
|
|
37
37
|
value: realtimeRes === null || realtimeRes === void 0 || (_realtimeRes$ = realtimeRes[0]) === null || _realtimeRes$ === void 0 ? void 0 : _realtimeRes$.monitorItemCode
|
|
38
38
|
});
|
|
39
39
|
}, [realtimeRes]);
|
|
40
|
-
var _BaseService$useJczbq = BaseService.useJczbqsfx(value, deviceId,
|
|
40
|
+
var _BaseService$useJczbq = BaseService.useJczbqsfx(value, deviceId, dayjs(startDate).format('YYYY-MM-DD 00:00:00'), dayjs(endDate).format('YYYY-MM-DD 23:59:59')),
|
|
41
41
|
timeSumData = _BaseService$useJczbq.timeSumData;
|
|
42
42
|
var option = {
|
|
43
43
|
color: ['#1890FF'],
|
|
@@ -13,7 +13,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
13
13
|
/**
|
|
14
14
|
* 计量-工况信息
|
|
15
15
|
*/
|
|
16
|
-
import
|
|
16
|
+
import dayjs from 'dayjs';
|
|
17
17
|
import { VmTable } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
19
19
|
import { BaseService } from "../../api";
|
|
@@ -30,7 +30,7 @@ var WorkCondition = function WorkCondition(props) {
|
|
|
30
30
|
realtimeRes = _BaseService$useRealt.realtimeRes;
|
|
31
31
|
var _BaseService$useJczbq = BaseService.useJczbqsfx(realtimeRes === null || realtimeRes === void 0 || (_realtimeRes$map = realtimeRes.map(function (ele) {
|
|
32
32
|
return ele.monitorItemCode;
|
|
33
|
-
})) === null || _realtimeRes$map === void 0 ? void 0 : _realtimeRes$map.join(','), deviceId,
|
|
33
|
+
})) === null || _realtimeRes$map === void 0 ? void 0 : _realtimeRes$map.join(','), deviceId, dayjs(startDate).format('YYYY-MM-DD 00:00:00'), dayjs(endDate).format('YYYY-MM-DD 23:59:59')),
|
|
34
34
|
timeSumData = _BaseService$useJczbq.timeSumData;
|
|
35
35
|
var data = [];
|
|
36
36
|
if (!(timeSumData !== null && timeSumData !== void 0 && timeSumData.names) || (timeSumData === null || timeSumData === void 0 || (_timeSumData$names = timeSumData.names) === null || _timeSumData$names === void 0 ? void 0 : _timeSumData$names.length) < 1) {
|
|
@@ -63,7 +63,7 @@ var WorkCondition = function WorkCondition(props) {
|
|
|
63
63
|
dataIndex: 'time',
|
|
64
64
|
key: 'time',
|
|
65
65
|
sorter: function sorter(a, b) {
|
|
66
|
-
return
|
|
66
|
+
return dayjs(a.time).valueOf() - dayjs(b.time).valueOf();
|
|
67
67
|
},
|
|
68
68
|
render: function render(text) {
|
|
69
69
|
return text || '-';
|
|
@@ -9,7 +9,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
9
9
|
*/
|
|
10
10
|
import { useSetState } from 'ahooks';
|
|
11
11
|
import { Space, Tabs } from 'antd';
|
|
12
|
-
import
|
|
12
|
+
import dayjs from 'dayjs';
|
|
13
13
|
import { useEffect, useState } from 'react';
|
|
14
14
|
import { VmFilter, VmWrapper } from "../../../_components";
|
|
15
15
|
import useSettings from "../../../_hooks/useSettings";
|
|
@@ -30,8 +30,8 @@ var WorkCondition = function WorkCondition(props) {
|
|
|
30
30
|
isDark = _useSettings.isDark;
|
|
31
31
|
var code = props.code;
|
|
32
32
|
var _useSetState = useSetState({
|
|
33
|
-
startDate:
|
|
34
|
-
endDate:
|
|
33
|
+
startDate: dayjs().subtract(3, 'days'),
|
|
34
|
+
endDate: dayjs(),
|
|
35
35
|
tabKey: 'chart'
|
|
36
36
|
}),
|
|
37
37
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
@@ -97,12 +97,12 @@ var WorkCondition = function WorkCondition(props) {
|
|
|
97
97
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
98
98
|
allowClear: false
|
|
99
99
|
}), /*#__PURE__*/_jsx(VmFilter.VMRangePicker, {
|
|
100
|
-
value: [
|
|
100
|
+
value: [dayjs(startDate), dayjs(endDate)],
|
|
101
101
|
disabledDate: disabledDate,
|
|
102
102
|
onChange: function onChange(dates) {
|
|
103
103
|
return dates && setState({
|
|
104
|
-
startDate:
|
|
105
|
-
endDate:
|
|
104
|
+
startDate: dayjs(dates[0]),
|
|
105
|
+
endDate: dayjs(dates[1])
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
})]
|
|
@@ -156,8 +156,8 @@ var WorkCondition = function WorkCondition(props) {
|
|
|
156
156
|
}), tabKey === 'list' && /*#__PURE__*/_jsx("div", {
|
|
157
157
|
className: "df-condition-table",
|
|
158
158
|
children: /*#__PURE__*/_jsx(Table, {
|
|
159
|
-
startDate:
|
|
160
|
-
endDate:
|
|
159
|
+
startDate: dayjs(startDate).format('YYYY-MM-DD 00:00:00'),
|
|
160
|
+
endDate: dayjs(endDate).format('YYYY-MM-DD 00:00:00'),
|
|
161
161
|
deviceId: deviceId
|
|
162
162
|
})
|
|
163
163
|
})]
|
|
@@ -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", {
|