@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.
Files changed (206) hide show
  1. package/lib/_components/index.js +4 -3
  2. package/lib/_components/vm-bar-charts/index.js +1 -1
  3. package/lib/_components/vm-calendar/style/index.less +4 -7
  4. package/lib/_components/vm-card-statistics/index.less +27 -27
  5. package/lib/_components/vm-factor/index.js +10 -5
  6. package/lib/_components/vm-factor/style/index.less +5 -1
  7. package/lib/_components/vm-factor-list/index.less +11 -11
  8. package/lib/_components/vm-filter/style/index.less +2 -1
  9. package/lib/_components/vm-info-collection/index.js +2 -2
  10. package/lib/_components/vm-line-charts/index.js +1 -1
  11. package/lib/_components/vm-map/index.js +5 -5
  12. package/lib/_components/vm-pie-charts/index.js +7 -5
  13. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
  14. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
  15. package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
  16. package/lib/_components/vm-repair-maintain/RmType.js +32 -0
  17. package/lib/_components/vm-repair-maintain/api.js +92 -0
  18. package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
  19. package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
  20. package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
  21. package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
  22. package/lib/_components/vm-repair-maintain/index.js +56 -0
  23. package/lib/_components/vm-repair-maintain/style/index.js +1 -0
  24. package/lib/_components/vm-repair-maintain/style/index.less +25 -0
  25. package/lib/_components/vm-table/index.js +7 -4
  26. package/lib/_components/vm-table/style/index.less +3 -2
  27. package/lib/_components/vm-tag/style/index.less +9 -0
  28. package/lib/_components/vm-title/index.js +3 -2
  29. package/lib/_components/vm-wrapper/index.js +32 -10
  30. package/lib/_components/vm-wrapper/style/index.less +28 -0
  31. package/lib/index.js +7 -2
  32. package/lib/style/index.less +2 -6
  33. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
  34. package/lib/vtx-base-modal/Header/index.less +98 -98
  35. package/lib/vtx-base-modal/Tabs/index.less +31 -31
  36. package/lib/vtx-base-modal/index.js +5 -2
  37. package/lib/vtx-car-modal/api.js +4 -3
  38. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  39. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
  40. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
  41. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
  42. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  43. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
  44. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
  45. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  46. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
  47. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +5 -1
  48. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +7 -6
  49. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +20 -12
  50. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
  51. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
  52. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
  53. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
  54. package/lib/vtx-car-modal/index.js +16 -2
  55. package/lib/vtx-cc-cp-modal/api.js +381 -0
  56. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
  57. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
  58. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
  59. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
  60. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
  61. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
  62. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
  63. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
  64. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
  65. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
  66. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
  67. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
  68. package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
  69. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
  70. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
  71. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
  72. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
  73. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
  74. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
  75. package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
  76. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
  77. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
  78. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
  79. package/lib/vtx-cc-cp-modal/components/index.js +7 -0
  80. package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
  81. package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
  82. package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
  83. package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
  84. package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
  85. package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
  86. package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
  87. package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
  88. package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
  89. package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
  90. package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
  91. package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
  92. package/lib/vtx-cc-cp-modal/index.js +119 -0
  93. package/lib/vtx-cc-cp-modal/style/index.js +1 -0
  94. package/lib/vtx-cc-cp-modal/style/index.less +13 -0
  95. package/lib/vtx-cc-unit-modal/api.js +361 -0
  96. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
  97. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
  98. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
  99. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
  100. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
  101. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
  102. package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
  103. package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
  104. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
  105. package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
  106. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
  107. package/lib/vtx-cc-unit-modal/components/index.js +7 -0
  108. package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
  109. package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
  110. package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
  111. package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
  112. package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
  113. package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
  114. package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
  115. package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
  116. package/lib/vtx-cc-unit-modal/index.js +137 -0
  117. package/lib/vtx-cc-unit-modal/style/index.js +1 -0
  118. package/lib/vtx-cc-unit-modal/style/index.less +14 -0
  119. package/lib/vtx-cp-modal/api.js +3 -3
  120. package/lib/vtx-cp-modal/index.js +4 -1
  121. package/lib/vtx-default-modal/index.js +10 -7
  122. package/lib/vtx-device-modal/api.js +531 -0
  123. package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
  124. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
  125. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +611 -0
  126. package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
  127. package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
  128. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
  129. package/lib/vtx-device-modal/components/index.js +3 -0
  130. package/lib/vtx-device-modal/config.js +21 -0
  131. package/lib/vtx-device-modal/imgs/current.png +0 -0
  132. package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
  133. package/lib/vtx-device-modal/imgs/history.png +0 -0
  134. package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
  135. package/lib/vtx-device-modal/index.js +96 -0
  136. package/lib/vtx-device-modal/style/index.js +1 -0
  137. package/lib/vtx-device-modal/style/index.less +1 -0
  138. package/lib/vtx-df-modal/index.js +11 -9
  139. package/lib/vtx-kh-modal/api2.js +178 -0
  140. package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
  141. package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
  142. package/lib/vtx-kh-modal/components/Record/index.js +204 -0
  143. package/lib/vtx-kh-modal/components/Record/index.less +7 -0
  144. package/lib/vtx-kh-modal/components/index.js +3 -0
  145. package/lib/vtx-kh-modal/imgs/count.png +0 -0
  146. package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
  147. package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
  148. package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
  149. package/lib/vtx-kh-modal/imgs/score.png +0 -0
  150. package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
  151. package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
  152. package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
  153. package/lib/vtx-kh-modal/index.js +46 -0
  154. package/lib/vtx-kh-modal/style/index.js +4 -0
  155. package/lib/vtx-kh-modal/style/index.less +1 -0
  156. package/lib/vtx-restaurant-modal/api.js +297 -0
  157. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
  158. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
  159. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
  160. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
  161. package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
  162. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
  163. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
  164. package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
  165. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
  166. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
  167. package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
  168. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
  169. package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
  170. package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
  171. package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
  172. package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
  173. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
  174. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
  175. package/lib/vtx-restaurant-modal/components/index.js +7 -0
  176. package/lib/vtx-restaurant-modal/config.js +283 -0
  177. package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
  178. package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
  179. package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
  180. package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
  181. package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
  182. package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
  183. package/lib/vtx-restaurant-modal/index.js +168 -0
  184. package/lib/vtx-restaurant-modal/style/index.js +1 -0
  185. package/lib/vtx-restaurant-modal/style/index.less +13 -0
  186. package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
  187. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  188. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
  189. package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
  190. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
  191. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +6 -2
  192. package/lib/vtx-tfd-modal/api.js +22 -27
  193. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +107 -59
  194. package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
  195. package/lib/vtx-zg-modal/api.js +107 -0
  196. package/lib/vtx-zg-modal/components/BaseInfo/index.js +287 -0
  197. package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
  198. package/lib/vtx-zg-modal/components/index.js +1 -0
  199. package/lib/vtx-zg-modal/imgs/dot.png +0 -0
  200. package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
  201. package/lib/vtx-zg-modal/index.js +42 -0
  202. package/lib/vtx-zg-modal/style/index.js +3 -0
  203. package/lib/vtx-zg-modal/style/index.less +1 -0
  204. package/lib/vtx-zzz-modal/index.js +10 -10
  205. package/package.json +1 -1
  206. package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
