@vtx/modals2 5.0.17 → 5.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/vm-bar-charts/index.js +5 -2
- package/lib/_components/vm-empty/index.js +4 -1
- package/lib/_components/vm-empty/style/index.less +4 -0
- package/lib/_components/vm-filter/index.js +4 -2
- package/lib/_components/vm-pie-charts/index.js +8 -1
- package/lib/_components/vm-table/style/index.less +12 -4
- package/lib/index.js +3 -1
- package/lib/vtx-default-modal/components/BaseInfo/index.less +1 -1
- package/lib/vtx-default-modal/index.js +0 -1
- package/lib/vtx-jzlj-df-tpd-modal/api.js +212 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Base/index.js +24 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +378 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +88 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +86 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +92 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/index.js +5 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-df-tpd-modal/index.js +117 -0
- package/lib/vtx-jzlj-df-tpd-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-df-tpd-modal/style/index.less +1 -0
- package/lib/vtx-jzlj-gcxm-modal/api.js +294 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +276 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +185 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.less +34 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Base/index.js +6 -3
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +394 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +87 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +130 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +96 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-gcxm-modal/components/index.js +5 -1
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-gcxm-modal/index.js +65 -24
- package/lib/vtx-jzlj-xnc-modal/api.js +212 -0
- package/lib/vtx-jzlj-xnc-modal/components/Base/index.js +23 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +96 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +341 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.less +57 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +208 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +378 -0
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.less +65 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +88 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +104 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +116 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +103 -0
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.less +65 -0
- package/lib/vtx-jzlj-xnc-modal/components/index.js +5 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_czz_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_syl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zsbl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/dispose_zyyl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjrcc_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_ctyl_pjryl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zl_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_dark.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/imgs/overview_czz_zs_light.png +0 -0
- package/lib/vtx-jzlj-xnc-modal/index.js +114 -0
- package/lib/vtx-jzlj-xnc-modal/style/index.js +1 -0
- package/lib/vtx-jzlj-xnc-modal/style/index.less +1 -0
- package/lib/vtx-qyry-modal/api.js +1 -0
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +11 -2
- package/lib/vtx-tfd-modal/index.js +18 -2
- package/package.json +1 -1
|
@@ -35,7 +35,9 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
35
35
|
_ref$otherProps = _ref.otherProps,
|
|
36
36
|
otherProps = _ref$otherProps === void 0 ? {} : _ref$otherProps,
|
|
37
37
|
_ref$tooltipProps = _ref.tooltipProps,
|
|
38
|
-
tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps
|
|
38
|
+
tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
|
|
39
|
+
_ref$barBorderRadius = _ref.barBorderRadius,
|
|
40
|
+
barBorderRadius = _ref$barBorderRadius === void 0 ? [0, 0, 0, 0] : _ref$barBorderRadius;
|
|
39
41
|
var lineColors = ['#1FB64D'];
|
|
40
42
|
var _useSettings = useSettings(),
|
|
41
43
|
chartFontColor = _useSettings.chartFontColor,
|
|
@@ -143,7 +145,8 @@ var BarCharts = function BarCharts(_ref) {
|
|
|
143
145
|
}, {
|
|
144
146
|
offset: 0,
|
|
145
147
|
color: colors[1]
|
|
146
|
-
}])
|
|
148
|
+
}]),
|
|
149
|
+
borderRadius: barBorderRadius || [0, 0, 0, 0]
|
|
147
150
|
}
|
|
148
151
|
};
|
|
149
152
|
})), _toConsumableArray(lineList.map(function (item, index) {
|
|
@@ -5,6 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
+
import useSettings from "../../_hooks/useSettings";
|
|
8
9
|
import no_chart from "./assets/no_chart.png";
|
|
9
10
|
import no_data from "./assets/no_data.png";
|
|
10
11
|
import no_data_2 from "./assets/no_data_2.png";
|
|
@@ -56,6 +57,8 @@ var CONFIG = {
|
|
|
56
57
|
};
|
|
57
58
|
var prefix = 'vm-empty';
|
|
58
59
|
function VmEmpty(props) {
|
|
60
|
+
var _useSettings = useSettings(),
|
|
61
|
+
isDark = _useSettings.isDark;
|
|
59
62
|
var _props$style = props.style,
|
|
60
63
|
style = _props$style === void 0 ? {} : _props$style,
|
|
61
64
|
_props$type = props.type,
|
|
@@ -68,7 +71,7 @@ function VmEmpty(props) {
|
|
|
68
71
|
img = _ref.img,
|
|
69
72
|
text = _ref.text;
|
|
70
73
|
return /*#__PURE__*/_jsxs("div", {
|
|
71
|
-
className: classnames("".concat(prefix), className),
|
|
74
|
+
className: classnames("".concat(prefix, " ").concat(isDark ? 'dark' : ''), className),
|
|
72
75
|
style: _objectSpread({}, style),
|
|
73
76
|
children: [/*#__PURE__*/_jsx("img", {
|
|
74
77
|
className: classnames("".concat(prefix, "-img")),
|
|
@@ -14,10 +14,11 @@ import { SearchOutlined } from '@ant-design/icons';
|
|
|
14
14
|
import { useDebounce } from 'ahooks';
|
|
15
15
|
import { DatePicker, Input, Select } from 'antd';
|
|
16
16
|
import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
17
|
-
import '
|
|
17
|
+
import 'dayjs/locale/zh-cn';
|
|
18
18
|
import { useEffect, useState } from 'react';
|
|
19
19
|
import useSettings from "../../_hooks/useSettings";
|
|
20
20
|
import "./style";
|
|
21
|
+
import VmEmpty from "../vm-empty";
|
|
21
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
23
|
var RangePicker = DatePicker.RangePicker,
|
|
23
24
|
MonthPicker = DatePicker.MonthPicker,
|
|
@@ -76,7 +77,8 @@ export var VMSelect = function VMSelect(props) {
|
|
|
76
77
|
isDark = _useSettings5.isDark;
|
|
77
78
|
return /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
78
79
|
className: "vm-select ".concat(isDark ? 'dark' : '', " "),
|
|
79
|
-
dropdownClassName: "vm-select-dropdown ".concat(isDark ? 'dark' : '')
|
|
80
|
+
dropdownClassName: "vm-select-dropdown ".concat(isDark ? 'dark' : ''),
|
|
81
|
+
notFoundContent: /*#__PURE__*/_jsx(VmEmpty, {})
|
|
80
82
|
}, props), {}, {
|
|
81
83
|
children: props.children
|
|
82
84
|
}));
|
|
@@ -37,7 +37,9 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
37
37
|
_ref$colors = _ref.colors,
|
|
38
38
|
colors = _ref$colors === void 0 ? null : _ref$colors,
|
|
39
39
|
_ref$colors2 = _ref.colors2,
|
|
40
|
-
colors2 = _ref$colors2 === void 0 ? null : _ref$colors2
|
|
40
|
+
colors2 = _ref$colors2 === void 0 ? null : _ref$colors2,
|
|
41
|
+
_ref$subTitle = _ref.subTitle,
|
|
42
|
+
subTitle = _ref$subTitle === void 0 ? null : _ref$subTitle;
|
|
41
43
|
var _useSettings = useSettings(),
|
|
42
44
|
chartFontColor = _useSettings.chartFontColor,
|
|
43
45
|
isDark = _useSettings.isDark;
|
|
@@ -169,6 +171,11 @@ var PieCharts = function PieCharts(_ref) {
|
|
|
169
171
|
color: chartFontColor
|
|
170
172
|
},
|
|
171
173
|
children: title
|
|
174
|
+
}), subTitle && /*#__PURE__*/_jsx("div", {
|
|
175
|
+
style: {
|
|
176
|
+
color: chartFontColor
|
|
177
|
+
},
|
|
178
|
+
children: subTitle
|
|
172
179
|
})]
|
|
173
180
|
}), /*#__PURE__*/_jsx(ReactEcharts, {
|
|
174
181
|
option: option,
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
--table-bg: white;
|
|
3
3
|
--table-color: #1f1f1f;
|
|
4
4
|
--table-header-bg-color: #e6f4ff;
|
|
5
|
+
--table-header-fixed-bg-color: #e6f4ff;
|
|
6
|
+
--table-bd-fixed-bg-color: #fff;
|
|
7
|
+
--table-bd-fixed-bg-odd-color: #e8e8e8;
|
|
5
8
|
--table-row-border: 1px solid #f2f2f2;
|
|
6
9
|
--table-row-bg-color: #f2f2f2;
|
|
7
10
|
--scroll-bar-hover-bg: #adadad;
|
|
@@ -10,6 +13,9 @@
|
|
|
10
13
|
--table-bg: transparent;
|
|
11
14
|
--table-color: #fff;
|
|
12
15
|
--table-header-bg-color: rgba(0, 157, 255, 0.2);
|
|
16
|
+
--table-header-fixed-bg-color: rgb(13 92 142);
|
|
17
|
+
--table-bd-fixed-bg-color: #155279;
|
|
18
|
+
--table-bd-fixed-bg-odd-color: #115d8e;
|
|
13
19
|
--table-row-border: 1px solid transparent;
|
|
14
20
|
--table-row-bg-color: rgba(0, 91, 136, 0.1);
|
|
15
21
|
--scroll-bar-hover-bg: #219fff3d;
|
|
@@ -122,7 +128,7 @@
|
|
|
122
128
|
.ant-table-thead {
|
|
123
129
|
.ant-table-cell-fix-left,
|
|
124
130
|
.ant-table-cell-fix-right {
|
|
125
|
-
background: var(--table-header-bg-color) !important;
|
|
131
|
+
background: var(--table-header-fixed-bg-color) !important;
|
|
126
132
|
}
|
|
127
133
|
}
|
|
128
134
|
|
|
@@ -158,7 +164,7 @@
|
|
|
158
164
|
tbody {
|
|
159
165
|
.ant-table-cell-fix-left,
|
|
160
166
|
.ant-table-cell-fix-right {
|
|
161
|
-
background: var(--table-bg) !important;
|
|
167
|
+
background: var(--table-bd-fixed-bg-color) !important;
|
|
162
168
|
}
|
|
163
169
|
tr {
|
|
164
170
|
td {
|
|
@@ -178,8 +184,10 @@
|
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
&:nth-child(odd) {
|
|
181
|
-
td,
|
|
182
|
-
|
|
187
|
+
td,
|
|
188
|
+
td.ant-table-cell-fix-left {
|
|
189
|
+
// background-color: var(--table-row-bg-color) !important;
|
|
190
|
+
background-color: var(--table-bd-fixed-bg-odd-color) !important;
|
|
183
191
|
// border-top: var(--table-row-border);
|
|
184
192
|
// border-bottom: var(--table-row-border);
|
|
185
193
|
|
package/lib/index.js
CHANGED
|
@@ -20,4 +20,6 @@ export { default as VtxSdydTfdModal } from "./vtx-sdyd-tfd-modal";
|
|
|
20
20
|
export { default as VtxZfModal } from "./vtx-zf-modal";
|
|
21
21
|
|
|
22
22
|
// 建筑垃圾产品弹窗
|
|
23
|
-
export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
|
|
23
|
+
export { default as VtxJzljGcxmModal } from "./vtx-jzlj-gcxm-modal"; // 建筑垃圾-工程项目
|
|
24
|
+
export { default as VtxJzljXncModal } from "./vtx-jzlj-xnc-modal"; // 建筑垃圾-消纳场
|
|
25
|
+
export { default as VtxJzljDfTpdModal } from "./vtx-jzlj-df-tpd-modal"; // 建筑垃圾-处置场/调配点
|
|
@@ -9,7 +9,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
*/
|
|
10
10
|
import { VmCustom, VmRepairMaintain, VmVideo } from "../_components";
|
|
11
11
|
import Appraisal from "../vtx-kh-modal/components/Record";
|
|
12
|
-
// import VmVideo from '../vm-video';
|
|
13
12
|
import { useMemo } from 'react';
|
|
14
13
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
15
14
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
@@ -0,0 +1,212 @@
|
|
|
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
|
+
var _excluded = ["startingPointId", "page", "size"],
|
|
3
|
+
_excluded2 = ["startingPointId"],
|
|
4
|
+
_excluded3 = ["startingPointId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight", "page", "size"],
|
|
5
|
+
_excluded4 = ["startingPointId", "stepThreeOperateTimeLeft", "stepThreeOperateTimeRight"];
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
|
+
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); }
|
|
11
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
13
|
+
import { getVtxToken, request } from '@vtx/utils';
|
|
14
|
+
import { useRequest } from 'ahooks';
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
|
+
var overviewApis = {
|
|
17
|
+
useInfo: function useInfo(id) {
|
|
18
|
+
var _useRequest = useRequest(function () {
|
|
19
|
+
return request.get('/cloud/jcss-reborn/facility/get', {
|
|
20
|
+
data: {
|
|
21
|
+
id: id,
|
|
22
|
+
coordType: 'wgs84'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}, {
|
|
26
|
+
ready: !!id,
|
|
27
|
+
refreshDeps: [id]
|
|
28
|
+
}),
|
|
29
|
+
data = _useRequest.data;
|
|
30
|
+
return {
|
|
31
|
+
info: (data === null || data === void 0 ? void 0 : data.data) || {}
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
useJcssBubble: function useJcssBubble(id) {
|
|
35
|
+
var _useRequest2 = useRequest(function () {
|
|
36
|
+
return request.get('/cloud/jzlj/web/api/gis/real/time/jcssBubble', {
|
|
37
|
+
data: {
|
|
38
|
+
id: id,
|
|
39
|
+
coordType: 'wgs84'
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}, {
|
|
43
|
+
ready: !!id,
|
|
44
|
+
refreshDeps: [id]
|
|
45
|
+
}),
|
|
46
|
+
data = _useRequest2.data;
|
|
47
|
+
return {
|
|
48
|
+
jcssBubbleData: (data === null || data === void 0 ? void 0 : data.data) || {}
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
// 处置证信息
|
|
52
|
+
useCzz: function useCzz(id) {
|
|
53
|
+
var _useRequest3 = useRequest(function () {
|
|
54
|
+
return request.get('/cloud/jzlj/web/api/gis/real/time/jcssCzzInfo', {
|
|
55
|
+
data: {
|
|
56
|
+
id: id,
|
|
57
|
+
startEndType: 'END'
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}),
|
|
61
|
+
data = _useRequest3.data;
|
|
62
|
+
return {
|
|
63
|
+
data: (data === null || data === void 0 ? void 0 : data.data) || {}
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
// 出土量分析
|
|
67
|
+
useCtl: function useCtl(id) {
|
|
68
|
+
var _useRequest4 = useRequest(function () {
|
|
69
|
+
return request.get('/cloud/jzlj/web/api/gis/real/time/jcssOrderCzzSummary', {
|
|
70
|
+
data: {
|
|
71
|
+
id: id,
|
|
72
|
+
startEndType: 'END',
|
|
73
|
+
startDate: dayjs().format('YYYY-MM-DD'),
|
|
74
|
+
endDate: dayjs().format('YYYY-MM-DD')
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}),
|
|
78
|
+
data = _useRequest4.data,
|
|
79
|
+
loading = _useRequest4.loading;
|
|
80
|
+
return {
|
|
81
|
+
data: (data === null || data === void 0 ? void 0 : data.data) || {},
|
|
82
|
+
loading: loading
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
// 出土运量
|
|
86
|
+
useCtyl: function useCtyl(id) {
|
|
87
|
+
var _useRequest5 = useRequest(function () {
|
|
88
|
+
return request.get('/cloud/jzlj/web/api/gis/real/time/jcssOrderAnalyse', {
|
|
89
|
+
data: {
|
|
90
|
+
id: id,
|
|
91
|
+
startEndType: 'END',
|
|
92
|
+
startDate: dayjs().subtract(6, 'day').format('YYYY-MM-DD'),
|
|
93
|
+
endDate: dayjs().format('YYYY-MM-DD')
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}),
|
|
97
|
+
data = _useRequest5.data,
|
|
98
|
+
loading = _useRequest5.loading;
|
|
99
|
+
return {
|
|
100
|
+
data: (data === null || data === void 0 ? void 0 : data.data) || {},
|
|
101
|
+
loading: loading
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var disposeApis = {
|
|
106
|
+
page: function page(_ref) {
|
|
107
|
+
var startingPointId = _ref.startingPointId,
|
|
108
|
+
_page = _ref.page,
|
|
109
|
+
size = _ref.size,
|
|
110
|
+
restParams = _objectWithoutProperties(_ref, _excluded);
|
|
111
|
+
return request.get("/cloud/jzlj/web/api/disposal/certificate/info/page", {
|
|
112
|
+
data: _objectSpread({
|
|
113
|
+
page: _page,
|
|
114
|
+
size: size,
|
|
115
|
+
endingPointId: startingPointId
|
|
116
|
+
}, restParams)
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
list: function list(_ref2) {
|
|
120
|
+
var startingPointId = _ref2.startingPointId,
|
|
121
|
+
restParams = _objectWithoutProperties(_ref2, _excluded2);
|
|
122
|
+
return request.get("/cloud/jzlj/web/api/disposal/certificate/info/list", {
|
|
123
|
+
data: _objectSpread({
|
|
124
|
+
endingPointId: startingPointId,
|
|
125
|
+
coordinateType: 'wgs84'
|
|
126
|
+
}, restParams)
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// 联单
|
|
132
|
+
var collectionApis = {
|
|
133
|
+
page: function page(_ref3) {
|
|
134
|
+
var startingPointId = _ref3.startingPointId,
|
|
135
|
+
stepThreeOperateTimeLeft = _ref3.stepThreeOperateTimeLeft,
|
|
136
|
+
stepThreeOperateTimeRight = _ref3.stepThreeOperateTimeRight,
|
|
137
|
+
_page2 = _ref3.page,
|
|
138
|
+
size = _ref3.size,
|
|
139
|
+
restParams = _objectWithoutProperties(_ref3, _excluded3);
|
|
140
|
+
return request.get("/cloud/jzlj/web/api/car/transport/joint/order/record/page", {
|
|
141
|
+
data: _objectSpread({
|
|
142
|
+
page: _page2,
|
|
143
|
+
size: size,
|
|
144
|
+
endingPointId: startingPointId,
|
|
145
|
+
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
|
|
146
|
+
stepThreeOperateTimeRight: stepThreeOperateTimeRight
|
|
147
|
+
}, restParams)
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
// 统计
|
|
151
|
+
total: function total(_ref4) {
|
|
152
|
+
var startingPointId = _ref4.startingPointId,
|
|
153
|
+
stepThreeOperateTimeLeft = _ref4.stepThreeOperateTimeLeft,
|
|
154
|
+
stepThreeOperateTimeRight = _ref4.stepThreeOperateTimeRight,
|
|
155
|
+
restParams = _objectWithoutProperties(_ref4, _excluded4);
|
|
156
|
+
return request.get("/cloud/jzlj/web/api/gis/real/time/jcssJzJointOrderSummaryStatistics", {
|
|
157
|
+
data: _objectSpread({
|
|
158
|
+
endingPointId: startingPointId,
|
|
159
|
+
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft,
|
|
160
|
+
stepThreeOperateTimeRight: stepThreeOperateTimeRight
|
|
161
|
+
}, restParams)
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
// 图表
|
|
165
|
+
jcssOrderAnalyse: function jcssOrderAnalyse(_ref5) {
|
|
166
|
+
var startingPointId = _ref5.startingPointId,
|
|
167
|
+
startDate = _ref5.startDate,
|
|
168
|
+
endDate = _ref5.endDate;
|
|
169
|
+
return request.get("/cloud/jzlj/web/api/gis/real/time/jcssOrderAnalyse", {
|
|
170
|
+
data: {
|
|
171
|
+
id: startingPointId,
|
|
172
|
+
startDate: startDate,
|
|
173
|
+
endDate: endDate,
|
|
174
|
+
startEndType: 'END'
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
export { collectionApis, disposeApis, overviewApis };
|
|
180
|
+
|
|
181
|
+
// 建筑垃圾枚举
|
|
182
|
+
export var fetchJzljEnum = function fetchJzljEnum(enumName) {
|
|
183
|
+
var _useRequest6 = useRequest(function () {
|
|
184
|
+
return request.get("/cloud/jzlj/common/loadEnumValue", {
|
|
185
|
+
data: {
|
|
186
|
+
enumName: enumName
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
}, {
|
|
190
|
+
refreshDeps: [enumName]
|
|
191
|
+
}),
|
|
192
|
+
_useRequest6$data = _useRequest6.data,
|
|
193
|
+
data = _useRequest6$data === void 0 ? {} : _useRequest6$data;
|
|
194
|
+
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
195
|
+
};
|
|
196
|
+
export var getByParamTypeCode = function getByParamTypeCode(paramTypeCode) {
|
|
197
|
+
var _useRequest7 = useRequest(function () {
|
|
198
|
+
return request.get("/cloud/management/rest/np/param/getByParamTypeCode", {
|
|
199
|
+
data: {
|
|
200
|
+
parameters: JSON.stringify({
|
|
201
|
+
paramTypeCode: paramTypeCode,
|
|
202
|
+
tenantId: getVtxToken('tenantId')
|
|
203
|
+
})
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}, {
|
|
207
|
+
refreshDeps: [paramTypeCode]
|
|
208
|
+
}),
|
|
209
|
+
_useRequest7$data = _useRequest7.data,
|
|
210
|
+
data = _useRequest7$data === void 0 ? {} : _useRequest7$data;
|
|
211
|
+
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
212
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JzljDfTpdContext } from "../..";
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export default function Base() {
|
|
5
|
+
var _React$useContext = React.useContext(JzljDfTpdContext),
|
|
6
|
+
theme = _React$useContext.theme,
|
|
7
|
+
id = _React$useContext.id,
|
|
8
|
+
jcssCode = _React$useContext.jcssCode;
|
|
9
|
+
var src = "/jcss-reborn/#/facility?code=".concat(jcssCode, "&theme=").concat(theme, "&id=").concat(id);
|
|
10
|
+
return /*#__PURE__*/_jsx("div", {
|
|
11
|
+
style: {
|
|
12
|
+
width: '100%',
|
|
13
|
+
height: '100%'
|
|
14
|
+
},
|
|
15
|
+
children: /*#__PURE__*/_jsx("iframe", {
|
|
16
|
+
src: src,
|
|
17
|
+
style: {
|
|
18
|
+
width: '100%',
|
|
19
|
+
height: '100%',
|
|
20
|
+
border: 'none'
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { VmBarCharts, VmEmpty, VmFactorList, VmWrapper } from "../../../_components";
|
|
2
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
import overview_ctyl_pjrcc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
|
|
5
|
+
import overview_ctyl_pjrcc_light from "../../imgs/overview_ctyl_pjrcc_light.png";
|
|
6
|
+
import overview_ctyl_pjryl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
|
|
7
|
+
import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
export default function Chart(_ref) {
|
|
10
|
+
var _ref$data = _ref.data,
|
|
11
|
+
data = _ref$data === void 0 ? {} : _ref$data;
|
|
12
|
+
var _useSettings = useSettings(),
|
|
13
|
+
isDark = _useSettings.isDark;
|
|
14
|
+
var _data$avgDayCount = data.avgDayCount,
|
|
15
|
+
avgDayCount = _data$avgDayCount === void 0 ? 0 : _data$avgDayCount,
|
|
16
|
+
_data$avgDayWeight = data.avgDayWeight,
|
|
17
|
+
avgDayWeight = _data$avgDayWeight === void 0 ? 0 : _data$avgDayWeight,
|
|
18
|
+
_data$histogramList = data.histogramList,
|
|
19
|
+
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
20
|
+
var dataList_top = [{
|
|
21
|
+
name: '平均日运量',
|
|
22
|
+
unit: '吨',
|
|
23
|
+
value: avgDayWeight,
|
|
24
|
+
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
25
|
+
fontType: 'blue',
|
|
26
|
+
unitStyle: {
|
|
27
|
+
fontSize: 14
|
|
28
|
+
},
|
|
29
|
+
style: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
justifyContent: 'center'
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
name: '平均日车次',
|
|
35
|
+
unit: '次',
|
|
36
|
+
value: avgDayCount,
|
|
37
|
+
img: isDark ? overview_ctyl_pjrcc_dark : overview_ctyl_pjrcc_light,
|
|
38
|
+
fontType: 'blue',
|
|
39
|
+
unitStyle: {
|
|
40
|
+
fontSize: 14
|
|
41
|
+
},
|
|
42
|
+
style: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
justifyContent: 'center'
|
|
45
|
+
}
|
|
46
|
+
}];
|
|
47
|
+
return /*#__PURE__*/_jsxs(VmWrapper, {
|
|
48
|
+
showTitle: false,
|
|
49
|
+
style: {
|
|
50
|
+
border: 0
|
|
51
|
+
},
|
|
52
|
+
children: [/*#__PURE__*/_jsx(VmFactorList, {
|
|
53
|
+
list: dataList_top,
|
|
54
|
+
style: {
|
|
55
|
+
background: 'unset'
|
|
56
|
+
}
|
|
57
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
58
|
+
style: {
|
|
59
|
+
height: 'calc(100% - 70px)'
|
|
60
|
+
},
|
|
61
|
+
children: histogramList !== null && histogramList !== void 0 && histogramList.length ? /*#__PURE__*/_jsx(VmBarCharts, {
|
|
62
|
+
dataList: [{
|
|
63
|
+
name: '运量',
|
|
64
|
+
data: histogramList.map(function (item) {
|
|
65
|
+
return "\u2000".concat(item.weight);
|
|
66
|
+
}),
|
|
67
|
+
color: 'geekblue',
|
|
68
|
+
yAxisIndex: 1
|
|
69
|
+
}],
|
|
70
|
+
xAxis: histogramList.map(function (item) {
|
|
71
|
+
return item.date;
|
|
72
|
+
}),
|
|
73
|
+
yAxisList: [{
|
|
74
|
+
key: "\u2001",
|
|
75
|
+
unit: '次',
|
|
76
|
+
name: '(次)'
|
|
77
|
+
}, {
|
|
78
|
+
key: "\u2000",
|
|
79
|
+
unit: '吨',
|
|
80
|
+
name: '(吨)'
|
|
81
|
+
}],
|
|
82
|
+
lineList: [{
|
|
83
|
+
name: '车次',
|
|
84
|
+
data: histogramList.map(function (item) {
|
|
85
|
+
return "\u2001".concat(item.count);
|
|
86
|
+
}),
|
|
87
|
+
color: '#0FB964',
|
|
88
|
+
yAxisIndex: 0
|
|
89
|
+
}],
|
|
90
|
+
barBorderRadius: [4, 4, 0, 0]
|
|
91
|
+
}) : /*#__PURE__*/_jsx(VmEmpty, {
|
|
92
|
+
type: "NO_CHART"
|
|
93
|
+
})
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
}
|