@vtx/modals2 5.0.57 → 5.0.59

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 (77) hide show
  1. package/lib/_components/vm-calendar/index.js +14 -4
  2. package/lib/_components/vm-calendar/style/index.less +4 -1
  3. package/lib/_components/vm-card-statistics/index.less +27 -27
  4. package/lib/_components/vm-custom/index.js +1 -1
  5. package/lib/_components/vm-factor-list/index.less +11 -11
  6. package/lib/_components/vm-filter/index.js +25 -0
  7. package/lib/_components/vm-pie-charts/index.js +14 -4
  8. package/lib/_components/vm-popover/index.less +7 -7
  9. package/lib/_components/vm-progress/index.js +6 -0
  10. package/lib/_components/vm-table/index.js +3 -3
  11. package/lib/_components/vm-table/style/index.less +12 -7
  12. package/lib/_components/vm-video/index.js +6 -1
  13. package/lib/style/index.less +5 -0
  14. package/lib/vtx-area-modal/api.js +2 -0
  15. package/lib/vtx-base-modal/Header/index.less +98 -98
  16. package/lib/vtx-base-modal/index.js +5 -0
  17. package/lib/vtx-car-modal/api.js +179 -74
  18. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  19. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  20. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  21. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +133 -0
  22. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +84 -0
  23. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +71 -0
  24. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +223 -0
  25. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +549 -0
  26. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.less +6 -0
  27. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +291 -0
  28. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +1 -1
  29. package/lib/vtx-car-modal/content/JXH/index.js +9 -1
  30. package/lib/vtx-car-modal/imgs/calendar/auto.png +0 -0
  31. package/lib/vtx-car-modal/imgs/calendar/dark_auto.png +0 -0
  32. package/lib/vtx-car-modal/imgs/calendar/dark_electricity.png +0 -0
  33. package/lib/vtx-car-modal/imgs/calendar/dark_oil.png +0 -0
  34. package/lib/vtx-car-modal/imgs/calendar/dark_transition.png +0 -0
  35. package/lib/vtx-car-modal/imgs/calendar/dark_water.png +0 -0
  36. package/lib/vtx-car-modal/imgs/calendar/dark_yy_mileage.png +0 -0
  37. package/lib/vtx-car-modal/imgs/calendar/electricity.png +0 -0
  38. package/lib/vtx-car-modal/imgs/calendar/oil.png +0 -0
  39. package/lib/vtx-car-modal/imgs/calendar/transition.png +0 -0
  40. package/lib/vtx-car-modal/imgs/calendar/water.png +0 -0
  41. package/lib/vtx-car-modal/imgs/calendar/yy_mileage.png +0 -0
  42. package/lib/vtx-car-modal/index.js +9 -1
  43. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  44. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +1 -0
  45. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  46. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +2 -0
  47. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +2 -0
  48. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +2 -0
  49. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  50. package/lib/vtx-restaurant-modal/config.js +52 -52
  51. package/lib/vtx-road-modal/api.js +348 -11
  52. package/lib/vtx-road-modal/components/BaseInfo/Work.js +11 -5
  53. package/lib/vtx-road-modal/components/BaseInfo/index.js +6 -5
  54. package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +63 -0
  55. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +434 -0
  56. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +80 -0
  57. package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +127 -0
  58. package/lib/vtx-road-modal/components/LaneCalendar/index.js +194 -0
  59. package/lib/vtx-road-modal/components/LaneStatistical/index.js +312 -0
  60. package/lib/vtx-road-modal/components/LaneStatistical/index.less +32 -0
  61. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  62. package/lib/vtx-road-modal/components/index.js +4 -1
  63. package/lib/vtx-road-modal/imgs/car.png +0 -0
  64. package/lib/vtx-road-modal/imgs/dark_car.png +0 -0
  65. package/lib/vtx-road-modal/imgs/dark_person.png +0 -0
  66. package/lib/vtx-road-modal/imgs/person.png +0 -0
  67. package/lib/vtx-road-modal/imgs/schedule.png +0 -0
  68. package/lib/vtx-road-modal/imgs/work.png +0 -0
  69. package/lib/vtx-road-modal/imgs//344/274/230.png +0 -0
  70. package/lib/vtx-road-modal/imgs//345/267/256.png +0 -0
  71. package/lib/vtx-road-modal/imgs//350/211/257.png +0 -0
  72. package/lib/vtx-road-modal/index.js +18 -13
  73. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +2 -0
  74. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +2 -0
  75. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +2 -0
  76. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +2 -2
  77. package/package.json +81 -81