@@ -0,0 +1,92 @@
1
+ import { request } from '@vtx/utils';
2
+ import { useRequest } from 'ahooks';
3
+ var BaseService = {
4
+ useRepairMaintain: function useRepairMaintain(id, dateValue, endDate) {
5
+ // 汇总
6
+ var _useRequest = useRequest(function () {
7
+ return request.get('/cloud/jcss-reborn/maintainRecord/getMaintainRecordStatisticsByFacilityId', {
8
+ data: {
9
+ facilityId: id,
10
+ dateValue: dateValue
11
+ }
12
+ });
13
+ }, {
14
+ refreshDeps: [id, dateValue]
15
+ }),
16
+ rmSummaryRes = _useRequest.data;
17
+ var rmSummary = (rmSummaryRes === null || rmSummaryRes === void 0 ? void 0 : rmSummaryRes.data) || {};
18
+
19
+ //维保类型
20
+ var _useRequest2 = useRequest(function () {
21
+ return request.get('/cloud/jcss-reborn/maintainRecord/maintainRecordStatisticsByType', {
22
+ data: {
23
+ facilityId: id,
24
+ dateValue: dateValue
25
+ }
26
+ });
27
+ }, {
28
+ refreshDeps: [id, dateValue]
29
+ }),
30
+ rmTypeRes = _useRequest2.data;
31
+ var rmType = [];
32
+ if (Array.isArray(rmTypeRes === null || rmTypeRes === void 0 ? void 0 : rmTypeRes.data)) {
33
+ rmType = rmTypeRes.data.map(function (ele) {
34
+ return {
35
+ name: ele.typeName,
36
+ value: ele.count
37
+ };
38
+ });
39
+ }
40
+
41
+ //月度趋势
42
+ var _useRequest3 = useRequest(function () {
43
+ return request.get('/cloud/jcss-reborn/maintainRecord/maintainRecordStatisticsByMonth', {
44
+ data: {
45
+ facilityId: id,
46
+ startDate: dateValue,
47
+ endDate: endDate
48
+ }
49
+ });
50
+ }, {
51
+ refreshDeps: [id, dateValue, endDate]
52
+ }),
53
+ rmMonthTrendRes = _useRequest3.data,
54
+ loading = _useRequest3.loading;
55
+ var rmMonthTrend = (rmMonthTrendRes === null || rmMonthTrendRes === void 0 ? void 0 : rmMonthTrendRes.data) || {
56
+ legends: [],
57
+ names: [],
58
+ values: []
59
+ };
60
+ return {
61
+ rmSummary: rmSummary,
62
+ rmType: rmType,
63
+ rmMonthTrend: rmMonthTrend,
64
+ loading: loading
65
+ };
66
+ },
67
+ useRmRecord: function useRmRecord(id, applyTimeBegin, applyTimeEnd, page, sort) {
68
+ var _useRequest4 = useRequest(function () {
69
+ return request.get('/cloud/jcss-reborn/maintainRecord/maintainAllPage', {
70
+ data: {
71
+ facilityIds: id,
72
+ applyTimeBegin: applyTimeBegin,
73
+ applyTimeEnd: applyTimeEnd,
74
+ page: page,
75
+ size: 10,
76
+ sort: sort
77
+ }
78
+ });
79
+ }, {
80
+ refreshDeps: [id, applyTimeBegin, applyTimeEnd, page, sort]
81
+ }),
82
+ rmRecordRes = _useRequest4.data;
83
+ var rmRecord = (rmRecordRes === null || rmRecordRes === void 0 ? void 0 : rmRecordRes.data) || {
84
+ total: 0,
85
+ rows: []
86
+ };
87
+ return {
88
+ rmRecord: rmRecord
89
+ };
90
+ }
91
+ };
92
+ export { BaseService };
@@ -0,0 +1,56 @@
1
+ /**
2
+ * 通用-维保信息
3
+ */
4
+
5
+ import { Col, Row } from 'antd';
6
+ import moment from 'moment';
7
+ import { VmWrapper } from "../../_components";
8
+ import { BaseService } from "./api";
9
+ import RmInfoSummary from "./RmInfoSummary";
10
+ import RmMonthTrend from "./RmMonthTrend";
11
+ import RmRecord from "./RmRecord";
12
+ import RmType from "./RmType";
13
+ import "./style";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ var RepaireMaintain = function RepaireMaintain(props) {
16
+ var id = props.id;
17
+ var date = moment().format('YYYY-MM-DD');
18
+ var _BaseService$useRepai = BaseService.useRepairMaintain(id, date, date),
19
+ rmSummary = _BaseService$useRepai.rmSummary,
20
+ rmType = _BaseService$useRepai.rmType,
21
+ rmMonthTrend = _BaseService$useRepai.rmMonthTrend,
22
+ loading = _BaseService$useRepai.loading;
23
+ return /*#__PURE__*/_jsxs("div", {
24
+ className: "repair-maintain",
25
+ children: [/*#__PURE__*/_jsx(VmWrapper, {
26
+ title: "\u7EF4\u4FDD\u6C47\u603B\u5206\u6790",
27
+ children: /*#__PURE__*/_jsxs(Row, {
28
+ gutter: [12, 16],
29
+ children: [/*#__PURE__*/_jsx(Col, {
30
+ span: 24,
31
+ children: /*#__PURE__*/_jsx(RmInfoSummary, {
32
+ data: rmSummary
33
+ })
34
+ }), /*#__PURE__*/_jsx(Col, {
35
+ span: 12,
36
+ children: /*#__PURE__*/_jsx(RmType, {
37
+ data: rmType,
38
+ loading: loading
39
+ })
40
+ }), /*#__PURE__*/_jsx(Col, {
41
+ span: 12,
42
+ children: /*#__PURE__*/_jsx(RmMonthTrend, {
43
+ data: rmMonthTrend,
44
+ loading: loading
45
+ })
46
+ })]
47
+ })
48
+ }), /*#__PURE__*/_jsx("div", {
49
+ className: "rm-record",
50
+ children: /*#__PURE__*/_jsx(RmRecord, {
51
+ id: id
52
+ })
53
+ })]
54
+ });
55
+ };
56
+ export default RepaireMaintain;
@@ -0,0 +1 @@
1
+ import "./index.less";
@@ -0,0 +1,25 @@
1
+ .repair-maintain {
2
+ color: var(--modal-title-color);
3
+ .rm-summary {
4
+ display: flex;
5
+ justify-content: space-evenly;
6
+ align-items: center;
7
+ }
8
+
9
+ .rm-type {
10
+ &-chart {
11
+ height: 218px;
12
+ }
13
+ }
14
+
15
+ .rm-month-trend {
16
+ &-chart {
17
+ height: 218px;
18
+ }
19
+ }
20
+
21
+ .rm-record {
22
+ min-height: 200px;
23
+ margin-top: 16px;
24
+ }
25
+ }
@@ -74,6 +74,9 @@ var VMTable = function VMTable(props) {
74
74
  resizeObserver.observe(tableRef.current.parentElement, {
75
75
  box: 'border-box'
76
76
  });
77
+ resizeObserver.observe(tableRef.current, {
78
+ box: 'border-box'
79
+ });
77
80
  }
