@vtx/modals2 2.15.64 → 2.15.65

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.
Files changed (141) hide show
  1. package/README.md +33 -33
  2. package/lib/index.js +7 -0
  3. package/lib/index.js.map +1 -1
  4. package/lib/style/index.less +8 -8
  5. package/lib/style/themes/dark.less +128 -128
  6. package/lib/style/themes/default.less +44 -44
  7. package/lib/style/themes/index.less +1 -1
  8. package/lib/vm-alarm-info/Components/index.less +43 -43
  9. package/lib/vm-alarm-info/style/index.less +16 -16
  10. package/lib/vm-alarm-situation/style/index.less +67 -67
  11. package/lib/vm-alarm-situation-pt/style/index.less +65 -65
  12. package/lib/vm-analysis-comparison/style/index.less +12 -12
  13. package/lib/vm-appraisal-info/style/index.less +136 -136
  14. package/lib/vm-base-list/style/index.less +39 -39
  15. package/lib/vm-button/style/index.less +20 -20
  16. package/lib/vm-charts/index.less +30 -30
  17. package/lib/vm-checkbox/style/index.less +25 -25
  18. package/lib/vm-container/style/index.less +30 -30
  19. package/lib/vm-correlation-comparison/style/index.less +13 -13
  20. package/lib/vm-custom/style/index.less +20 -20
  21. package/lib/vm-empty/style/index.less +23 -23
  22. package/lib/vm-iframe-modal/style/index.less +9 -9
  23. package/lib/vm-image-text/style/index.less +32 -32
  24. package/lib/vm-map/style/index.less +3 -3
  25. package/lib/vm-modal-table/style/index.less +23 -23
  26. package/lib/vm-radio/style/index.less +26 -26
  27. package/lib/vm-real-time-monitor/style/index.less +12 -12
  28. package/lib/vm-repair-maintain/style/index.less +115 -115
  29. package/lib/vm-round-content/style/index.less +33 -33
  30. package/lib/vm-select-device/style/index.less +16 -16
  31. package/lib/vm-sub-tabs/style/index.less +179 -179
  32. package/lib/vm-sub-title/style/index.less +69 -69
  33. package/lib/vm-video/index.less +36 -36
  34. package/lib/vtx-area-modal/api.js +421 -0
  35. package/lib/vtx-area-modal/api.js.map +1 -0
  36. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +116 -0
  37. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js.map +1 -0
  38. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +118 -0
  39. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js.map +1 -0
  40. package/lib/vtx-area-modal/components/BaseInfo/TodayWork.js +40 -0
  41. package/lib/vtx-area-modal/components/BaseInfo/TodayWork.js.map +1 -0
  42. package/lib/vtx-area-modal/components/BaseInfo/index.css +314 -0
  43. package/lib/vtx-area-modal/components/BaseInfo/index.js +192 -0
  44. package/lib/vtx-area-modal/components/BaseInfo/index.js.map +1 -0
  45. package/lib/vtx-area-modal/components/BaseInfo/index.less +256 -0
  46. package/lib/vtx-area-modal/components/index.js +14 -0
  47. package/lib/vtx-area-modal/components/index.js.map +1 -0
  48. package/lib/vtx-area-modal/config.js +12 -0
  49. package/lib/vtx-area-modal/config.js.map +1 -0
  50. package/lib/vtx-area-modal/imgs/offlinePeople.png +0 -0
  51. package/lib/vtx-area-modal/imgs/onlinePeople.png +0 -0
  52. package/lib/vtx-area-modal/imgs/rjzx.png +0 -0
  53. package/lib/vtx-area-modal/imgs/rjzx_light.png +0 -0
  54. package/lib/vtx-area-modal/imgs/todayOnline.png +0 -0
  55. package/lib/vtx-area-modal/imgs/todayOnline_light.png +0 -0
  56. package/lib/vtx-area-modal/imgs/todayWork.png +0 -0
  57. package/lib/vtx-area-modal/imgs/todayWork_light.png +0 -0
  58. package/lib/vtx-area-modal/imgs/zzx.png +0 -0
  59. package/lib/vtx-area-modal/index.js +57 -0
  60. package/lib/vtx-area-modal/index.js.map +1 -0
  61. package/lib/vtx-area-modal/style/css.js +5 -0
  62. package/lib/vtx-area-modal/style/css.js.map +1 -0
  63. package/lib/vtx-area-modal/style/index.css +152 -0
  64. package/lib/vtx-area-modal/style/index.js +5 -0
  65. package/lib/vtx-area-modal/style/index.js.map +1 -0
  66. package/lib/vtx-area-modal/style/index.less +1 -0
  67. package/lib/vtx-base-info/style/index.less +69 -69
  68. package/lib/vtx-base-modal/style/index.less +1094 -1094
  69. package/lib/vtx-car-modal/components/AlarmInfo/index.less +40 -40
  70. package/lib/vtx-car-modal/components/BaseInfo/index.less +290 -290
  71. package/lib/vtx-car-modal/components/Collection/index.less +18 -18
  72. package/lib/vtx-car-modal/components/DetailInfo/index.less +21 -21
  73. package/lib/vtx-car-modal/components/Maintenance/index.less +35 -35
  74. package/lib/vtx-car-modal/components/OilConsumption/index.less +39 -39
  75. package/lib/vtx-car-modal/components/StaticInfo/index.less +82 -82
  76. package/lib/vtx-car-modal/components/WaterConsumption/index.less +25 -25
  77. package/lib/vtx-car-modal/components/WorkInfo/index.less +66 -66
  78. package/lib/vtx-car-modal/style/index.less +8 -8
  79. package/lib/vtx-cc-cp-modal/components/OrderInfo/index.less +108 -108
  80. package/lib/vtx-cc-cp-modal/components/SyInfo/index.less +46 -46
  81. package/lib/vtx-cc-cp-modal/style/index.less +1 -1
  82. package/lib/vtx-cc-unit-modal/style/index.less +1 -1
  83. package/lib/vtx-cp-modal/components/AlarmInfo/index.less +109 -109
  84. package/lib/vtx-cp-modal/components/BaseInfo/index.less +156 -156
  85. package/lib/vtx-cp-modal/components/ExeceptionInfo/index.less +109 -109
  86. package/lib/vtx-cp-modal/components/SyInfo/index.less +47 -47
  87. package/lib/vtx-cp-modal/style/index.less +1 -1
  88. package/lib/vtx-default-modal/components/BaseInfo/index.less +38 -38
  89. package/lib/vtx-default-modal/style/index.less +1 -1
  90. package/lib/vtx-df-modal/components/BaseInfo/index.less +173 -173
  91. package/lib/vtx-df-modal/components/Metering/index.less +83 -83
  92. package/lib/vtx-df-modal/components/WorkCondition/index.less +136 -136
  93. package/lib/vtx-df-modal/style/index.less +1 -1
  94. package/lib/vtx-facility-modal/components/OverView/index.less +120 -120
  95. package/lib/vtx-facility-modal/style/index.less +1 -1
  96. package/lib/vtx-housing-estate-modal/components/Alarm/index.less +66 -66
  97. package/lib/vtx-housing-estate-modal/components/OverView/index.less +256 -256
  98. package/lib/vtx-housing-estate-modal/components/SPJK/index.less +6 -6
  99. package/lib/vtx-housing-estate-modal/components/TFRD/index.less +15 -15
  100. package/lib/vtx-housing-estate-modal/components/WGGS/index.less +38 -38
  101. package/lib/vtx-housing-estate-modal/components/WGXW/index.less +102 -102
  102. package/lib/vtx-housing-estate-modal/style/index.less +1 -1
  103. package/lib/vtx-kh-modal/components/BaseInfo/index.less +66 -66
  104. package/lib/vtx-kh-modal/style/index.less +1 -1
  105. package/lib/vtx-pump-modal/components/AlarmRecord/index.less +103 -103
  106. package/lib/vtx-pump-modal/components/Basic/index.less +74 -74
  107. package/lib/vtx-pump-modal/components/Sbxl/index.less +90 -90
  108. package/lib/vtx-pump-modal/components/Sjfx/index.less +60 -60
  109. package/lib/vtx-pump-modal/components/Sxyx/index.less +161 -161
  110. package/lib/vtx-pump-modal/style/index.less +1 -1
  111. package/lib/vtx-restaurant-modal/components/Alarm/index.less +35 -35
  112. package/lib/vtx-restaurant-modal/style/index.less +1 -1
  113. package/lib/vtx-road-modal/components/BaseInfo/index.less +146 -146
  114. package/lib/vtx-road-modal/components/Statistical/index.less +112 -112
  115. package/lib/vtx-road-modal/style/index.less +1 -1
  116. package/lib/vtx-staff-modal/api.js +2 -1
  117. package/lib/vtx-staff-modal/api.js.map +1 -1
  118. package/lib/vtx-staff-modal/components/AlarmInfo/index.less +23 -23
  119. package/lib/vtx-staff-modal/components/Attendance/index.less +44 -44
  120. package/lib/vtx-staff-modal/components/BaseInfo/index.less +225 -225
  121. package/lib/vtx-staff-modal/components/DetailInfo/index.less +38 -38
  122. package/lib/vtx-staff-modal/components/Equipment/index.less +52 -52
  123. package/lib/vtx-staff-modal/components/StaticInfo/index.less +270 -270
  124. package/lib/vtx-throw-point-modal/components/Alarm/index.less +69 -69
  125. package/lib/vtx-throw-point-modal/components/OverView/index.less +331 -331
  126. package/lib/vtx-throw-point-modal/components/SBZJ/index.less +92 -92
  127. package/lib/vtx-throw-point-modal/components/TFRD/index.less +15 -15
  128. package/lib/vtx-throw-point-modal/components/WGGS/index.less +38 -38
  129. package/lib/vtx-throw-point-modal/components/WGXW/index.less +102 -102
  130. package/lib/vtx-throw-point-modal/style/index.less +1 -1
  131. package/lib/vtx-wr-modal/components/AlarmInfo/index.less +106 -106
  132. package/lib/vtx-wr-modal/components/BaseInfo/index.less +142 -142
  133. package/lib/vtx-wr-modal/components/BaseInfoNew/index.less +570 -570
  134. package/lib/vtx-wr-modal/components/BaseInfoNew2/index.less +469 -469
  135. package/lib/vtx-wr-modal/components/Evaluate/index.less +124 -124
  136. package/lib/vtx-wr-modal/components/Monitor/index.less +82 -82
  137. package/lib/vtx-wr-modal/components/Score/index.less +134 -134
  138. package/lib/vtx-wr-modal/style/index.less +1 -1
  139. package/lib/vtx-zg-modal/components/BaseInfo/index.less +97 -97
  140. package/lib/vtx-zg-modal/style/index.less +1 -1
  141. package/package.json +124 -124