@@ -1,32 +1,32 @@
1
- .road-statistic-summary-main-rate {
2
- --bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
3
- &-dark {
4
- --bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
5
- }
6
- width: 100%;
7
- height: 130px;
8
- display: flex;
9
- align-items: center;
10
- justify-content: space-around;
11
- padding: 0 24px;
12
- background: var(--bg-color);
13
- border-radius: 8px;
14
- &--block {
15
- width: 8px;
16
- height: 8px;
17
- border-radius: 50%;
18
- }
19
- &--label {
20
- display: flex;
21
- gap: 4px;
22
- align-items: center;
23
- font-size: 16px;
24
- color: var(--img-text-color);
25
- }
26
- &--value {
27
- margin-left: 12px;
28
- font-weight: bold;
29
- font-size: 24px;
30
- color: #1F1F1F;
31
- }
32
- }
1
+ .road-statistic-summary-main-rate {
2
+ --bg-color: linear-gradient(180deg, #E4EFFF 0%, #F5FBFF 100%);
3
+ &-dark {
4
+ --bg-color: linear-gradient(180deg, #1C7CBF 0%, #0B588E 100%);
5
+ }
6
+ width: 100%;
7
+ height: 130px;
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-around;
11
+ padding: 0 24px;
12
+ background: var(--bg-color);
13
+ border-radius: 8px;
14
+ &--block {
15
+ width: 8px;
16
+ height: 8px;
17
+ border-radius: 50%;
18
+ }
19
+ &--label {
20
+ display: flex;
21
+ gap: 4px;
22
+ align-items: center;
23
+ font-size: 16px;
24
+ color: var(--img-text-color);
25
+ }
26
+ &--value {
27
+ margin-left: 12px;
28
+ font-weight: bold;
29
+ font-size: 24px;
30
+ color: #1F1F1F;
31
+ }
32
+ }
@@ -1,4 +1,7 @@
1
1
  import BaseInfo from "./BaseInfo";
2
2
  import Calendar from "./Calendar";
3
3
  import Statistical from "./Statistical";
4
- export { BaseInfo, Calendar, Statistical };
4
+ import LaneStatistical from "./LaneStatistical";
5
+ import LaneCalendar from "./LaneCalendar";
6
+ import LaneBaseInfo from "./LaneBaseInfo";
7
+ export { BaseInfo, Calendar, Statistical, LaneStatistical, LaneCalendar, LaneBaseInfo };
Binary file
Binary file
@@ -15,12 +15,15 @@ import { VmIframeModal } from "../_components";
15
15
  import useGetConfig from "../_hooks/useGetConfig";
16
16
  import VtxBaseModal from "../vtx-base-modal";
17
17
  import { BaseService } from "./api";
18
- import { BaseInfo, Calendar, Statistical } from "./components";
18
+ import { BaseInfo, Calendar, Statistical, LaneBaseInfo, LaneStatistical, LaneCalendar } from "./components";
19
19
  import "./style/index";
20
20
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  var TABS_BASE = 'base';
22
22
  var TABS_STATIC = 'statistical';
23
23
  var TABS_CALENDAR = 'calendar';
24
+ var TABS_LANE_BASE = 'lane-base';
25
+ var TABS_LANE_STATIC = 'lane-statistical';
26
+ var TABS_LANE_CALENDAR = 'lane-calendar';
24
27
  var VtxRoadModal = function VtxRoadModal(props) {
25
28
  var id = props.id,
26
29
  title = props.title,
@@ -47,11 +50,6 @@ var VtxRoadModal = function VtxRoadModal(props) {
47
50
  }
48
51
  var _useGetConfig = useGetConfig('tr', tabs),
49
52
  tabsData = _useGetConfig.tabsData;
50
- var _BaseService$useBaseI = BaseService.useBaseInfo(id, hasRule),
51
- info = _BaseService$useBaseI.info,
52
- baseInfo = _BaseService$useBaseI.baseInfo,
53
- rules = _BaseService$useBaseI.rules,
54
- workTypeColorMap = _BaseService$useBaseI.workTypeColorMap;
55
53
  var _useSetState = useSetState({
56
54
  src: '',
57
55
  visible: false,
@@ -73,14 +71,12 @@ var VtxRoadModal = function VtxRoadModal(props) {
73
71
  startDate: startDate,
74
72
  endDate: endDate,
75
73
  date: date,
76
- contents: _defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
74
+ tagList: [{
75
+ color: 'yellow',
76
+ value: jcssInfo.originTypeName
77
+ }],
78
+ contents: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(BaseInfo, {
77
79
  id: id,
78
- data: {
79
- info: info,
80
- baseInfo: baseInfo,
81
- rules: rules,
82
- workTypeColorMap: workTypeColorMap
83
- },
84
80
  jcssInfo: jcssInfo,
85
81
  hasRule: hasRule,
86
82
  setIframeModalInfo: setIframeModalInfo
@@ -88,6 +84,15 @@ var VtxRoadModal = function VtxRoadModal(props) {
88
84
  id: id
89
85
  })), TABS_CALENDAR, /*#__PURE__*/_jsx(Calendar, {
90
86
  id: id
87
+ })), TABS_LANE_BASE, /*#__PURE__*/_jsx(LaneBaseInfo, {
88
+ id: id,
89
+ jcssInfo: jcssInfo,
90
+ hasRule: hasRule,
91
+ setIframeModalInfo: setIframeModalInfo
92
+ })), TABS_LANE_STATIC, /*#__PURE__*/_jsx(LaneStatistical, {
93
+ id: id
94
+ })), TABS_LANE_CALENDAR, /*#__PURE__*/_jsx(LaneCalendar, {
95
+ id: id
91
96
  }))
92
97
  }), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