78
81
  return function () {
79
82
  resizeObserver.disconnect();
@@ -170,10 +173,10 @@ var VMTable = function VMTable(props) {
170
173
  });
171
174
  };
172
175
 
173
- /**
174
- * 表格导出按钮
175
- * @param props
176
- * @returns
176
+ /**
177
+ * 表格导出按钮
178
+ * @param props
179
+ * @returns
177
180
  */
178
181
 
179
182
  export var ExportBtn = function ExportBtn(props) {
@@ -167,6 +167,7 @@
167
167
  white-space: nowrap;
168
168
  // background-color: transparent;
169
169
  border: none;
170
+ background: var(--table-bg) !important;
170
171
  }
171
172
  &:hover {
172
173
  background-color: var(--scroll-bar-hover-bg);
@@ -177,8 +178,8 @@
177
178
  }
178
179
 
179
180
  &:nth-child(odd) {
180
- td {
181
- background-color: var(--table-row-bg-color);
181
+ td,td.ant-table-cell-fix-left {
182
+ background-color: var(--table-row-bg-color) !important;
182
183
  // border-top: var(--table-row-border);
183
184
  // border-bottom: var(--table-row-border);
184
185
 
@@ -59,4 +59,13 @@
59
59
  border: 1px solid #777777;
60
60
  color: #777777;
61
61
  }
62
+ &.black {
63
+ background: #F3F5F7;
64
+ color: #1F1F1F;
65
+ border: none;
66
+ &.dark {
67
+ background: #0B588E;
68
+ color: #FFFFFF;
69
+ }
70
+ }
62
71
  }
@@ -11,7 +11,8 @@ export default function VmWrapper(props) {
11
11
  _props$time = props.time,
12
12
  time = _props$time === void 0 ? '' : _props$time,
13
13
  _props$border = props.border,
14
- border = _props$border === void 0 ? true : _props$border;
14
+ border = _props$border === void 0 ? true : _props$border,
15
+ extra = props.extra;
15
16
  var prefix = 'vm-title-wrap';
16
17
  return /*#__PURE__*/_jsxs("div", {
17
18
  className: classnames("".concat(prefix, " ").concat(isDark ? 'dark' : ''), {
@@ -20,7 +21,7 @@ export default function VmWrapper(props) {
20
21
  children: [/*#__PURE__*/_jsx("div", {
21
22
  className: "".concat(prefix, "-title"),
22
23
  children: title
23
- }), time && /*#__PURE__*/_jsxs("div", {
24
+ }), extra ? extra : null, time && /*#__PURE__*/_jsxs("div", {
24
25
  className: "".concat(prefix, "-time-wrap"),
25
26
  children: [/*#__PURE__*/_jsx(ClockIcon, {
26
27
  width: 16,
@@ -11,7 +11,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
11
11
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import { Tooltip } from 'antd';
14
- import _ from 'lodash';
14
+ import classnames from 'classnames';
15
+ import _, { isEmpty } from 'lodash';
15
16
  import { useEffect, useState } from 'react';
16
17
  import useSettings from "../../_hooks/useSettings";
17
18
  import { ChartIcon, DateIcon, ListIcon } from "../../_util/iconSvgHtml";
@@ -26,8 +27,9 @@ export default function VmWrapper(props) {
26
27
  var _useSettings = useSettings(),
27
28
  isDark = _useSettings.isDark;
28
29
  var _props$title = props.title,
29
- title = _props$title === void 0 ? '基本信息' : _props$title,
30
+ title = _props$title === void 0 ? '' : _props$title,
30
31
  extra = props.extra,
32
+ extraLeft = props.extraLeft,
31
33
  _props$extraStyle = props.extraStyle,
32
34
  extraStyle = _props$extraStyle === void 0 ? {} : _props$extraStyle,
33
35
  _props$needChange = props.needChange,
@@ -54,7 +56,14 @@ export default function VmWrapper(props) {
54
56
  _props$showTitle = props.showTitle,
55
57
  showTitle = _props$showTitle === void 0 ? true : _props$showTitle,
56
58
  _props$showContent = props.showContent,
57
- showContent = _props$showContent === void 0 ? true : _props$showContent;
59
+ showContent = _props$showContent === void 0 ? true : _props$showContent,
60
+ _props$tabList = props.tabList,
61
+ tabList = _props$tabList === void 0 ? [] : _props$tabList,
62
+ _props$activeKey = props.activeKey,
63
+ activeKey = _props$activeKey === void 0 ? '' : _props$activeKey,
64
+ onChangeTab = props.onChangeTab,
65
+ _props$pickerProps = props.pickerProps,
66
+ pickerProps = _props$pickerProps === void 0 ? {} : _props$pickerProps;
58
67
  var _useState = useState([]),
59
68
  _useState2 = _slicedToArray(_useState, 2),
60
69
  changeList = _useState2[0],
@@ -108,10 +117,23 @@ export default function VmWrapper(props) {
108
117
  children: [showTitle && /*#__PURE__*/_jsxs("div", {
109
118
  className: "div-wrapper-head",
110
119
  style: _objectSpread({}, headerStyle),
111
- children: [title, /*#__PURE__*/_jsxs("div", {
120
+ children: [isEmpty(tabList) ? title : /*#__PURE__*/_jsx("div", {
121
+ className: "div-wrapper-tabs-wrap",
122
+ children: tabList.map(function (item) {
123
+ return /*#__PURE__*/_jsx("div", {
124
+ className: classnames('div-wrapper-tabs-item', {
125
+ active: item.key === activeKey
126
+ }),
127
+ onClick: function onClick() {
128
+ return onChangeTab(item.key);
129
+ },
130
+ children: item.label
131
+ }, item.key);
132
+ })
133
+ }), /*#__PURE__*/_jsxs("div", {
112
134
  className: "extra",
113
135
  style: _objectSpread({}, extraStyle),
114
- children: [needChange && /*#__PURE__*/_jsx("div", {
136
+ children: [extraLeft ? extraLeft : null, needChange && /*#__PURE__*/_jsx("div", {
115
137
  className: "extra-type",
116
138
  children: changeList.map(function (item) {
117
139
  var Icon = item.icon;
@@ -130,27 +152,27 @@ export default function VmWrapper(props) {
130
152
  })
131
153
  }, item.key);
132
154
  })
133
- }), filterType === 'datePicker' ? /*#__PURE__*/_jsx(VMDatePicker, {
155
+ }), filterType === 'datePicker' ? /*#__PURE__*/_jsx(VMDatePicker, _objectSpread({
134
156
  defaultValue: defaultValue,
135
157
  value: dateValue,
136
158
  onChange: props.filterChange,
137
159
  disabledDate: disabledDate
138
- }) : filterType === 'rangePicker' ? /*#__PURE__*/_jsx(VMRangePicker, {
160
+ }, pickerProps)) : filterType === 'rangePicker' ? /*#__PURE__*/_jsx(VMRangePicker, _objectSpread({
139
161
  defaultValue: defaultValue || [],
140
162
  value: dateValue || [],
141
163
  onChange: props.filterChange,
142
164
  disabledDate: disabledDate
143
- }) : filterType === 'monthPicker' ? /*#__PURE__*/_jsx(VMMonthPicker, {
165
+ }, pickerProps)) : filterType === 'monthPicker' ? /*#__PURE__*/_jsx(VMMonthPicker, _objectSpread({
144
166
  defaultValue: defaultValue,
145
167
  value: dateValue,
146
168
  onChange: props.filterChange,
147
169
  disabledDate: disabledDate
148
- }) : filterType === 'yearPicker' ? /*#__PURE__*/_jsx(VMYearPicker, {
170
+ }, pickerProps)) : filterType === 'yearPicker' ? /*#__PURE__*/_jsx(VMYearPicker, _objectSpread({
149
171
  defaultValue: defaultValue,
150
172
  value: dateValue,
151
173
  onChange: props.filterChange,
152
174
  disabledDate: disabledDate
153
- }) : null, extra ? extra : null]
175
+ }, pickerProps)) : null, extra ? extra : null]
154
176
  })]
155
177
  }), showContent && /*#__PURE__*/_jsx("div", {
156
178
  className: "div-wrapper-content",
@@ -4,6 +4,7 @@
4
4
  --wborder-color: #f1f0f0;
5
5
  --wfilter-bg: #f5f5f5;
6
6
  --wtype-bg: #fff;
7
+ --tab-active-color: #1677FF;
7
8
 
8
9
  &.dark {
9
10
  --wbg-color: rgba(0, 155, 233, 10%);
@@ -11,6 +12,33 @@
11
12
  --wborder-color: #1064a7;
12
13
  --wfilter-bg: #0b588e;
13
14
  --wtype-bg: #0168b0;
15
+ --tab-active-color: #009DFF;
16
+ }
17
+
18
+ &-tabs-wrap {
19
+ display: flex;
20
+ gap: 12px;
21
+ align-items: center;
22
+ color: var(--w-color);
23
+ font-size: 16px;
24
+ }
25
+
26
+ &-tabs-item {
27
+ padding: 0 8px;
28
+ cursor: pointer;
29
+ &.active {
30
+ color: var(--tab-active-color);
31
+ position: relative;
32
+ &:before {
33
+ content: '';
34
+ position: absolute;
35
+ width: 100%;
36
+ height: 2px;
37
+ background: var(--tab-active-color);
38
+ bottom: -12px;
39
+ left: 0;
40
+ }
41
+ }
14
42
  }
15
43
 
16
44
  width: 100%;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { default as VtxBaseModal } from "./vtx-base-modal";
1
+ // export { default as VtxBaseModal } from './vtx-base-modal';
2
2
  export { default as VtxStaffModal } from "./vtx-staff-modal";
3
3
  export { default as VtxCarModal } from "./vtx-car-modal";
4
4
  export { default as VtxDefaultModal } from "./vtx-default-modal";
@@ -9,4 +9,9 @@ export { default as VtxRoadModal } from "./vtx-road-modal";
9
9
  export { default as VtxZzzModal } from "./vtx-zzz-modal";
10
10
  export { default as VtxShxqModal } from "./vtx-shxq-modal";
11
11
  export { default as VtxTfdModal } from "./vtx-tfd-modal";
12
- export { default as VtxCpModal } from "./vtx-cp-modal";
12
+ export { default as VtxCpModal } from "./vtx-cp-modal";
13
+ export { default as VtxCcUnitModal } from "./vtx-cc-unit-modal";
14
+ export { default as VtxRestaurantModal } from "./vtx-restaurant-modal";
15
+ export { default as VtxCcCpModal } from "./vtx-cc-cp-modal";
16
+ export { default as VtxKhModal } from "./vtx-kh-modal";
17
+ export { default as VtxZgModal } from "./vtx-zg-modal";
@@ -7,11 +7,6 @@
7
7
  rgba(0, 52, 97, 80%) 100%
8
8
  );
9
9
  --modal-head-bg: linear-gradient(170deg, #004e82 0%, rgba(0, 43, 78, 0) 100%);
10
- --modal-bg-color: linear-gradient(
11
- 180deg,
12
- rgba(2, 16, 30, 0.8) 0%,
13
- rgba(0, 52, 97, 0.8) 100%
14
- );
15
10
  --modal-border-color: linear-gradient(
16
11
  90deg,
17
12
  rgba(59, 167, 255, 1),
@@ -78,7 +73,7 @@
78
73
  --bg-border-color2: rgba(32, 102, 167, 0.5);
79
74
  --info-b-color: linear-gradient(180deg, #ffffff 0%, #00fef6 100%);
80
75
  --sub-text-color: #fff;
81
-
76
+ --gray-line-color: rgba(47, 172, 255, 0.2);
82
77
  .ant-tabs-top > .ant-tabs-nav::before {
83
78
  border-bottom: 1px solid rgba(12, 154, 255, 0.15);
84
79
  }
@@ -120,6 +115,7 @@
120
115
  --vm-calendar-cell-border-color: #f2f2f2;
121
116
  --vm-calendar-cell-active-border-color: #1677ff;
122
117
  --vm-calendar-cell-font-color: #1f1f1f;
118
+ --gray-line-color: #E5E8EF;
123
119
  --label-color: #8c8c8c;
124
120
  --img-text-color: #5e6169;
125
121
  --img-value-color: #1890ff;
@@ -45,7 +45,8 @@ var ListZymx = function ListZymx(props) {
45
45
  title: '班次名称',
46
46
  dataIndex: 'shiftName',
47
47
  key: 'shiftName',
48
- width: 100
48
+ width: 110,
49
+ ellipsis: true
49
50
  }, {
50
51
  title: '班次时间',
51
52
  dataIndex: 'shiftStartTime',
@@ -1,98 +1,98 @@
1
- .vm-modal-header-container {
2
- width: 100%;
3
- height: 116px;
4
- border-radius: 8px 8px 0 0;
5
- background: var(--modal-head-bg);
6
- padding: 0 16px;
7
- margin-top: 1px;
8
- }
9
-
10
- .vm-modal-header-wrap {
11
- width: 100%;
12
- height: 56px;
13
- display: flex;
14
- align-items: center;
15
- justify-content: space-between;
16
- position: relative;
17
- &::after {
18
- position: absolute;
19
- top: 54px;
20
- left: 0;
21
- content: '';
22
- width: 180px;
23
- height: 1px;
24
- background: var(--modal-head-line-bg);
25
- box-shadow: var(--modal-head-line-shadow);
26
- border-radius: 8px;
27
- animation: move 6s linear infinite;
28
-
29
- @keyframes move {
30
- 0% {
31
- left: 0;
32
- }
33
-
34
- 100% {
35
- left: calc(100% - 180px);
36
- }
37
- }
38
- }
39
-
40
- &-left {
41
- display: flex;
42
- align-items: center;
43
- gap: 8px;
44
-
45
- &-title {
46
- font-weight: bold;
47
- font-size: 20px;
48
- color: var(--modal-title-color);
49
- }
50
-
51
- &-tag {
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- gap: 4px;
56
- height: 24px;
57
- border-radius: 16px;
58
- font-size: 12px;
59
- padding: 0 8px;
60
- border: 1px solid;
61
- }
62
- }
63
-
64
- &-right {
65
- display: flex;
66
- align-items: center;
67
- gap: 16px;
68
-
69
- &-close {
70
- display: flex;
71
- align-items: center;
72
- justify-content: center;
73
- color: var(--modal-close-color);
74
- width: 28px;
75
- height: 28px;
76
- cursor: pointer;
77
- font-size: 16px;
78
- }
79
-
80
- &-line {
81
- width: 1px;
82
- height: 14px;
83
- background-color: var(--modal-head-split-line-color);
84
- }
85
-
86
- &-collect {
87
- width: 28px;
88
- height: 28px;
89
- border-radius: 8px;
90
- text-align: center;
91
- cursor: pointer;
92
-
93
- &.active {
94
- background: var(--collect-bg);
95
- }
96
- }
97
- }
98
- }
1
+ .vm-modal-header-container {
2
+ width: 100%;
3
+ height: 116px;
4
+ border-radius: 8px 8px 0 0;
5
+ background: var(--modal-head-bg);
6
+ padding: 0 16px;
7
+ margin-top: 1px;
8
+ }
9
+
10
+ .vm-modal-header-wrap {
11
+ width: 100%;
12
+ height: 56px;
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ position: relative;
17
+ &::after {
18
+ position: absolute;
19
+ top: 54px;
20
+ left: 0;
21
+ content: '';
22
+ width: 180px;
23
+ height: 1px;
24
+ background: var(--modal-head-line-bg);
25
+ box-shadow: var(--modal-head-line-shadow);
26
+ border-radius: 8px;
27
+ animation: move 6s linear infinite;
28
+
29
+ @keyframes move {
30
+ 0% {
31
+ left: 0;
32
+ }
33
+
34
+ 100% {
35
+ left: calc(100% - 180px);
36
+ }
37
+ }
38
+ }
39
+
40
+ &-left {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 8px;
44
+
45
+ &-title {
46
+ font-weight: bold;
47
+ font-size: 20px;
48
+ color: var(--modal-title-color);
49
+ }
50
+
51
+ &-tag {
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
55
+ gap: 4px;
56
+ height: 24px;
57
+ border-radius: 16px;
58
+ font-size: 12px;
59
+ padding: 0 8px;
60
+ border: 1px solid;
61
+ }
62
+ }
63
+
64
+ &-right {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: 16px;
68
+
69
+ &-close {
70
+ display: flex;
71
+ align-items: center;
72
+ justify-content: center;
73
+ color: var(--modal-close-color);
74
+ width: 28px;
75
+ height: 28px;
76
+ cursor: pointer;
77
+ font-size: 16px;
78
+ }
79
+
80
+ &-line {
81
+ width: 1px;
82
+ height: 14px;
83
+ background-color: var(--modal-head-split-line-color);
84
+ }
85
+
86
+ &-collect {
87
+ width: 28px;
88
+ height: 28px;
89
+ border-radius: 8px;
90
+ text-align: center;
91
+ cursor: pointer;
92
+
93
+ &.active {
94
+ background: var(--collect-bg);
95
+ }
96
+ }
97
+ }
98
+ }