@@ -1,69 +1,69 @@
1
- .sub-title {
2
- color: #222;
3
- font-size: 16px;
4
- line-height: 20px;
5
- margin-bottom: 16px;
6
- position: relative;
7
- width: 100%;
8
- &.dark {
9
- font-family: PingFangSC-Semibold, PingFang SC;
10
- font-weight: 800;
11
- font-size: 14px;
12
- background-image: url('../imgs/bg_light.png');
13
- background-repeat: no-repeat;
14
- padding-left: 20px;
15
- background-image: url('../imgs/bg.png');
16
- color: #fff;
17
- }
18
- &.blue {
19
- font-family: PingFangSC-Semibold, PingFang SC;
20
- font-weight: 800;
21
- font-size: 14px;
22
- padding-left: 20px;
23
- color: #fff;
24
- background-repeat: no-repeat;
25
- background-image: url('../imgs/bg_light.png');
26
- }
27
- .extra {
28
- position: absolute;
29
- right: 0;
30
- top: 0;
31
- }
32
- }
33
-
34
- .sub-title2 {
35
- height: 40px;
36
- line-height: 40px;
37
- color: #1f1f1f;
38
- font-size: 16px;
39
- margin-bottom: 16px;
40
- padding: 0 12px;
41
- position: relative;
42
- border-bottom: 1px solid rgba(179, 179, 179, 0.2);
43
- &.dark {
44
- font-family: PingFangSC-Semibold, PingFang SC;
45
- font-weight: 600;
46
- font-size: 14px;
47
- background-image: url('../imgs/bg_light.png');
48
- background-repeat: no-repeat;
49
- padding-left: 20px;
50
- background-image: url('../imgs/bg.png');
51
- color: #fff;
52
- }
53
- &.blue {
54
- font-family: PingFangSC-Semibold, PingFang SC;
55
- font-weight: 600;
56
- font-size: 14px;
57
- line-height: 18px;
58
- background-image: url('../imgs/bg_light.png');
59
- background-repeat: no-repeat;
60
- padding-left: 20px;
61
- background-image: url('../imgs/bg_light.png');
62
- color: #fff;
63
- }
64
- .extra {
65
- position: absolute;
66
- right: 12px;
67
- top: 0;
68
- }
69
- }
1
+ .sub-title {
2
+ color: #222;
3
+ font-size: 16px;
4
+ line-height: 20px;
5
+ margin-bottom: 16px;
6
+ position: relative;
7
+ width: 100%;
8
+ &.dark {
9
+ font-family: PingFangSC-Semibold, PingFang SC;
10
+ font-weight: 800;
11
+ font-size: 14px;
12
+ background-image: url('../imgs/bg_light.png');
13
+ background-repeat: no-repeat;
14
+ padding-left: 20px;
15
+ background-image: url('../imgs/bg.png');
16
+ color: #fff;
17
+ }
18
+ &.blue {
19
+ font-family: PingFangSC-Semibold, PingFang SC;
20
+ font-weight: 800;
21
+ font-size: 14px;
22
+ padding-left: 20px;
23
+ color: #fff;
24
+ background-repeat: no-repeat;
25
+ background-image: url('../imgs/bg_light.png');
26
+ }
27
+ .extra {
28
+ position: absolute;
29
+ right: 0;
30
+ top: 0;
31
+ }
32
+ }
33
+
34
+ .sub-title2 {
35
+ height: 40px;
36
+ line-height: 40px;
37
+ color: #1f1f1f;
38
+ font-size: 16px;
39
+ margin-bottom: 16px;
40
+ padding: 0 12px;
41
+ position: relative;
42
+ border-bottom: 1px solid rgba(179, 179, 179, 0.2);
43
+ &.dark {
44
+ font-family: PingFangSC-Semibold, PingFang SC;
45
+ font-weight: 600;
46
+ font-size: 14px;
47
+ background-image: url('../imgs/bg_light.png');
48
+ background-repeat: no-repeat;
49
+ padding-left: 20px;
50
+ background-image: url('../imgs/bg.png');
51
+ color: #fff;
52
+ }
53
+ &.blue {
54
+ font-family: PingFangSC-Semibold, PingFang SC;
55
+ font-weight: 600;
56
+ font-size: 14px;
57
+ line-height: 18px;
58
+ background-image: url('../imgs/bg_light.png');
59
+ background-repeat: no-repeat;
60
+ padding-left: 20px;
61
+ background-image: url('../imgs/bg_light.png');
62
+ color: #fff;
63
+ }
64
+ .extra {
65
+ position: absolute;
66
+ right: 12px;
67
+ top: 0;
68
+ }
69
+ }
@@ -1,36 +1,36 @@
1
- @import '../style/index';
2
-
3
- .vm-video {
4
- height: 640px;
5
- padding: 0 20px;
6
- background: var(--modal-content-bg);
7
- .ant-tabs-tabpane {
8
- height: 100%;
9
- }
10
- &.blue {
11
- .ant-tabs-tab {
12
- color: #fff;
13
- }
14
- .control-container,
15
- .ant-form-item-no-colon,
16
- .ant-radio-wrapper {
17
- color: #fff;
18
- }
19
- .vtx-live-control .player-grid-container .grid-item-container.active {
20
- box-shadow: 0 0 0 1px #1464a6;
21
- }
22
-
23
- .vtx-bill-player .player-panel .control-container {
24
- border: 1px solid var(--border-color);
25
- }
26
- .vtx-bill-player .player-panel .control-container .header {
27
- border-bottom: 1px solid var(--border-color);
28
- }
29
- .ant-tabs-top > .ant-tabs-nav::before,
30
- .ant-tabs-bottom > .ant-tabs-nav::before,
31
- .ant-tabs-top > div > .ant-tabs-nav::before,
32
- .ant-tabs-bottom > div > .ant-tabs-nav::before {
33
- border-bottom: 1px solid #219fff5d;
34
- }
35
- }
36
- }
1
+ @import '../style/index';
2
+
3
+ .vm-video {
4
+ height: 640px;
5
+ padding: 0 20px;
6
+ background: var(--modal-content-bg);
7
+ .ant-tabs-tabpane {
8
+ height: 100%;
9
+ }
10
+ &.blue {
11
+ .ant-tabs-tab {
12
+ color: #fff;
13
+ }
14
+ .control-container,
15
+ .ant-form-item-no-colon,
16
+ .ant-radio-wrapper {
17
+ color: #fff;
18
+ }
19
+ .vtx-live-control .player-grid-container .grid-item-container.active {
20
+ box-shadow: 0 0 0 1px #1464a6;
21
+ }
22
+
23
+ .vtx-bill-player .player-panel .control-container {
24
+ border: 1px solid var(--border-color);
25
+ }
26
+ .vtx-bill-player .player-panel .control-container .header {
27
+ border-bottom: 1px solid var(--border-color);
28
+ }
29
+ .ant-tabs-top > .ant-tabs-nav::before,
30
+ .ant-tabs-bottom > .ant-tabs-nav::before,
31
+ .ant-tabs-top > div > .ant-tabs-nav::before,
32
+ .ant-tabs-bottom > div > .ant-tabs-nav::before {
33
+ border-bottom: 1px solid #219fff5d;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,421 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EquipmentService = exports.BaseService = exports.AttendanceService = exports.AlarmService = void 0;
7
+ var _utils = require("@vtx/utils");
8
+ var _ahooks = require("ahooks");
9
+ var _config = require("./config");
10
+ var _moment = _interopRequireDefault(require("moment"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ var BaseService = exports.BaseService = {
13
+ useBaseInfo: function useBaseInfo(id, coordType) {
14
+ var _a, _b, _c, _d;
15
+ var _useRequest = (0, _ahooks.useRequest)(function () {
16
+ return _utils.request.get("/cloud/management/workElement/findbyid/".concat(id, ".read"));
17
+ }, {
18
+ ready: !!id,
19
+ refreshDeps: [id]
20
+ }),
21
+ baseInfoRes = _useRequest.data;
22
+ var _useRequest2 = (0, _ahooks.useRequest)(function () {
23
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/attendanceRecord/statisticsByWorkElement', {
24
+ data: {
25
+ workElementId: id,
26
+ needRealtimeInfo: true,
27
+ date: (0, _moment["default"])().format('YYYY-MM-DD'),
28
+ coordType: coordType || 'bd09'
29
+ }
30
+ });
31
+ }, {
32
+ ready: !!id && !!coordType,
33
+ refreshDeps: [id, coordType]
34
+ }),
35
+ numInfo = _useRequest2.data;
36
+ var info = baseInfoRes || {};
37
+ var mapPolygons = ((_a = info === null || info === void 0 ? void 0 : info.paramsDone) === null || _a === void 0 ? void 0 : _a.length) ? [{
38
+ id: 'polygon',
39
+ rings: info === null || info === void 0 ? void 0 : info.paramsDone,
40
+ config: {
41
+ color: 'red',
42
+ lineColor: 'red',
43
+ lineWidth: 1
44
+ }
45
+ }] : [];
46
+ var mapPoints = ((_c = (_b = numInfo === null || numInfo === void 0 ? void 0 : numInfo.data) === null || _b === void 0 ? void 0 : _b.list) === null || _c === void 0 ? void 0 : _c.length) ? numInfo.data.list.map(function (item) {
47
+ return Object.assign(Object.assign({}, item), {
48
+ id: item.staffId,
49
+ canShowLabel: true,
50
+ labelClass: 'vtx-map-carCode',
51
+ lng: item.lngDone,
52
+ lat: item.latDone,
53
+ layerType: 'staff',
54
+ staffName: item.staffName,
55
+ url: item.icon ? "/cloudFile/common/downloadFile?id=".concat(item.icon, "&token=").concat((0, _utils.getVtxToken)('token')) : _config.treeIcons[item.statusCode === 'Normal' ? 'onlinePeople' : 'offlinePeople'],
56
+ config: {
57
+ width: 30,
58
+ height: 30,
59
+ labelContent: item.staffName
60
+ }
61
+ });
62
+ }) : [];
63
+ var baseInfo = [{
64
+ label: '编码',
65
+ key: 'code',
66
+ value: info === null || info === void 0 ? void 0 : info.code
67
+ }, {
68
+ label: '区域类型',
69
+ key: 'workElementTypeName',
70
+ value: info === null || info === void 0 ? void 0 : info.workElementTypeName
71
+ }, {
72
+ label: '所属机构',
73
+ key: 'departmentName',
74
+ value: info === null || info === void 0 ? void 0 : info.departmentName
75
+ }, {
76
+ label: '行政区划',
77
+ key: 'divisionName',
78
+ value: info === null || info === void 0 ? void 0 : info.divisionName
79
+ }];
80
+ return {
81
+ baseInfo: baseInfo,
82
+ numInfo: ((_d = numInfo === null || numInfo === void 0 ? void 0 : numInfo.data) === null || _d === void 0 ? void 0 : _d.realtime) || {},
83
+ mapPolygons: mapPolygons,
84
+ mapPoints: mapPoints
85
+ };
86
+ },
87
+ useDetailInfo: function useDetailInfo(id) {
88
+ var _useRequest3 = (0, _ahooks.useRequest)(function () {
89
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/cleaner/get', {
90
+ data: {
91
+ id: id
92
+ }
93
+ });
94
+ }, {
95
+ ready: !!id,
96
+ refreshDeps: [id]
97
+ }),
98
+ detailInfoRes = _useRequest3.data;
99
+ return {
100
+ detail: (detailInfoRes === null || detailInfoRes === void 0 ? void 0 : detailInfoRes.data) || {}
101
+ };
102
+ },
103
+ useFieldConfig: function useFieldConfig(id) {
104
+ var _a;
105
+ var _useRequest4 = (0, _ahooks.useRequest)(function () {
106
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/staff/dataConfig/list', {
107
+ data: {
108
+ id: id
109
+ }
110
+ });
111
+ }, {
112
+ ready: !!id,
113
+ refreshDeps: [id]
114
+ }),
115
+ configRes = _useRequest4.data;
116
+ return {
117
+ showFields: ((_a = configRes === null || configRes === void 0 ? void 0 : configRes.data) === null || _a === void 0 ? void 0 : _a.filter(function (ele) {
118
+ return ele.addVisible;
119
+ })) || []
120
+ };
121
+ },
122
+ getHistoryContract: function getHistoryContract(id) {
123
+ var _useRequest5 = (0, _ahooks.useRequest)(function () {
124
+ return _utils.request.get('/cloud/jcss-reborn/contract/staffHistoryContract', {
125
+ data: {
126
+ staffId: id
127
+ }
128
+ });
129
+ }, {
130
+ ready: !!id,
131
+ refreshDeps: [id]
132
+ }),
133
+ data = _useRequest5.data;
134
+ return {
135
+ serviceList: data === null || data === void 0 ? void 0 : data.data
136
+ };
137
+ },
138
+ useWorkInfo: function useWorkInfo(id, date) {
139
+ var _useRequest6 = (0, _ahooks.useRequest)(function () {
140
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/attendanceRecord/statisticsByWorkElement', {
141
+ data: {
142
+ workElementId: id,
143
+ date: date
144
+ }
145
+ });
146
+ }, {
147
+ refreshDeps: [id, date]
148
+ }),
149
+ workInfoRes = _useRequest6.data;
150
+ return {
151
+ workInfoRes: (workInfoRes === null || workInfoRes === void 0 ? void 0 : workInfoRes.data) || {}
152
+ };
153
+ },
154
+ // 今日作业
155
+ useTodayWork: function useTodayWork(id, startDate, endDate, page) {
156
+ var _useRequest7 = (0, _ahooks.useRequest)(function () {
157
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/attendanceRecord', {
158
+ data: {
159
+ matchWorkElementId: id,
160
+ startTime: startDate,
161
+ endTime: endDate,
162
+ pageNo: page,
163
+ pageSize: 20
164
+ }
165
+ });
166
+ }, {
167
+ refreshDeps: [id, startDate, endDate, page]
168
+ }),
169
+ todayWorkRes = _useRequest7.data;
170
+ return {
171
+ todayWorkRes: (todayWorkRes === null || todayWorkRes === void 0 ? void 0 : todayWorkRes.data) || []
172
+ };
173
+ },
174
+ // 作业统计
175
+ useWorkStatic: function useWorkStatic(staffId, startDate, endDate) {
176
+ var _useRequest8 = (0, _ahooks.useRequest)(function () {
177
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/kanban/kanbanWorkInfoStatistics', {
178
+ data: {
179
+ staffId: staffId,
180
+ startDate: startDate,
181
+ endDate: endDate
182
+ }
183
+ });
184
+ }, {
185
+ refreshDeps: [staffId, startDate, endDate]
186
+ }),
187
+ workStaticRes = _useRequest8.data;
188
+ return {
189
+ workStaticRes: (workStaticRes === null || workStaticRes === void 0 ? void 0 : workStaticRes.data) || {}
190
+ };
191
+ },
192
+ // 里程分析
193
+ useMileAnalysis: function useMileAnalysis(staffId, startDate, endDate) {
194
+ var _useRequest9 = (0, _ahooks.useRequest)(function () {
195
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/kanban/kanbanWorkMileageAnalysis', {
196
+ data: {
197
+ staffId: staffId,
198
+ startDate: startDate,
199
+ endDate: endDate
200
+ }
201
+ });
202
+ }, {
203
+ refreshDeps: [staffId, startDate, endDate]
204
+ }),
205
+ mileAnalysisRes = _useRequest9.data;
206
+ return {
207
+ mileAnalysisRes: (mileAnalysisRes === null || mileAnalysisRes === void 0 ? void 0 : mileAnalysisRes.data) || {}
208
+ };
209
+ },
210
+ useDailyCarRun: function useDailyCarRun(id, beginTime, endTime) {
211
+ //今日运行
212
+ var _useRequest10 = (0, _ahooks.useRequest)(function () {
213
+ return _utils.request.get('/cloud/gps-reborn/report/dailyCarRun/list', {
214
+ data: {
215
+ carIds: id,
216
+ reportDateStart: beginTime,
217
+ reportDateEnd: endTime
218
+ }
219
+ });
220
+ }, {
221
+ refreshDeps: [id, beginTime, endTime]
222
+ }),
223
+ dailyCarRunRes = _useRequest10.data;
224
+ return {
225
+ dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || []
226
+ };
227
+ },
228
+ statisticsByMonth: function statisticsByMonth(id, month) {
229
+ //日历
230
+ var _useRequest11 = (0, _ahooks.useRequest)(function () {
231
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/attendanceRecord/statisticsByMonth', {
232
+ data: {
233
+ staffId: id,
234
+ month: month
235
+ }
236
+ });
237
+ }, {
238
+ refreshDeps: [id, month]
239
+ }),
240
+ dailyCarRunRes = _useRequest11.data;
241
+ return {
242
+ dailyCarRunRes: (dailyCarRunRes === null || dailyCarRunRes === void 0 ? void 0 : dailyCarRunRes.data) || []
243
+ };
244
+ }
245
+ };
246
+ var AlarmService = exports.AlarmService = {
247
+ // 报警类型
248
+ useAlarmType: function useAlarmType(staffId, startTime, endTime) {
249
+ var _a;
250
+ var _useRequest12 = (0, _ahooks.useRequest)(function () {
251
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/alarmInfo/pageAlarmCount', {
252
+ data: {
253
+ staffId: staffId,
254
+ startTime: startTime,
255
+ endTime: endTime
256
+ }
257
+ });
258
+ }, {
259
+ refreshDeps: [staffId, startTime, endTime]
260
+ }),
261
+ alarmTypeRes = _useRequest12.data;
262
+ return {
263
+ alarmTypeRes: ((_a = alarmTypeRes === null || alarmTypeRes === void 0 ? void 0 : alarmTypeRes.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? alarmTypeRes.data.map(function (ele) {
264
+ return Object.assign({
265
+ name: ele.alarmTypeName,
266
+ value: ele.count,
267
+ label: "".concat(ele.alarmTypeName, "(").concat(ele.count, ")"),
268
+ key: ele.alarmTypeCode || 'all'
269
+ }, ele);
270
+ }) : []
271
+ };
272
+ },
273
+ // 报警类型分析
274
+ useAlarmAnalysis: function useAlarmAnalysis(staffId, startDate, endDate) {
275
+ var _useRequest13 = (0, _ahooks.useRequest)(function () {
276
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/kanban/kanbanAlarmAnalysis', {
277
+ data: {
278
+ staffId: staffId,
279
+ startDate: startDate,
280
+ endDate: endDate
281
+ }
282
+ });
283
+ }, {
284
+ refreshDeps: [staffId, startDate, endDate]
285
+ }),
286
+ alarmAnalysisRes = _useRequest13.data;
287
+ return {
288
+ alarmAnalysisRes: (alarmAnalysisRes === null || alarmAnalysisRes === void 0 ? void 0 : alarmAnalysisRes.data) || {}
289
+ };
290
+ },
291
+ // 报警列表
292
+ useAlarmRecord: function useAlarmRecord(staffId, alarmTypeCode, startTime, endTime, pageNo, sortBy, order) {
293
+ var _useRequest14 = (0, _ahooks.useRequest)(function () {
294
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/alarmInfo/page', {
295
+ data: {
296
+ staffId: staffId,
297
+ alarmTypeCode: alarmTypeCode,
298
+ startTime: startTime,
299
+ endTime: endTime,
300
+ pageNo: pageNo,
301
+ pageSize: 10,
302
+ sortBy: sortBy,
303
+ order: order
304
+ }
305
+ });
306
+ }, {
307
+ refreshDeps: [staffId, alarmTypeCode, startTime, endTime, pageNo, sortBy, order]
308
+ }),
309
+ alarmRecordRes = _useRequest14.data;
310
+ return {
311
+ alarmRecordRes: (alarmRecordRes === null || alarmRecordRes === void 0 ? void 0 : alarmRecordRes.data) || {}
312
+ };
313
+ }
314
+ };
315
+ // 考勤信息
316
+ var AttendanceService = exports.AttendanceService = {
317
+ useTimeAnalysis: function useTimeAnalysis(staffId, startDate, endDate) {
318
+ var _useRequest15 = (0, _ahooks.useRequest)(function () {
319
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/kanban/kanbanAttendanceTimeAnalysis', {
320
+ data: {
321
+ staffId: staffId,
322
+ startDate: startDate,
323
+ endDate: endDate
324
+ }
325
+ });
326
+ }, {
327
+ refreshDeps: [staffId, startDate, endDate]
328
+ }),
329
+ attendTimeAnalysisRes = _useRequest15.data;
330
+ return {
331
+ attendTimeAnalysisRes: (attendTimeAnalysisRes === null || attendTimeAnalysisRes === void 0 ? void 0 : attendTimeAnalysisRes.data) || {}
332
+ };
333
+ },
334
+ useAnalysis: function useAnalysis(staffId, startDate, endDate) {
335
+ var _a;
336
+ var _useRequest16 = (0, _ahooks.useRequest)(function () {
337
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/kanban/kanbanAttendanceAnalysis', {
338
+ data: {
339
+ staffId: staffId,
340
+ startDate: startDate,
341
+ endDate: endDate
342
+ }
343
+ });
344
+ }, {
345
+ refreshDeps: [staffId, startDate, endDate]
346
+ }),
347
+ attendAnalysisRes = _useRequest16.data;
348
+ return {
349
+ attendAnalysisRes: ((_a = attendAnalysisRes === null || attendAnalysisRes === void 0 ? void 0 : attendAnalysisRes.data) === null || _a === void 0 ? void 0 : _a.length) > 0 ? attendAnalysisRes.data.map(function (ele) {
350
+ return Object.assign({
351
+ name: ele.alarmTypeName,
352
+ value: ele.count
353
+ }, ele);
354
+ }) : []
355
+ };
356
+ },
357
+ useAttendRecord: function useAttendRecord(staffId, startTime, endTime, pageNo) {
358
+ var _useRequest17 = (0, _ahooks.useRequest)(function () {
359
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/attendanceRecord', {
360
+ data: {
361
+ staffId: staffId,
362
+ startTime: startTime,
363
+ endTime: endTime,
364
+ pageNo: pageNo,
365
+ pageSize: 10
366
+ }
367
+ });
368
+ }, {
369
+ refreshDeps: [staffId, startTime, endTime, pageNo]
370
+ }),
371
+ attendRecordRes = _useRequest17.data;
372
+ return {
373
+ attendRecordRes: (attendRecordRes === null || attendRecordRes === void 0 ? void 0 : attendRecordRes.data) || {}
374
+ };
375
+ }
376
+ };
377
+ var EquipmentService = exports.EquipmentService = {
378
+ useDevice: function useDevice(staffId) {
379
+ var _useRequest18 = (0, _ahooks.useRequest)(function () {
380
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/device/getByStaffId', {
381
+ data: {
382
+ staffId: staffId
383
+ }
384
+ });
385
+ }, {
386
+ refreshDeps: [staffId]
387
+ }),
388
+ deviceRes = _useRequest18.data;
389
+ var _useRequest19 = (0, _ahooks.useRequest)(function () {
390
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/positionRealtime/getByStaffId', {
391
+ data: {
392
+ staffId: staffId
393
+ }
394
+ });
395
+ }, {
396
+ refreshDeps: [staffId]
397
+ }),
398
+ monitorRes = _useRequest19.data;
399
+ return {
400
+ deviceRes: (deviceRes === null || deviceRes === void 0 ? void 0 : deviceRes.data) || {},
401
+ monitorRes: (monitorRes === null || monitorRes === void 0 ? void 0 : monitorRes.data) || {}
402
+ };
403
+ },
404
+ useDeviceStatus: function useDeviceStatus(id) {
405
+ var _useRequest20 = (0, _ahooks.useRequest)(function () {
406
+ return _utils.request.get('/cloud/zyry-reborn/api/v101/positionRealtime/deviceStatus', {
407
+ data: {
408
+ id: id
409
+ }
410
+ });
411
+ }, {
412
+ ready: !!id,
413
+ refreshDeps: [id]
414
+ }),
415
+ deviceStatusRes = _useRequest20.data;
416
+ return {
417
+ deviceStatusRes: (deviceStatusRes === null || deviceStatusRes === void 0 ? void 0 : deviceStatusRes.data) || '-'
418
+ };
419
+ }
420
+ };
421
+ //# sourceMappingURL=api.js.map