93
98
  theme: theme,
@@ -80,11 +80,13 @@ var GDCLXL = function GDCLXL(_ref) {
80
80
  type: "dashboard",
81
81
  percent: ele.value,
82
82
  width: 120,
83
+ size: 120,
83
84
  strokeWidth: 10,
84
85
  gapDegree: 180,
85
86
  strokeLinecap: "butt",
86
87
  strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
87
88
  trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
89
+ railColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
88
90
  showInfo: false
89
91
  }), /*#__PURE__*/_jsxs("div", {
90
92
  className: "".concat(classPrefix, "-progress-desc"),
@@ -69,12 +69,14 @@ var GDCLXL = function GDCLXL(_ref) {
69
69
  }), /*#__PURE__*/_jsx(Progress, {
70
70
  type: "dashboard",
71
71
  percent: ele.value,
72
+ size: 160,
72
73
  width: 160,
73
74
  strokeWidth: 10,
74
75
  gapDegree: 180,
75
76
  strokeLinecap: "butt",
76
77
  strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
77
78
  trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
79
+ railColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
78
80
  showInfo: false
79
81
  }), /*#__PURE__*/_jsx("div", {
80
82
  className: "".concat(classPrefix, "-progress-desc"),
@@ -124,11 +124,13 @@ var RightBottom = function RightBottom(_ref) {
124
124
  type: "dashboard",
125
125
  percent: ele.value,
126
126
  width: 120,
127
+ size: 120,
127
128
  strokeWidth: 10,
128
129
  gapDegree: 180,
129
130
  strokeLinecap: "butt",
130
131
  strokeColor: strokeColor[ele.value > ele.avg ? 'alarm' : 'normal'],
131
132
  trailColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
133
+ railColor: isDark ? '#9B9FA8' : 'rgba(0, 0, 0, 0.1)',
132
134
  showInfo: false
133
135
  }), /*#__PURE__*/_jsxs("div", {
134
136
  className: "".concat(classPrefix, "-rightbottom-progress-desc"),
@@ -1,5 +1,5 @@
1
- /**
2
- * 区域进场量分析
1
+ /**
2
+ * 区域进场量分析
3
3
  */
4
4
 
5
5
  import { Col, Row } from 'antd';
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@vtx/modals2",
3
- "version": "5.0.57",
4
- "description": "弹窗组件",
5
- "license": "MIT",
6
- "module": "lib/index.js",
7
- "types": "lib/index.d.ts",
8
- "files": [
9
- "lib"
10
- ],
11
- "scripts": {
12
- "build": "father build",
13
- "build:watch": "father dev",
14
- "dev": "dumi dev",
15
- "docs:build": "dumi build",
16
- "docs:preview": "dumi preview",
17
- "doctor": "father doctor",
18
- "lint": "npm run lint:es && npm run lint:css",
19
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
- "prepare": "husky install && dumi setup",
22
- "prepublishOnly": "npm run build",
23
- "start": "npm run dev"
24
- },
25
- "dependencies": {
26
- "base-64": "^1.0.0",
27
- "htmr": "^1.0.2",
28
- "number-precision": "^1.6.0",
29
- "react-tagcloud": "^2.3.3",
30
- "proj4": "^2.20.8"
31
- },
32
- "devDependencies": {
33
- "@ant-design/icons": "4.7.0",
34
- "@babel/preset-react": "^7.28.5",
35
- "@babel/runtime": "^7.6.3",
36
- "@commitlint/cli": "^17.1.2",
37
- "@commitlint/config-conventional": "^17.1.0",
38
- "@types/lodash": "^4.14.202",
39
- "@types/qs": "^6.9.11",
40
- "@types/react": "^18.0.0",
41
- "@types/react-dom": "^18.0.0",
42
- "@umijs/lint": "^4.0.0",
43
- "@vtx/components": "^3.1.166",
44
- "@vtx/ol-map": "^1.0.170",
45
- "@vtx/player": "latest",
46
- "@vtx/utils": "^1.0.20",
47
- "@turf/turf": "^7.3.4",
48
- "ol": "6.15.1",
49
- "ahooks": "^3.1.5",
50
- "antd": "^4.24.16",
51
- "antd-dayjs-webpack-plugin": "^1.0.6",
52
- "axios": "^0.21.1",
53
- "babel-eslint": "^10.1.0",
54
- "babel-plugin-import": "^1.13.8",
55
- "dayjs": "^1.11.10",
56
- "dumi": "^2.2.13",
57
- "echarts": "^5.3.2",
58
- "echarts-for-react": "3.0.2",
59
- "echarts-liquidfill": "^3.1.0",
60
- "eslint": "^8.23.0",
61
- "father": "^4.1.0",
62
- "husky": "^8.0.1",
63
- "lint-staged": "^13.0.3",
64
- "lodash": "^4.17.21",
65
- "prettier": "^2.7.1",
66
- "prettier-plugin-organize-imports": "^3.0.0",
67
- "prettier-plugin-packagejson": "^2.2.18",
68
- "qs": "^6.0.0",
69
- "react": "^18.0.0",
70
- "react-dom": "^18.0.0",
71
- "stylelint": "^14.9.1"
72
- },
73
- "peerDependencies": {
74
- "react": ">=16.9.0",
75
- "react-dom": ">=16.9.0"
76
- },
77
- "publishConfig": {
78
- "access": "public"
79
- },
80
- "authors": []
81
- }
1
+ {
2
+ "name": "@vtx/modals2",
3
+ "version": "5.0.59",
4
+ "description": "弹窗组件",
5
+ "license": "MIT",
6
+ "module": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "files": [
9
+ "lib"
10
+ ],
11
+ "scripts": {
12
+ "build": "father build",
13
+ "build:watch": "father dev",
14
+ "dev": "dumi dev",
15
+ "docs:build": "dumi build",
16
+ "docs:preview": "dumi preview",
17
+ "doctor": "father doctor",
18
+ "lint": "npm run lint:es && npm run lint:css",
19
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
20
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
21
+ "prepare": "husky install && dumi setup",
22
+ "prepublishOnly": "npm run build",
23
+ "start": "npm run dev"
24
+ },
25
+ "dependencies": {
26
+ "base-64": "^1.0.0",
27
+ "htmr": "^1.0.2",
28
+ "number-precision": "^1.6.0",
29
+ "react-tagcloud": "^2.3.3",
30
+ "proj4": "^2.20.8"
31
+ },
32
+ "devDependencies": {
33
+ "@ant-design/icons": "4.7.0",
34
+ "@babel/preset-react": "^7.28.5",
35
+ "@babel/runtime": "^7.6.3",
36
+ "@commitlint/cli": "^17.1.2",
37
+ "@commitlint/config-conventional": "^17.1.0",
38
+ "@types/lodash": "^4.14.202",
39
+ "@types/qs": "^6.9.11",
40
+ "@types/react": "^18.0.0",
41
+ "@types/react-dom": "^18.0.0",
42
+ "@umijs/lint": "^4.0.0",
43
+ "@vtx/components": "^3.1.166",
44
+ "@vtx/ol-map": "^1.0.170",
45
+ "@vtx/player": "latest",
46
+ "@vtx/utils": "^1.0.20",
47
+ "@turf/turf": "^7.3.4",
48
+ "ol": "6.15.1",
49
+ "ahooks": "^3.1.5",
50
+ "antd": "^4.24.16",
51
+ "antd-dayjs-webpack-plugin": "^1.0.6",
52
+ "axios": "^0.21.1",
53
+ "babel-eslint": "^10.1.0",
54
+ "babel-plugin-import": "^1.13.8",
55
+ "dayjs": "^1.11.10",
56
+ "dumi": "^2.2.13",
57
+ "echarts": "^5.3.2",
58
+ "echarts-for-react": "3.0.2",
59
+ "echarts-liquidfill": "^3.1.0",
60
+ "eslint": "^8.23.0",
61
+ "father": "^4.1.0",
62
+ "husky": "^8.0.1",
63
+ "lint-staged": "^13.0.3",
64
+ "lodash": "^4.17.21",
65
+ "prettier": "^2.7.1",
66
+ "prettier-plugin-organize-imports": "^3.0.0",
67
+ "prettier-plugin-packagejson": "^2.2.18",
68
+ "qs": "^6.0.0",
69
+ "react": "^18.0.0",
70
+ "react-dom": "^18.0.0",
71
+ "stylelint": "^14.9.1"
72
+ },
73
+ "peerDependencies": {
74
+ "react": ">=16.9.0",
75
+ "react-dom": ">=16.9.0"
76
+ },
77
+ "publishConfig": {
78
+ "access": "public"
79
+ },
80
+ "authors": []
81
+ }