@vtx/modals2 5.0.3 → 5.0.4
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/index.js +4 -3
- package/lib/_components/vm-bar-charts/index.js +1 -1
- package/lib/_components/vm-calendar/style/index.less +4 -7
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-factor/index.js +10 -5
- package/lib/_components/vm-factor/style/index.less +5 -1
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-filter/style/index.less +2 -1
- package/lib/_components/vm-info-collection/index.js +2 -2
- package/lib/_components/vm-line-charts/index.js +1 -1
- package/lib/_components/vm-map/index.js +5 -5
- package/lib/_components/vm-pie-charts/index.js +7 -5
- package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
- package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
- package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
- package/lib/_components/vm-repair-maintain/RmType.js +32 -0
- package/lib/_components/vm-repair-maintain/api.js +92 -0
- package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
- package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
- package/lib/_components/vm-repair-maintain/index.js +56 -0
- package/lib/_components/vm-repair-maintain/style/index.js +1 -0
- package/lib/_components/vm-repair-maintain/style/index.less +25 -0
- package/lib/_components/vm-table/index.js +7 -4
- package/lib/_components/vm-table/style/index.less +3 -2
- package/lib/_components/vm-tag/style/index.less +9 -0
- package/lib/_components/vm-title/index.js +3 -2
- package/lib/_components/vm-wrapper/index.js +32 -10
- package/lib/_components/vm-wrapper/style/index.less +28 -0
- package/lib/index.js +7 -2
- package/lib/style/index.less +2 -6
- package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-base-modal/index.js +5 -2
- package/lib/vtx-car-modal/api.js +4 -3
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
- package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +5 -1
- package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +7 -6
- package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +20 -12
- package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
- package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
- package/lib/vtx-car-modal/index.js +16 -2
- package/lib/vtx-cc-cp-modal/api.js +381 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
- package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
- package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
- package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
- package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
- package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
- package/lib/vtx-cc-cp-modal/components/index.js +7 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
- package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
- package/lib/vtx-cc-cp-modal/index.js +119 -0
- package/lib/vtx-cc-cp-modal/style/index.js +1 -0
- package/lib/vtx-cc-cp-modal/style/index.less +13 -0
- package/lib/vtx-cc-unit-modal/api.js +361 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
- package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
- package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
- package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
- package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
- package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
- package/lib/vtx-cc-unit-modal/components/index.js +7 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
- package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
- package/lib/vtx-cc-unit-modal/index.js +137 -0
- package/lib/vtx-cc-unit-modal/style/index.js +1 -0
- package/lib/vtx-cc-unit-modal/style/index.less +14 -0
- package/lib/vtx-cp-modal/api.js +3 -3
- package/lib/vtx-cp-modal/index.js +4 -1
- package/lib/vtx-default-modal/index.js +10 -7
- package/lib/vtx-device-modal/api.js +531 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
- package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +611 -0
- package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
- package/lib/vtx-device-modal/components/index.js +3 -0
- package/lib/vtx-device-modal/config.js +21 -0
- package/lib/vtx-device-modal/imgs/current.png +0 -0
- package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
- package/lib/vtx-device-modal/imgs/history.png +0 -0
- package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
- package/lib/vtx-device-modal/index.js +96 -0
- package/lib/vtx-device-modal/style/index.js +1 -0
- package/lib/vtx-device-modal/style/index.less +1 -0
- package/lib/vtx-df-modal/index.js +11 -9
- package/lib/vtx-kh-modal/api2.js +178 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
- package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
- package/lib/vtx-kh-modal/components/Record/index.js +204 -0
- package/lib/vtx-kh-modal/components/Record/index.less +7 -0
- package/lib/vtx-kh-modal/components/index.js +3 -0
- package/lib/vtx-kh-modal/imgs/count.png +0 -0
- package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
- package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/score.png +0 -0
- package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
- package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
- package/lib/vtx-kh-modal/index.js +46 -0
- package/lib/vtx-kh-modal/style/index.js +4 -0
- package/lib/vtx-kh-modal/style/index.less +1 -0
- package/lib/vtx-restaurant-modal/api.js +297 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
- package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
- package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
- package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
- package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
- package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
- package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
- package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
- package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
- package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
- package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
- package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
- package/lib/vtx-restaurant-modal/components/index.js +7 -0
- package/lib/vtx-restaurant-modal/config.js +283 -0
- package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
- package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
- package/lib/vtx-restaurant-modal/index.js +168 -0
- package/lib/vtx-restaurant-modal/style/index.js +1 -0
- package/lib/vtx-restaurant-modal/style/index.less +13 -0
- package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
- package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
- package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +6 -2
- package/lib/vtx-tfd-modal/api.js +22 -27
- package/lib/vtx-tfd-modal/components/BaseInfo/index.js +107 -59
- package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
- package/lib/vtx-zg-modal/api.js +107 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.js +287 -0
- package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
- package/lib/vtx-zg-modal/components/index.js +1 -0
- package/lib/vtx-zg-modal/imgs/dot.png +0 -0
- package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
- package/lib/vtx-zg-modal/index.js +42 -0
- package/lib/vtx-zg-modal/style/index.js +3 -0
- package/lib/vtx-zg-modal/style/index.less +1 -0
- package/lib/vtx-zzz-modal/index.js +10 -10
- package/package.json +1 -1
- package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as echarts from 'echarts';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { useContext } from 'react';
|
|
4
|
+
import { VmEmpty, VmLineCharts } from "../../../_components";
|
|
5
|
+
import { BasicService } from "../../api";
|
|
6
|
+
import { CcCpContext } from "../../index";
|
|
7
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
|
+
var Ljcsl = function Ljcsl(_ref) {
|
|
9
|
+
var startDay = _ref.startDay,
|
|
10
|
+
endDay = _ref.endDay;
|
|
11
|
+
var _useContext = useContext(CcCpContext),
|
|
12
|
+
id = _useContext.id;
|
|
13
|
+
var data = BasicService.useGetSyPointCollectLine(id, startDay, endDay);
|
|
14
|
+
var names = _.map(data, 'labelName');
|
|
15
|
+
var values = _.map(data, 'labelValue');
|
|
16
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
17
|
+
children: (values === null || values === void 0 ? void 0 : values.length) > 0 ? /*#__PURE__*/_jsx(VmLineCharts, {
|
|
18
|
+
dataList: [{
|
|
19
|
+
name: '垃圾产生量',
|
|
20
|
+
data: (values === null || values === void 0 ? void 0 : values.length) > 0 ? values : [],
|
|
21
|
+
color: '#0FB964',
|
|
22
|
+
smooth: true,
|
|
23
|
+
symbol: 'none',
|
|
24
|
+
areaStyle: {
|
|
25
|
+
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
26
|
+
offset: 0,
|
|
27
|
+
color: 'rgba(15, 185, 100, 0.30)'
|
|
28
|
+
},
|
|
29
|
+
// 半透明
|
|
30
|
+
{
|
|
31
|
+
offset: 1,
|
|
32
|
+
color: 'rgba(15, 185, 100, 0)'
|
|
33
|
+
} // 更透明
|
|
34
|
+
])
|
|
35
|
+
}
|
|
36
|
+
}],
|
|
37
|
+
xAxis: names,
|
|
38
|
+
unit: '%',
|
|
39
|
+
showLegend: true,
|
|
40
|
+
gridOption: {
|
|
41
|
+
top: 30
|
|
42
|
+
}
|
|
43
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {})
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export default Ljcsl;
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { Col, Row } from 'antd';
|
|
8
|
+
import { useContext } from 'react';
|
|
9
|
+
import { VmFactor } from "../../../_components";
|
|
10
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
11
|
+
import { BasicService } from "../../api";
|
|
12
|
+
import { CcCpContext } from "../../index";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
var SummaryInfo = function SummaryInfo(_ref) {
|
|
15
|
+
var startDay = _ref.startDay,
|
|
16
|
+
endDay = _ref.endDay;
|
|
17
|
+
var _useSettings = useSettings(),
|
|
18
|
+
isDark = _useSettings.isDark;
|
|
19
|
+
var _useContext = useContext(CcCpContext),
|
|
20
|
+
id = _useContext.id;
|
|
21
|
+
var data = BasicService.useGetSyPointDaysSummary(id, startDay, endDay);
|
|
22
|
+
var factorData = [{
|
|
23
|
+
name: '总实收次数',
|
|
24
|
+
unit: '次',
|
|
25
|
+
value: data === null || data === void 0 ? void 0 : data.collectTimes,
|
|
26
|
+
img: require("../../imgs/zsscs".concat(isDark ? '_dark' : '', ".png")),
|
|
27
|
+
fontType: 'blue'
|
|
28
|
+
}, {
|
|
29
|
+
name: '总收集桶数',
|
|
30
|
+
unit: '桶',
|
|
31
|
+
value: data === null || data === void 0 ? void 0 : data.actCollectNum,
|
|
32
|
+
img: require("../../imgs/zsjts".concat(isDark ? '_dark' : '', ".png")),
|
|
33
|
+
fontType: 'blue'
|
|
34
|
+
}, {
|
|
35
|
+
name: '总收集重量',
|
|
36
|
+
unit: 'kg',
|
|
37
|
+
value: data === null || data === void 0 ? void 0 : data.collectWeight,
|
|
38
|
+
img: require("../../imgs/zsjzl".concat(isDark ? '_dark' : '', ".png")),
|
|
39
|
+
fontType: 'blue'
|
|
40
|
+
}, {
|
|
41
|
+
name: '任务内实收/应收次数',
|
|
42
|
+
unit: '次',
|
|
43
|
+
value: [{
|
|
44
|
+
value: data === null || data === void 0 ? void 0 : data.taskCollectTimes,
|
|
45
|
+
unit: '次'
|
|
46
|
+
}, {
|
|
47
|
+
value: (data === null || data === void 0 ? void 0 : data.taskShouldCollectTimes) || 0,
|
|
48
|
+
unit: '次'
|
|
49
|
+
}],
|
|
50
|
+
img: require("../../imgs/rwnsscs".concat(isDark ? '_dark' : '', ".png")),
|
|
51
|
+
fontType: 'green'
|
|
52
|
+
}, {
|
|
53
|
+
name: '任务内收集桶数',
|
|
54
|
+
unit: '桶',
|
|
55
|
+
value: data === null || data === void 0 ? void 0 : data.taskCollectNum,
|
|
56
|
+
img: require("../../imgs/rwnsjts".concat(isDark ? '_dark' : '', ".png")),
|
|
57
|
+
fontType: 'green'
|
|
58
|
+
}, {
|
|
59
|
+
name: '任务内收集重量',
|
|
60
|
+
unit: 'kg',
|
|
61
|
+
value: data === null || data === void 0 ? void 0 : data.taskCollectWeight,
|
|
62
|
+
img: require("../../imgs/rwnsjzl".concat(isDark ? '_dark' : '', ".png")),
|
|
63
|
+
fontType: 'green'
|
|
64
|
+
}];
|
|
65
|
+
return /*#__PURE__*/_jsx(Row, {
|
|
66
|
+
gutter: [0, 27],
|
|
67
|
+
align: 'middle',
|
|
68
|
+
style: {
|
|
69
|
+
height: '100%'
|
|
70
|
+
},
|
|
71
|
+
children: factorData.map(function (item) {
|
|
72
|
+
return /*#__PURE__*/_jsx(Col, {
|
|
73
|
+
span: 8,
|
|
74
|
+
children: /*#__PURE__*/_jsx(VmFactor, _objectSpread(_objectSpread({}, item), {}, {
|
|
75
|
+
type: 'sm'
|
|
76
|
+
}))
|
|
77
|
+
}, item.name);
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
export default SummaryInfo;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
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."); }
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
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; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useSetState } from 'ahooks';
|
|
8
|
+
import { Col, Row } from 'antd';
|
|
9
|
+
import dayjs from 'dayjs';
|
|
10
|
+
import { VmWrapper } from "../../../_components";
|
|
11
|
+
import SyRecord from "../BaseInfo/SyRecord";
|
|
12
|
+
import Ljcsl from "./Ljcsl";
|
|
13
|
+
import SummaryInfo from "./SummaryInfo";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var SyInfo = function SyInfo() {
|
|
16
|
+
var _useSetState = useSetState({
|
|
17
|
+
startDate: dayjs().subtract(1, 'week'),
|
|
18
|
+
endDate: dayjs()
|
|
19
|
+
}),
|
|
20
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
21
|
+
date = _useSetState2[0],
|
|
22
|
+
setDate = _useSetState2[1];
|
|
23
|
+
var formatStartDate = dayjs(date.startDate).format('YYYY-MM-DD');
|
|
24
|
+
var formatEndDate = dayjs(date.endDate).format('YYYY-MM-DD');
|
|
25
|
+
var filterChange = function filterChange(dateValue) {
|
|
26
|
+
setDate({
|
|
27
|
+
startDate: dateValue[0],
|
|
28
|
+
endDate: dateValue[1]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/_jsxs(Row, {
|
|
32
|
+
gutter: [16, 16],
|
|
33
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
34
|
+
span: 24,
|
|
35
|
+
style: {
|
|
36
|
+
height: 292
|
|
37
|
+
},
|
|
38
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
39
|
+
title: '作业汇总分析',
|
|
40
|
+
filterType: "rangePicker",
|
|
41
|
+
dateValue: [date.startDate, date.endDate],
|
|
42
|
+
filterChange: filterChange,
|
|
43
|
+
disabledDate: function disabledDate(current) {
|
|
44
|
+
return current && current > dayjs().endOf('day');
|
|
45
|
+
},
|
|
46
|
+
children: /*#__PURE__*/_jsxs(Row, {
|
|
47
|
+
style: {
|
|
48
|
+
height: '100%'
|
|
49
|
+
},
|
|
50
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
51
|
+
span: 12,
|
|
52
|
+
children: /*#__PURE__*/_jsx(SummaryInfo, {
|
|
53
|
+
startDay: formatStartDate,
|
|
54
|
+
endDay: formatEndDate
|
|
55
|
+
})
|
|
56
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
57
|
+
span: 12,
|
|
58
|
+
children: /*#__PURE__*/_jsx(Ljcsl, {
|
|
59
|
+
startDay: formatStartDate,
|
|
60
|
+
endDay: formatEndDate
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
66
|
+
span: 24,
|
|
67
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
68
|
+
title: "\u6536\u8FD0\u8BB0\u5F55",
|
|
69
|
+
children: /*#__PURE__*/_jsx(SyRecord, {
|
|
70
|
+
startTime: dayjs(date.startDate).format('YYYY-MM-DD'),
|
|
71
|
+
endTime: dayjs(date.endDate).format('YYYY-MM-DD'),
|
|
72
|
+
pagination: true
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
})]
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
export default SyInfo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AlarmInfo from "./AlarmInfo";
|
|
2
|
+
import BaseInfo from "./BaseInfo";
|
|
3
|
+
import Calendar from "./Calendar";
|
|
4
|
+
import ExceptionInfo from "./ExceptionInfo";
|
|
5
|
+
import Restaurant from "./Restaurant";
|
|
6
|
+
import SyInfo from "./SyInfo";
|
|
7
|
+
export { AlarmInfo, BaseInfo, Calendar, ExceptionInfo, Restaurant, SyInfo };
|
|
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,119 @@
|
|
|
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 { useMemoizedFn } from 'ahooks';
|
|
14
|
+
import React, { useMemo, useState } from 'react';
|
|
15
|
+
import useGetConfig from "../_hooks/useGetConfig";
|
|
16
|
+
import VtxBaseModal from "../vtx-base-modal";
|
|
17
|
+
import VtxCarModal from "../vtx-car-modal";
|
|
18
|
+
import VtxRestaurantModal from "../vtx-restaurant-modal";
|
|
19
|
+
import { AlarmInfo, BaseInfo, Calendar, ExceptionInfo, Restaurant, SyInfo } from "./components";
|
|
20
|
+
import "./style";
|
|
21
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
var TABS_BASE = 'cc-cp-base';
|
|
23
|
+
var TABS_SY = 'cc-cp-sy';
|
|
24
|
+
var TABS_CALENDAR = 'cc-cp-calendar';
|
|
25
|
+
var TABS_RESTAURANT = 'cc-cp-restaurant';
|
|
26
|
+
var TABS_WARNNING = 'cc-cp-warning';
|
|
27
|
+
var TABS_EXECEPTION = 'cc-cp-exeception';
|
|
28
|
+
export var CcCpContext = /*#__PURE__*/React.createContext({
|
|
29
|
+
id: ''
|
|
30
|
+
});
|
|
31
|
+
var Provider = CcCpContext.Provider;
|
|
32
|
+
var VtxCcCpModal = function VtxCcCpModal(props) {
|
|
33
|
+
var id = props.id,
|
|
34
|
+
_props$visible = props.visible,
|
|
35
|
+
visible = _props$visible === void 0 ? false : _props$visible,
|
|
36
|
+
onCancel = props.onCancel,
|
|
37
|
+
_props$theme = props.theme,
|
|
38
|
+
theme = _props$theme === void 0 ? 'light' : _props$theme,
|
|
39
|
+
title = props.title,
|
|
40
|
+
_props$showOrder = props.showOrder,
|
|
41
|
+
showOrder = _props$showOrder === void 0 ? false : _props$showOrder,
|
|
42
|
+
_props$tabChose = props.tabChose,
|
|
43
|
+
tabChose = _props$tabChose === void 0 ? '' : _props$tabChose;
|
|
44
|
+
var _useState = useState({
|
|
45
|
+
visible: false,
|
|
46
|
+
id: '',
|
|
47
|
+
title: ''
|
|
48
|
+
}),
|
|
49
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
50
|
+
restaurantModal = _useState2[0],
|
|
51
|
+
setRestaurantModal = _useState2[1];
|
|
52
|
+
var _useState3 = useState({
|
|
53
|
+
visible: false,
|
|
54
|
+
id: '',
|
|
55
|
+
title: ''
|
|
56
|
+
}),
|
|
57
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
|
+
carModal = _useState4[0],
|
|
59
|
+
setCarModal = _useState4[1];
|
|
60
|
+
var openCar = useMemoizedFn(function (info) {
|
|
61
|
+
setCarModal(_objectSpread({
|
|
62
|
+
visible: true
|
|
63
|
+
}, info));
|
|
64
|
+
});
|
|
65
|
+
var closeCar = useMemoizedFn(function () {
|
|
66
|
+
setCarModal({
|
|
67
|
+
visible: false,
|
|
68
|
+
id: '',
|
|
69
|
+
title: ''
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var openRestaurant = useMemoizedFn(function (info) {
|
|
73
|
+
setRestaurantModal(_objectSpread({
|
|
74
|
+
visible: true
|
|
75
|
+
}, info));
|
|
76
|
+
});
|
|
77
|
+
var closeRestaurantModal = useMemoizedFn(function () {
|
|
78
|
+
setRestaurantModal({
|
|
79
|
+
visible: false,
|
|
80
|
+
id: '',
|
|
81
|
+
title: ''
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
var tabs = [{
|
|
85
|
+
key: TABS_BASE,
|
|
86
|
+
title: '总览信息'
|
|
87
|
+
}];
|
|
88
|
+
var _useGetConfig = useGetConfig('cc-cp', tabs),
|
|
89
|
+
tabsData = _useGetConfig.tabsData;
|
|
90
|
+
var value = useMemo(function () {
|
|
91
|
+
return {
|
|
92
|
+
id: id,
|
|
93
|
+
openCar: openCar,
|
|
94
|
+
openRestaurant: openRestaurant
|
|
95
|
+
};
|
|
96
|
+
}, [id]);
|
|
97
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
98
|
+
children: [/*#__PURE__*/_jsx(Provider, {
|
|
99
|
+
value: value,
|
|
100
|
+
children: /*#__PURE__*/_jsx(VtxBaseModal, {
|
|
101
|
+
title: title,
|
|
102
|
+
theme: theme,
|
|
103
|
+
visible: visible,
|
|
104
|
+
onCancel: onCancel,
|
|
105
|
+
tabs: tabsData,
|
|
106
|
+
tabChose: tabChose,
|
|
107
|
+
contents: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {})), TABS_RESTAURANT, /*#__PURE__*/_jsx(Restaurant, {})), TABS_SY, /*#__PURE__*/_jsx(SyInfo, {})), TABS_WARNNING, /*#__PURE__*/_jsx(AlarmInfo, {})), TABS_EXECEPTION, /*#__PURE__*/_jsx(ExceptionInfo, {})), TABS_CALENDAR, /*#__PURE__*/_jsx(Calendar, {}))
|
|
108
|
+
})
|
|
109
|
+
}), carModal.visible && /*#__PURE__*/_jsx(VtxCarModal, _objectSpread(_objectSpread({}, carModal), {}, {
|
|
110
|
+
theme: theme,
|
|
111
|
+
onCancel: closeCar
|
|
112
|
+
})), restaurantModal.visible && /*#__PURE__*/_jsx(VtxRestaurantModal, _objectSpread(_objectSpread({}, restaurantModal), {}, {
|
|
113
|
+
theme: theme,
|
|
114
|
+
onCancel: closeRestaurantModal,
|
|
115
|
+
showCharts: true
|
|
116
|
+
}))]
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
export default VtxCcCpModal;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index.less";
|