@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
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JzljXncContext } from "../..";
|
|
3
|
+
import { VmFactorList, VmWrapper } from "../../../_components";
|
|
4
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
5
|
+
import { overviewApis } from "../../api";
|
|
6
|
+
import "./index.less";
|
|
7
|
+
import overview_czz_zl_dark from "../../imgs/overview_czz_zl_dark.png";
|
|
8
|
+
import overview_czz_zs_light from "../../imgs/overview_czz_zs_light.png";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
export default function CZZ() {
|
|
11
|
+
var _React$useContext = React.useContext(JzljXncContext),
|
|
12
|
+
id = _React$useContext.id,
|
|
13
|
+
theme = _React$useContext.theme;
|
|
14
|
+
var _useSettings = useSettings(),
|
|
15
|
+
isDark = _useSettings.isDark;
|
|
16
|
+
var _overviewApis$useCzz = overviewApis.useCzz(id),
|
|
17
|
+
data = _overviewApis$useCzz.data;
|
|
18
|
+
var _data$totalCzzCount = data.totalCzzCount,
|
|
19
|
+
totalCzzCount = _data$totalCzzCount === void 0 ? 0 : _data$totalCzzCount,
|
|
20
|
+
_data$sxzCzzCount = data.sxzCzzCount,
|
|
21
|
+
sxzCzzCount = _data$sxzCzzCount === void 0 ? 0 : _data$sxzCzzCount,
|
|
22
|
+
_data$baWeight = data.baWeight,
|
|
23
|
+
baWeight = _data$baWeight === void 0 ? 0 : _data$baWeight,
|
|
24
|
+
_data$yysWeight = data.yysWeight,
|
|
25
|
+
yysWeight = _data$yysWeight === void 0 ? 0 : _data$yysWeight,
|
|
26
|
+
_data$syWeight = data.syWeight,
|
|
27
|
+
syWeight = _data$syWeight === void 0 ? 0 : _data$syWeight;
|
|
28
|
+
var dataList_top = [{
|
|
29
|
+
name: '总数',
|
|
30
|
+
unit: '单',
|
|
31
|
+
value: totalCzzCount,
|
|
32
|
+
img: isDark ? overview_czz_zl_dark : overview_czz_zs_light,
|
|
33
|
+
fontType: 'blue',
|
|
34
|
+
unitStyle: {
|
|
35
|
+
fontSize: 14
|
|
36
|
+
}
|
|
37
|
+
}];
|
|
38
|
+
var dataList_bahz = [{
|
|
39
|
+
name: '备案量',
|
|
40
|
+
unit: '吨',
|
|
41
|
+
value: baWeight,
|
|
42
|
+
unitStyle: {
|
|
43
|
+
fontSize: 14
|
|
44
|
+
},
|
|
45
|
+
style: {
|
|
46
|
+
flex: 1,
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
textAlign: 'center'
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
name: '核准量',
|
|
52
|
+
unit: '吨',
|
|
53
|
+
value: 0,
|
|
54
|
+
unitStyle: {
|
|
55
|
+
fontSize: 14
|
|
56
|
+
},
|
|
57
|
+
style: {
|
|
58
|
+
flex: 1,
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
textAlign: 'center'
|
|
61
|
+
}
|
|
62
|
+
}];
|
|
63
|
+
var dataList_yssy = [{
|
|
64
|
+
name: '已运输量',
|
|
65
|
+
unit: '吨',
|
|
66
|
+
value: yysWeight,
|
|
67
|
+
unitStyle: {
|
|
68
|
+
fontSize: 14
|
|
69
|
+
},
|
|
70
|
+
style: {
|
|
71
|
+
flex: 1,
|
|
72
|
+
justifyContent: 'center',
|
|
73
|
+
textAlign: 'center'
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
name: '剩余量',
|
|
77
|
+
unit: '吨',
|
|
78
|
+
value: syWeight,
|
|
79
|
+
unitStyle: {
|
|
80
|
+
fontSize: 14
|
|
81
|
+
},
|
|
82
|
+
style: {
|
|
83
|
+
flex: 1,
|
|
84
|
+
justifyContent: 'center',
|
|
85
|
+
textAlign: 'center'
|
|
86
|
+
}
|
|
87
|
+
}];
|
|
88
|
+
return /*#__PURE__*/_jsx("div", {
|
|
89
|
+
className: "overview-right-top-left ".concat(theme),
|
|
90
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
91
|
+
title: "\u5904\u7F6E\u8BC1\u4FE1\u606F",
|
|
92
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
93
|
+
className: "overview-right-top-left-czz",
|
|
94
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
95
|
+
className: "overview-right-top-left-czz-top",
|
|
96
|
+
children: /*#__PURE__*/_jsx(VmFactorList, {
|
|
97
|
+
list: dataList_top,
|
|
98
|
+
style: {
|
|
99
|
+
justifyContent: 'center'
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
}), /*#__PURE__*/_jsx(VmFactorList, {
|
|
103
|
+
list: dataList_bahz,
|
|
104
|
+
style: {
|
|
105
|
+
background: 'unset'
|
|
106
|
+
}
|
|
107
|
+
}), /*#__PURE__*/_jsx(VmFactorList, {
|
|
108
|
+
list: dataList_yssy,
|
|
109
|
+
style: {
|
|
110
|
+
background: 'unset'
|
|
111
|
+
}
|
|
112
|
+
})]
|
|
113
|
+
})
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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 React from 'react';
|
|
8
|
+
import { JzljXncContext } from "../..";
|
|
9
|
+
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
+
import { overviewApis } from "../../api";
|
|
11
|
+
import CTL from "./CTL";
|
|
12
|
+
import CTYL from "./CTYL";
|
|
13
|
+
import CZZ from "./CZZ";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
export default function Overview() {
|
|
17
|
+
var _czzData$syWeight;
|
|
18
|
+
var _React$useContext = React.useContext(JzljXncContext),
|
|
19
|
+
id = _React$useContext.id,
|
|
20
|
+
theme = _React$useContext.theme,
|
|
21
|
+
_React$useContext$inf = _React$useContext.info,
|
|
22
|
+
info = _React$useContext$inf === void 0 ? {} : _React$useContext$inf;
|
|
23
|
+
var name = info.name,
|
|
24
|
+
address = info.address,
|
|
25
|
+
facilityClassName = info.facilityClassName,
|
|
26
|
+
divisionName = info.divisionName,
|
|
27
|
+
geometryInfo = info.geometryInfo;
|
|
28
|
+
var _overviewApis$useJcss = overviewApis.useJcssBubble(id),
|
|
29
|
+
jcssBubbleData = _overviewApis$useJcss.jcssBubbleData;
|
|
30
|
+
var infoData = [{
|
|
31
|
+
label: '名称',
|
|
32
|
+
value: name
|
|
33
|
+
}, {
|
|
34
|
+
label: '类别',
|
|
35
|
+
value: facilityClassName
|
|
36
|
+
}, {
|
|
37
|
+
label: '地址',
|
|
38
|
+
value: address
|
|
39
|
+
}, {
|
|
40
|
+
label: '行政区划',
|
|
41
|
+
value: divisionName
|
|
42
|
+
}];
|
|
43
|
+
for (var key in jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight) {
|
|
44
|
+
infoData.push({
|
|
45
|
+
label: key,
|
|
46
|
+
key: key,
|
|
47
|
+
value: jcssBubbleData === null || jcssBubbleData === void 0 ? void 0 : jcssBubbleData.otherWeight[key]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
var _overviewApis$useCzz = overviewApis.useCzz(id),
|
|
51
|
+
czzData = _overviewApis$useCzz.data;
|
|
52
|
+
infoData.push({
|
|
53
|
+
label: '剩余量(吨)',
|
|
54
|
+
key: 'syWeight',
|
|
55
|
+
value: (_czzData$syWeight = czzData === null || czzData === void 0 ? void 0 : czzData.syWeight) !== null && _czzData$syWeight !== void 0 ? _czzData$syWeight : '--'
|
|
56
|
+
});
|
|
57
|
+
var _ref = geometryInfo || {},
|
|
58
|
+
type = _ref.type,
|
|
59
|
+
lngLats = _ref.lngLats;
|
|
60
|
+
var mapProps = {
|
|
61
|
+
geometryType: type,
|
|
62
|
+
address: address
|
|
63
|
+
};
|
|
64
|
+
if (type === 'point' && lngLats) {
|
|
65
|
+
var _lngLats$split, _lngLats$split2;
|
|
66
|
+
mapProps.mapPoints = [{
|
|
67
|
+
id: id,
|
|
68
|
+
lng: lngLats === null || lngLats === void 0 || (_lngLats$split = lngLats.split(',')) === null || _lngLats$split === void 0 ? void 0 : _lngLats$split[0],
|
|
69
|
+
lat: lngLats === null || lngLats === void 0 || (_lngLats$split2 = lngLats.split(',')) === null || _lngLats$split2 === void 0 ? void 0 : _lngLats$split2[1]
|
|
70
|
+
}];
|
|
71
|
+
}
|
|
72
|
+
if (type === 'polygon' && lngLats) {
|
|
73
|
+
mapProps.mapPolygons = [{
|
|
74
|
+
id: id,
|
|
75
|
+
rings: lngLats
|
|
76
|
+
}];
|
|
77
|
+
}
|
|
78
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
79
|
+
className: "overview",
|
|
80
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
81
|
+
className: "overview-left",
|
|
82
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
83
|
+
title: "\u57FA\u672C\u4FE1\u606F",
|
|
84
|
+
children: [/*#__PURE__*/_jsx(VmInfoCollection, {
|
|
85
|
+
width: '100%',
|
|
86
|
+
data: infoData
|
|
87
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
88
|
+
className: "overview-left-map ".concat(theme),
|
|
89
|
+
children: /*#__PURE__*/_jsx(VmMap, _objectSpread({}, mapProps))
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
93
|
+
className: "overview-right",
|
|
94
|
+
children: [/*#__PURE__*/_jsxs("div", {
|
|
95
|
+
className: "overview-right-top",
|
|
96
|
+
children: [/*#__PURE__*/_jsx(CZZ, {}), /*#__PURE__*/_jsx(CTL, {})]
|
|
97
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
98
|
+
className: "overview-right-bottom",
|
|
99
|
+
children: /*#__PURE__*/_jsx(CTYL, {})
|
|
100
|
+
})]
|
|
101
|
+
})]
|
|
102
|
+
});
|
|
103
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
.overview {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 16px;
|
|
6
|
+
|
|
7
|
+
.overview-left {
|
|
8
|
+
width: 30%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
|
|
11
|
+
&-map {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 300px;
|
|
14
|
+
padding-top: 16px;
|
|
15
|
+
margin-top: 8px;
|
|
16
|
+
border-top: 1px solid #e5e8ef;
|
|
17
|
+
|
|
18
|
+
&.blue,
|
|
19
|
+
.dark {
|
|
20
|
+
border-top: 1px solid rgba(47, 172, 255, 0.2);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.overview-right {
|
|
26
|
+
width: 70%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
gap: 16px;
|
|
31
|
+
|
|
32
|
+
&-top {
|
|
33
|
+
display: flex;
|
|
34
|
+
gap: 16px;
|
|
35
|
+
height: 45%;
|
|
36
|
+
|
|
37
|
+
&-left {
|
|
38
|
+
width: 50%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
|
|
41
|
+
&-czz {
|
|
42
|
+
height: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
|
|
47
|
+
&-top {
|
|
48
|
+
.vm-factor-lg-value_normal {
|
|
49
|
+
color: #1677ff;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-right {
|
|
56
|
+
width: 50%;
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-bottom {
|
|
62
|
+
height: 55%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
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
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
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."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
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
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { useSetState } from 'ahooks';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import { VmIframeModal } from "../_components";
|
|
16
|
+
import VmCustom from "../_components/vm-custom";
|
|
17
|
+
import useGetConfig from "../_hooks/useGetConfig";
|
|
18
|
+
import VtxBaseModal from "../vtx-base-modal";
|
|
19
|
+
import { overviewApis } from "./api";
|
|
20
|
+
import { Base, Collection, Dispose, Overview } from "./components";
|
|
21
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
export var JzljXncContext = /*#__PURE__*/React.createContext({
|
|
23
|
+
id: ''
|
|
24
|
+
});
|
|
25
|
+
var Provider = JzljXncContext.Provider;
|
|
26
|
+
export default function VtxJzljXncModal(props) {
|
|
27
|
+
var id = props.id,
|
|
28
|
+
_props$visible = props.visible,
|
|
29
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
30
|
+
onCancel = props.onCancel,
|
|
31
|
+
_props$theme = props.theme,
|
|
32
|
+
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
33
|
+
title = props.title,
|
|
34
|
+
_props$tabChose = props.tabChose,
|
|
35
|
+
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose;
|
|
36
|
+
var _useSetState = useSetState({
|
|
37
|
+
src: '',
|
|
38
|
+
visible: false,
|
|
39
|
+
title: ''
|
|
40
|
+
}),
|
|
41
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
42
|
+
iframeModalInfo = _useSetState2[0],
|
|
43
|
+
setIframeModalInfo = _useSetState2[1];
|
|
44
|
+
var _overviewApis$useInfo = overviewApis.useInfo(id),
|
|
45
|
+
_overviewApis$useInfo2 = _overviewApis$useInfo.info,
|
|
46
|
+
info = _overviewApis$useInfo2 === void 0 ? {} : _overviewApis$useInfo2;
|
|
47
|
+
var store = {
|
|
48
|
+
theme: theme,
|
|
49
|
+
id: id,
|
|
50
|
+
info: info,
|
|
51
|
+
setIframeModalInfo: setIframeModalInfo
|
|
52
|
+
};
|
|
53
|
+
var tabs_init = [{
|
|
54
|
+
key: 'jzlj-xnc-base',
|
|
55
|
+
title: '总览信息',
|
|
56
|
+
dom: /*#__PURE__*/_jsx(Overview, {})
|
|
57
|
+
}, {
|
|
58
|
+
key: 'jzlj-xnc-jbxx',
|
|
59
|
+
title: '基本信息',
|
|
60
|
+
dom: /*#__PURE__*/_jsx(Base, {})
|
|
61
|
+
}, {
|
|
62
|
+
key: 'jzlj-xnc-dispose',
|
|
63
|
+
title: '处置证信息',
|
|
64
|
+
dom: /*#__PURE__*/_jsx(Dispose, {})
|
|
65
|
+
}, {
|
|
66
|
+
key: 'jzlj-xnc-collection',
|
|
67
|
+
title: '联单信息',
|
|
68
|
+
dom: /*#__PURE__*/_jsx(Collection, {})
|
|
69
|
+
}];
|
|
70
|
+
var tabs = tabs_init.map(function (ele) {
|
|
71
|
+
return {
|
|
72
|
+
key: ele.key,
|
|
73
|
+
title: ele.title
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
var contents = {};
|
|
77
|
+
tabs_init.forEach(function (ele) {
|
|
78
|
+
contents[ele.key] = (ele === null || ele === void 0 ? void 0 : ele.dom) || '';
|
|
79
|
+
});
|
|
80
|
+
var _useGetConfig = useGetConfig('jzlj-xnc', tabs),
|
|
81
|
+
tabsData = _useGetConfig.tabsData;
|
|
82
|
+
// 自定义页签可配置多个,
|
|
83
|
+
if (tabsData !== null && tabsData !== void 0 && tabsData.length) {
|
|
84
|
+
tabsData.forEach(function (ele) {
|
|
85
|
+
if (ele.url) {
|
|
86
|
+
contents[ele.key] = /*#__PURE__*/_jsx(VmCustom, {
|
|
87
|
+
id: id,
|
|
88
|
+
url: ele === null || ele === void 0 ? void 0 : ele.url
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
94
|
+
children: /*#__PURE__*/_jsxs(Provider, {
|
|
95
|
+
value: store,
|
|
96
|
+
children: [/*#__PURE__*/_jsx(VtxBaseModal, {
|
|
97
|
+
title: title,
|
|
98
|
+
theme: theme,
|
|
99
|
+
visible: visible,
|
|
100
|
+
onCancel: onCancel,
|
|
101
|
+
tabs: tabsData,
|
|
102
|
+
tabChose: tabChose,
|
|
103
|
+
contents: contents
|
|
104
|
+
}), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
|
|
105
|
+
theme: theme,
|
|
106
|
+
onCancel: function onCancel() {
|
|
107
|
+
return setIframeModalInfo({
|
|
108
|
+
visible: false
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}))]
|
|
112
|
+
})
|
|
113
|
+
});
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import '../../style/index';
|
|
@@ -7,6 +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 { getVtxToken, request } from '@vtx/utils';
|
|
9
9
|
import { useRequest } from 'ahooks';
|
|
10
|
+
import useSettings from "../_hooks/useSettings";
|
|
10
11
|
var BaseService = {
|
|
11
12
|
useBaseInfo: function useBaseInfo(id) {
|
|
12
13
|
var _useRequest = useRequest(function () {
|
|
@@ -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,13 +35,14 @@ 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: '作业日期',
|
|
42
42
|
dataIndex: 'shiftDate',
|
|
43
43
|
key: 'shiftDate',
|
|
44
|
-
width: 80
|
|
44
|
+
width: 80,
|
|
45
|
+
fixed: 'left'
|
|
45
46
|
}, {
|
|
46
47
|
title: '班次名称',
|
|
47
48
|
dataIndex: 'shiftName',
|
|
@@ -123,7 +124,15 @@ var ListZymx = function ListZymx(props) {
|
|
|
123
124
|
columns: columns,
|
|
124
125
|
rowKey: "id"
|
|
125
126
|
}, tableProps), {}, {
|
|
126
|
-
dataSource:
|
|
127
|
+
dataSource: [{
|
|
128
|
+
shiftDate: '2312313',
|
|
129
|
+
shiftName: 'sdfgdfgd',
|
|
130
|
+
completionRate: 20
|
|
131
|
+
}, {
|
|
132
|
+
shiftDate: '2312313',
|
|
133
|
+
shiftName: 'sdfgdfgd',
|
|
134
|
+
completionRate: 20
|
|
135
|
+
}]
|
|
127
136
|
}));
|
|
128
137
|
};
|
|
129
138
|
export default ListZymx;
|