@vtx/modals2 5.0.31 → 5.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/index.js +2 -1
- package/lib/_components/vm-info-collection/style/index.js +1 -0
- package/lib/_components/vm-pie-charts/index.js +4 -2
- package/lib/_components/vm-popover/index.js +19 -0
- package/lib/_components/vm-popover/index.less +7 -0
- package/lib/style/index.less +1 -1
- package/lib/vtx-base-modal/style/index.less +0 -1
- package/lib/vtx-car-modal/api.js +47 -4
- package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +6 -6
- package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +27 -20
- package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +21 -6
- package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +11 -6
- package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +19 -12
- package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +9 -7
- package/lib/vtx-car-modal/index.js +1 -1
- package/lib/vtx-device-modal/components/BaseInfo/KnowledgeBasesDetail.js +77 -0
- package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +92 -0
- package/lib/vtx-device-modal/components/BaseInfo/index.js +104 -46
- package/lib/vtx-jzlj-df-tpd-modal/api.js +31 -0
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +8 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +7 -6
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +5 -4
- package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +11 -3
- package/lib/vtx-jzlj-gcxm-modal/api.js +31 -0
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +9 -7
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +6 -5
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +9 -8
- package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -2
- package/lib/vtx-jzlj-xnc-modal/api.js +31 -0
- package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +5 -4
- package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +9 -6
- package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +9 -7
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +7 -6
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +5 -4
- package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +8 -7
- package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +11 -3
- package/lib/vtx-staff-modal/components/Equipment/index.js +1 -1
- package/package.json +78 -78
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import { PaperClipOutlined } from '@ant-design/icons';
|
|
14
|
+
import { VmIframeModal, VmPopover } from "../../../_components";
|
|
15
|
+
import { getVtxToken } from '@vtx/utils';
|
|
16
|
+
import { useSetState } from 'ahooks';
|
|
17
|
+
import { Button, Popover } from 'antd';
|
|
18
|
+
import { useState } from 'react';
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
+
var PreviewAndDownload = function PreviewAndDownload(_ref) {
|
|
21
|
+
var key = _ref.key,
|
|
22
|
+
data = _ref.data,
|
|
23
|
+
theme = _ref.theme;
|
|
24
|
+
var _useState = useState(),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
info = _useState2[0],
|
|
27
|
+
setInfo = _useState2[1];
|
|
28
|
+
var _useSetState = useSetState({
|
|
29
|
+
src: '',
|
|
30
|
+
visible: false,
|
|
31
|
+
title: ''
|
|
32
|
+
}),
|
|
33
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
34
|
+
iframeModalInfo = _useSetState2[0],
|
|
35
|
+
setIframeModalInfo = _useSetState2[1];
|
|
36
|
+
var token = getVtxToken('token');
|
|
37
|
+
var onPreview = function onPreview(_ref2) {
|
|
38
|
+
var id = _ref2.id,
|
|
39
|
+
name = _ref2.name;
|
|
40
|
+
var url = "".concat(window.location.origin, "/cloudFile/common/downloadFile?id=").concat(id, "&fullfilename=").concat(id, "-").concat(name.replace(/\s*/g, ''), "&token=").concat(token);
|
|
41
|
+
var base64 = Buffer.from(url).toString('base64');
|
|
42
|
+
setIframeModalInfo({
|
|
43
|
+
src: "".concat(window.location.origin, "/cloud/kkPreview/onlinePreview?url=").concat(base64, "&token=").concat(token),
|
|
44
|
+
title: '文件预览',
|
|
45
|
+
visible: true
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//下载
|
|
49
|
+
var download = function download(obj) {
|
|
50
|
+
window.location.href = "/cloudFile/common/downloadFile?id=".concat(obj.id, "&token=").concat(token);
|
|
51
|
+
};
|
|
52
|
+
var component = /*#__PURE__*/_jsxs("div", {
|
|
53
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
54
|
+
size: "small",
|
|
55
|
+
onClick: function onClick() {
|
|
56
|
+
return onPreview(info);
|
|
57
|
+
},
|
|
58
|
+
children: "\u9884\u89C8"
|
|
59
|
+
}), "\xA0\xA0", /*#__PURE__*/_jsx(Button, {
|
|
60
|
+
type: "primary",
|
|
61
|
+
size: "small",
|
|
62
|
+
onClick: function onClick() {
|
|
63
|
+
return download(info);
|
|
64
|
+
},
|
|
65
|
+
children: "\u4E0B\u8F7D"
|
|
66
|
+
})]
|
|
67
|
+
});
|
|
68
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
69
|
+
children: [/*#__PURE__*/_jsxs(VmPopover, {
|
|
70
|
+
trigger: "click",
|
|
71
|
+
content: component,
|
|
72
|
+
onClick: function onClick() {
|
|
73
|
+
return setInfo(data);
|
|
74
|
+
},
|
|
75
|
+
children: [/*#__PURE__*/_jsx(PaperClipOutlined, {
|
|
76
|
+
style: {
|
|
77
|
+
color: 'var(--modal-close-color)'
|
|
78
|
+
}
|
|
79
|
+
}), /*#__PURE__*/_jsx("a", {
|
|
80
|
+
children: data.name
|
|
81
|
+
}), /*#__PURE__*/_jsx("br", {})]
|
|
82
|
+
}, key), /*#__PURE__*/_jsx(VmIframeModal, _objectSpread(_objectSpread({}, iframeModalInfo), {}, {
|
|
83
|
+
theme: theme,
|
|
84
|
+
onCancel: function onCancel() {
|
|
85
|
+
return setIframeModalInfo({
|
|
86
|
+
visible: false
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}))]
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
export default PreviewAndDownload;
|
|
@@ -6,17 +6,45 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
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
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
9
|
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
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
12
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
15
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
16
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
17
|
import { getVtxToken } from '@vtx/utils';
|
|
18
|
+
import { useSetState } from 'ahooks';
|
|
14
19
|
import { Col, Row } from 'antd';
|
|
20
|
+
import { isEmpty, uniqBy } from 'lodash';
|
|
15
21
|
import { useMemo } from 'react';
|
|
16
22
|
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
17
|
-
import
|
|
23
|
+
import useSettings from "../../../_hooks/useSettings";
|
|
24
|
+
import KnowledgeBasesDetail from "./KnowledgeBasesDetail";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
26
|
var BaseInfo = function BaseInfo(_ref) {
|
|
19
27
|
var info = _ref.info;
|
|
28
|
+
var _useSettings = useSettings(),
|
|
29
|
+
theme = _useSettings.theme;
|
|
30
|
+
var knowledgeBasesList = [];
|
|
31
|
+
if (!isEmpty(info.deviceTypeKnowledgeBases)) {
|
|
32
|
+
var _knowledgeBasesList;
|
|
33
|
+
(_knowledgeBasesList = knowledgeBasesList).push.apply(_knowledgeBasesList, _toConsumableArray(info.deviceTypeKnowledgeBases));
|
|
34
|
+
}
|
|
35
|
+
if (!isEmpty(info.deviceModelKnowledgeBases)) {
|
|
36
|
+
var _knowledgeBasesList2;
|
|
37
|
+
(_knowledgeBasesList2 = knowledgeBasesList).push.apply(_knowledgeBasesList2, _toConsumableArray(info.deviceModelKnowledgeBases));
|
|
38
|
+
}
|
|
39
|
+
knowledgeBasesList = uniqBy(knowledgeBasesList, 'id');
|
|
40
|
+
var _useSetState = useSetState({
|
|
41
|
+
visible: false,
|
|
42
|
+
title: '',
|
|
43
|
+
info: {}
|
|
44
|
+
}),
|
|
45
|
+
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
46
|
+
modalInfo = _useSetState2[0],
|
|
47
|
+
setModalInfo = _useSetState2[1];
|
|
20
48
|
var data = [{
|
|
21
49
|
label: '设备编码',
|
|
22
50
|
key: 'code',
|
|
@@ -45,6 +73,27 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
45
73
|
label: '联系方式',
|
|
46
74
|
key: 'phone',
|
|
47
75
|
value: info === null || info === void 0 ? void 0 : info.phone
|
|
76
|
+
}, {
|
|
77
|
+
label: '知识库',
|
|
78
|
+
key: 'knowledgeBases',
|
|
79
|
+
render: function render() {
|
|
80
|
+
if (isEmpty(knowledgeBasesList)) {
|
|
81
|
+
return '--';
|
|
82
|
+
}
|
|
83
|
+
return knowledgeBasesList.map(function (item) {
|
|
84
|
+
return /*#__PURE__*/_jsx("div", {
|
|
85
|
+
onClick: function onClick() {
|
|
86
|
+
setModalInfo({
|
|
87
|
+
visible: true,
|
|
88
|
+
info: item
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
92
|
+
children: item.title
|
|
93
|
+
})
|
|
94
|
+
}, item.id);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
48
97
|
}];
|
|
49
98
|
var url = '';
|
|
50
99
|
if (info.photoIds) {
|
|
@@ -89,52 +138,61 @@ var BaseInfo = function BaseInfo(_ref) {
|
|
|
89
138
|
type: 'point',
|
|
90
139
|
id: info.name
|
|
91
140
|
})] : [];
|
|
92
|
-
return /*#__PURE__*/_jsxs(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
height: '100%'
|
|
96
|
-
},
|
|
97
|
-
children: [/*#__PURE__*/_jsx(Col, {
|
|
98
|
-
flex: '400px',
|
|
99
|
-
style: {
|
|
100
|
-
height: '100%'
|
|
101
|
-
},
|
|
102
|
-
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
103
|
-
title: '基本信息',
|
|
104
|
-
children: [url && /*#__PURE__*/_jsx("img", {
|
|
105
|
-
src: url,
|
|
106
|
-
style: {
|
|
107
|
-
height: 207,
|
|
108
|
-
borderRadius: 8,
|
|
109
|
-
marginBottom: 16
|
|
110
|
-
}
|
|
111
|
-
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
112
|
-
data: data,
|
|
113
|
-
horizontal: true,
|
|
114
|
-
ellipsis: true
|
|
115
|
-
})]
|
|
116
|
-
})
|
|
117
|
-
}), /*#__PURE__*/_jsx(Col, {
|
|
118
|
-
flex: '1',
|
|
141
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
142
|
+
children: [/*#__PURE__*/_jsxs(Row, {
|
|
143
|
+
gutter: [16, 16],
|
|
119
144
|
style: {
|
|
120
|
-
minWidth: 0,
|
|
121
145
|
height: '100%'
|
|
122
146
|
},
|
|
123
|
-
children: /*#__PURE__*/_jsx(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
147
|
+
children: [/*#__PURE__*/_jsx(Col, {
|
|
148
|
+
flex: '400px',
|
|
149
|
+
style: {
|
|
150
|
+
height: '100%'
|
|
151
|
+
},
|
|
152
|
+
children: /*#__PURE__*/_jsxs(VmWrapper, {
|
|
153
|
+
title: '基本信息',
|
|
154
|
+
children: [url && /*#__PURE__*/_jsx("img", {
|
|
155
|
+
src: url,
|
|
156
|
+
style: {
|
|
157
|
+
height: 207,
|
|
158
|
+
borderRadius: 8,
|
|
159
|
+
marginBottom: 16
|
|
160
|
+
}
|
|
161
|
+
}), /*#__PURE__*/_jsx(VmInfoCollection, {
|
|
162
|
+
data: data,
|
|
163
|
+
horizontal: true,
|
|
164
|
+
ellipsis: true
|
|
165
|
+
})]
|
|
166
|
+
})
|
|
167
|
+
}), /*#__PURE__*/_jsx(Col, {
|
|
168
|
+
flex: '1',
|
|
169
|
+
style: {
|
|
170
|
+
minWidth: 0,
|
|
171
|
+
height: '100%'
|
|
172
|
+
},
|
|
173
|
+
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
174
|
+
showTitle: false,
|
|
175
|
+
children: lng && lat ? /*#__PURE__*/_jsx("div", {
|
|
176
|
+
style: {
|
|
177
|
+
height: '100%'
|
|
178
|
+
},
|
|
179
|
+
children: /*#__PURE__*/_jsx(VmMap, {
|
|
180
|
+
mapPoints: mapPoints,
|
|
181
|
+
mapType: 'wgs84',
|
|
182
|
+
mapCenter: [lng, lat],
|
|
183
|
+
address: info === null || info === void 0 ? void 0 : info.address
|
|
184
|
+
})
|
|
185
|
+
}) : null
|
|
186
|
+
})
|
|
187
|
+
})]
|
|
188
|
+
}), /*#__PURE__*/_jsx(KnowledgeBasesDetail, _objectSpread(_objectSpread({}, modalInfo), {}, {
|
|
189
|
+
theme: theme,
|
|
190
|
+
onCancel: function onCancel() {
|
|
191
|
+
return setModalInfo({
|
|
192
|
+
visible: false
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}))]
|
|
138
196
|
});
|
|
139
197
|
};
|
|
140
198
|
export default BaseInfo;
|
|
@@ -209,4 +209,35 @@ export var getByParamTypeCode = function getByParamTypeCode(paramTypeCode) {
|
|
|
209
209
|
_useRequest7$data = _useRequest7.data,
|
|
210
210
|
data = _useRequest7$data === void 0 ? {} : _useRequest7$data;
|
|
211
211
|
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
// 单位
|
|
215
|
+
export var useUnit = function useUnit() {
|
|
216
|
+
var _data$data, _unitStr;
|
|
217
|
+
var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
|
|
218
|
+
var _useRequest8 = useRequest(function () {
|
|
219
|
+
return request.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
|
|
220
|
+
data: {}
|
|
221
|
+
});
|
|
222
|
+
}, {
|
|
223
|
+
refreshDeps: [groupCode]
|
|
224
|
+
}),
|
|
225
|
+
data = _useRequest8.data;
|
|
226
|
+
var obj = {};
|
|
227
|
+
var originalData = data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data[groupCode];
|
|
228
|
+
for (var group in originalData) {
|
|
229
|
+
if (originalData.hasOwnProperty(group)) {
|
|
230
|
+
for (var item in originalData[group]) {
|
|
231
|
+
var _originalData$group;
|
|
232
|
+
obj[item] = (_originalData$group = originalData[group]) === null || _originalData$group === void 0 ? void 0 : _originalData$group[item];
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
var jointOrderWeightUnitTypeName = obj === null || obj === void 0 ? void 0 : obj.jointOrderWeightUnitTypeName;
|
|
237
|
+
var nameSplitArr = jointOrderWeightUnitTypeName === null || jointOrderWeightUnitTypeName === void 0 ? void 0 : jointOrderWeightUnitTypeName.split('(');
|
|
238
|
+
var unitStr = (nameSplitArr === null || nameSplitArr === void 0 ? void 0 : nameSplitArr[1]) || '吨)';
|
|
239
|
+
unitStr = (_unitStr = unitStr) === null || _unitStr === void 0 ? void 0 : _unitStr.replace(')', '');
|
|
240
|
+
return {
|
|
241
|
+
unitStr: unitStr
|
|
242
|
+
};
|
|
212
243
|
};
|
|
@@ -8,7 +8,8 @@ import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png"
|
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export default function Chart(_ref) {
|
|
10
10
|
var _ref$data = _ref.data,
|
|
11
|
-
data = _ref$data === void 0 ? {} : _ref$data
|
|
11
|
+
data = _ref$data === void 0 ? {} : _ref$data,
|
|
12
|
+
unitStr = _ref.unitStr;
|
|
12
13
|
var _useSettings = useSettings(),
|
|
13
14
|
isDark = _useSettings.isDark;
|
|
14
15
|
var _data$avgDayCount = data.avgDayCount,
|
|
@@ -19,7 +20,7 @@ export default function Chart(_ref) {
|
|
|
19
20
|
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
20
21
|
var dataList_top = [{
|
|
21
22
|
name: '平均日运量',
|
|
22
|
-
unit:
|
|
23
|
+
unit: unitStr,
|
|
23
24
|
value: avgDayWeight,
|
|
24
25
|
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
25
26
|
fontType: 'blue',
|
|
@@ -76,8 +77,8 @@ export default function Chart(_ref) {
|
|
|
76
77
|
name: '(次)'
|
|
77
78
|
}, {
|
|
78
79
|
key: "\u2000",
|
|
79
|
-
unit:
|
|
80
|
-
name:
|
|
80
|
+
unit: unitStr,
|
|
81
|
+
name: "(".concat(unitStr, ")")
|
|
81
82
|
}],
|
|
82
83
|
lineList: [{
|
|
83
84
|
name: '车次',
|
|
@@ -16,7 +16,7 @@ import React, { useEffect } from 'react';
|
|
|
16
16
|
import { JzljDfTpdContext } from "../..";
|
|
17
17
|
import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
19
|
-
import { collectionApis } from "../../api";
|
|
19
|
+
import { collectionApis, useUnit } from "../../api";
|
|
20
20
|
import "./index.less";
|
|
21
21
|
import dayjs from 'dayjs';
|
|
22
22
|
import cc_dark from "../../imgs/overview_ctyl_pjrcc_dark.png";
|
|
@@ -55,6 +55,8 @@ export default function Collection() {
|
|
|
55
55
|
endingPointName = state.endingPointName,
|
|
56
56
|
totalData = state.totalData,
|
|
57
57
|
chartData = state.chartData;
|
|
58
|
+
var _useUnit = useUnit(),
|
|
59
|
+
unitStr = _useUnit.unitStr;
|
|
58
60
|
var columns = [['联单编号', 'code', {
|
|
59
61
|
width: 120,
|
|
60
62
|
fixed: 'left',
|
|
@@ -94,7 +96,7 @@ export default function Collection() {
|
|
|
94
96
|
width: 180
|
|
95
97
|
}], ['建筑垃圾类别', 'garbageTypeName', {
|
|
96
98
|
width: 120
|
|
97
|
-
}], [
|
|
99
|
+
}], ["\u8FD0\u91CF(".concat(unitStr, ")"), 'receivedWeight', {
|
|
98
100
|
width: 120,
|
|
99
101
|
align: 'right'
|
|
100
102
|
}], ['操作', 'action', {
|
|
@@ -127,8 +129,8 @@ export default function Collection() {
|
|
|
127
129
|
disposalCertificateInfoCode: disposalCertificateInfoCode,
|
|
128
130
|
code: code,
|
|
129
131
|
startingPointName: endingPointName,
|
|
130
|
-
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD'),
|
|
131
|
-
stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD')
|
|
132
|
+
stepThreeOperateTimeLeft: stepThreeOperateTimeLeft.format('YYYY-MM-DD 00:00:00'),
|
|
133
|
+
stepThreeOperateTimeRight: stepThreeOperateTimeRight.format('YYYY-MM-DD 23:59:59')
|
|
132
134
|
};
|
|
133
135
|
collectionApis.jcssOrderAnalyse({
|
|
134
136
|
startingPointId: id,
|
|
@@ -195,7 +197,7 @@ export default function Collection() {
|
|
|
195
197
|
fontType: 'green'
|
|
196
198
|
}, {
|
|
197
199
|
name: '总接收量',
|
|
198
|
-
unit:
|
|
200
|
+
unit: unitStr,
|
|
199
201
|
value: totalWeight,
|
|
200
202
|
unitStyle: {
|
|
201
203
|
fontSize: 14
|
|
@@ -278,7 +280,8 @@ export default function Collection() {
|
|
|
278
280
|
},
|
|
279
281
|
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
280
282
|
children: activeKey === 'chart' ? /*#__PURE__*/_jsx(Chart, {
|
|
281
|
-
data: chartData
|
|
283
|
+
data: chartData,
|
|
284
|
+
unitStr: unitStr
|
|
282
285
|
}) : /*#__PURE__*/_jsxs("div", {
|
|
283
286
|
className: "collection-myTable",
|
|
284
287
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
@@ -16,7 +16,7 @@ import React from 'react';
|
|
|
16
16
|
import { JzljDfTpdContext } from "../..";
|
|
17
17
|
import { VmFactorList, VmFilter, VmTable, VmTag, VmWrapper } from "../../../_components";
|
|
18
18
|
import useSettings from "../../../_hooks/useSettings";
|
|
19
|
-
import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis } from "../../api";
|
|
19
|
+
import { disposeApis, fetchJzljEnum, getByParamTypeCode, overviewApis, useUnit } from "../../api";
|
|
20
20
|
import FlowMap from "./FlowMap";
|
|
21
21
|
import "./index.less";
|
|
22
22
|
import dispose_czz_dark from "../../imgs/dispose_czz_dark.png";
|
|
@@ -52,6 +52,8 @@ export default function Dispose() {
|
|
|
52
52
|
effectiveStatusCode = state.effectiveStatusCode,
|
|
53
53
|
garbageTypeCode = state.garbageTypeCode,
|
|
54
54
|
flowData = state.flowData;
|
|
55
|
+
var _useUnit = useUnit(),
|
|
56
|
+
unitStr = _useUnit.unitStr;
|
|
55
57
|
var effectiveStatusList = fetchJzljEnum('EffectiveStatusEnum');
|
|
56
58
|
var garbageTypeList = getByParamTypeCode('param_jzlj_disposal_garbage_type');
|
|
57
59
|
var columns = [['运输单位', 'transportUnitName', {
|
|
@@ -62,7 +64,7 @@ export default function Dispose() {
|
|
|
62
64
|
ellipsis: true
|
|
63
65
|
}], ['运输垃圾类型', 'garbageTypeName', {
|
|
64
66
|
width: 100
|
|
65
|
-
}], [
|
|
67
|
+
}], ["\u8FD0\u8F93\u91CF(".concat(unitStr, ")"), 'transportWeight', {
|
|
66
68
|
width: 80,
|
|
67
69
|
align: 'right'
|
|
68
70
|
}], ['申报有效期', 'effectiveDate', {
|
|
@@ -93,7 +95,7 @@ export default function Dispose() {
|
|
|
93
95
|
setIframeModalInfo({
|
|
94
96
|
visible: true,
|
|
95
97
|
title: '处置证信息',
|
|
96
|
-
src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id)
|
|
98
|
+
src: "/jzlj/#/disposalApprovalFill?id=".concat(record.id, "&effectiveStatusCode=").concat(record.effectiveStatusCode)
|
|
97
99
|
});
|
|
98
100
|
},
|
|
99
101
|
children: "\u67E5\u770B"
|
|
@@ -170,7 +172,7 @@ export default function Dispose() {
|
|
|
170
172
|
totalWeight = _ctlData$totalWeight === void 0 ? 0 : _ctlData$totalWeight;
|
|
171
173
|
var totalList = [{
|
|
172
174
|
name: '处置证数量',
|
|
173
|
-
unit: '
|
|
175
|
+
unit: '张',
|
|
174
176
|
value: totalCzzCount,
|
|
175
177
|
unitStyle: {
|
|
176
178
|
fontSize: 14
|
|
@@ -184,7 +186,7 @@ export default function Dispose() {
|
|
|
184
186
|
fontType: 'blue'
|
|
185
187
|
}, {
|
|
186
188
|
name: '总已运量',
|
|
187
|
-
unit:
|
|
189
|
+
unit: unitStr,
|
|
188
190
|
value: yysWeight,
|
|
189
191
|
unitStyle: {
|
|
190
192
|
fontSize: 14
|
|
@@ -198,7 +200,7 @@ export default function Dispose() {
|
|
|
198
200
|
fontType: 'purple'
|
|
199
201
|
}, {
|
|
200
202
|
name: '剩余量',
|
|
201
|
-
unit:
|
|
203
|
+
unit: unitStr,
|
|
202
204
|
value: syWeight,
|
|
203
205
|
unitStyle: {
|
|
204
206
|
fontSize: 14
|
|
@@ -11,7 +11,8 @@ import useSettings from "../../../_hooks/useSettings";
|
|
|
11
11
|
import { overviewApis } from "../../api";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
export default function CZZ() {
|
|
14
|
+
export default function CZZ(_ref) {
|
|
15
|
+
var unitStr = _ref.unitStr;
|
|
15
16
|
var _React$useContext = React.useContext(JzljDfTpdContext),
|
|
16
17
|
id = _React$useContext.id,
|
|
17
18
|
theme = _React$useContext.theme;
|
|
@@ -34,15 +35,15 @@ export default function CZZ() {
|
|
|
34
35
|
return /*#__PURE__*/_jsx("div", {
|
|
35
36
|
className: "df-tpd-overview-right-top-right ".concat(theme),
|
|
36
37
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
37
|
-
title: "\u63A5\
|
|
38
|
+
title: "\u63A5\u6536\u91CF\u4FE1\u606F",
|
|
38
39
|
children: (dataList === null || dataList === void 0 ? void 0 : dataList.length) > 0 ? /*#__PURE__*/_jsx(VmPieCharts, {
|
|
39
40
|
dataList: dataList,
|
|
40
|
-
name: "\u4ECA\u65E5\u63A5\
|
|
41
|
-
title: "\u4ECA\u65E5\u63A5\
|
|
42
|
-
subTitle: "(
|
|
41
|
+
name: "\u4ECA\u65E5\u63A5\u6536\u91CF",
|
|
42
|
+
title: "\u4ECA\u65E5\u63A5\u6536\u603B\u91CF",
|
|
43
|
+
subTitle: "(".concat(unitStr, ")"),
|
|
43
44
|
total: totalWeight,
|
|
44
45
|
loading: loading,
|
|
45
|
-
unit:
|
|
46
|
+
unit: unitStr,
|
|
46
47
|
innerRadius: ['50%', '70%'],
|
|
47
48
|
outerRadius: ['70%', '80%'],
|
|
48
49
|
legendConfig: {
|
|
@@ -9,7 +9,8 @@ import overview_ctyl_pjrcc_light from "../../imgs/overview_ctyl_pjrcc_light.png"
|
|
|
9
9
|
import overview_ctyl_pjryl_dark from "../../imgs/overview_ctyl_pjryl_dark.png";
|
|
10
10
|
import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export default function CZZ() {
|
|
12
|
+
export default function CZZ(_ref) {
|
|
13
|
+
var unitStr = _ref.unitStr;
|
|
13
14
|
var _React$useContext = React.useContext(JzljDfTpdContext),
|
|
14
15
|
id = _React$useContext.id,
|
|
15
16
|
theme = _React$useContext.theme;
|
|
@@ -26,7 +27,7 @@ export default function CZZ() {
|
|
|
26
27
|
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
27
28
|
var dataList_top = [{
|
|
28
29
|
name: '平均日运量',
|
|
29
|
-
unit:
|
|
30
|
+
unit: unitStr,
|
|
30
31
|
value: avgDayWeight,
|
|
31
32
|
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
32
33
|
fontType: 'blue',
|
|
@@ -80,8 +81,8 @@ export default function CZZ() {
|
|
|
80
81
|
name: '(次)'
|
|
81
82
|
}, {
|
|
82
83
|
key: "\u2000",
|
|
83
|
-
unit:
|
|
84
|
-
name:
|
|
84
|
+
unit: unitStr,
|
|
85
|
+
name: "(".concat(unitStr, ")")
|
|
85
86
|
}],
|
|
86
87
|
lineList: [{
|
|
87
88
|
name: '车次',
|
|
@@ -7,7 +7,8 @@ import "./index.less";
|
|
|
7
7
|
import overview_czz_zl_dark from "../../imgs/overview_czz_zl_dark.png";
|
|
8
8
|
import overview_czz_zs_light from "../../imgs/overview_czz_zs_light.png";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
export default function CZZ() {
|
|
10
|
+
export default function CZZ(_ref) {
|
|
11
|
+
var unitStr = _ref.unitStr;
|
|
11
12
|
var _React$useContext = React.useContext(JzljDfTpdContext),
|
|
12
13
|
id = _React$useContext.id,
|
|
13
14
|
theme = _React$useContext.theme;
|
|
@@ -27,7 +28,7 @@ export default function CZZ() {
|
|
|
27
28
|
syWeight = _data$syWeight === void 0 ? 0 : _data$syWeight;
|
|
28
29
|
var dataList_top = [{
|
|
29
30
|
name: '生效中处置证数量',
|
|
30
|
-
unit: '
|
|
31
|
+
unit: '张',
|
|
31
32
|
value: totalCzzCount,
|
|
32
33
|
img: isDark ? overview_czz_zl_dark : overview_czz_zs_light,
|
|
33
34
|
fontType: 'blue',
|
|
@@ -37,7 +38,7 @@ export default function CZZ() {
|
|
|
37
38
|
}];
|
|
38
39
|
var dataList_yssy = [{
|
|
39
40
|
name: '已运量',
|
|
40
|
-
unit:
|
|
41
|
+
unit: unitStr,
|
|
41
42
|
value: yysWeight,
|
|
42
43
|
unitStyle: {
|
|
43
44
|
fontSize: 14
|
|
@@ -49,7 +50,7 @@ export default function CZZ() {
|
|
|
49
50
|
}
|
|
50
51
|
}, {
|
|
51
52
|
name: '剩余量',
|
|
52
|
-
unit:
|
|
53
|
+
unit: unitStr,
|
|
53
54
|
value: syWeight,
|
|
54
55
|
unitStyle: {
|
|
55
56
|
fontSize: 14
|
|
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { JzljDfTpdContext } from "../..";
|
|
9
9
|
import { VmInfoCollection, VmMap, VmWrapper } from "../../../_components";
|
|
10
|
-
import { overviewApis } from "../../api";
|
|
10
|
+
import { overviewApis, useUnit } from "../../api";
|
|
11
11
|
import CTL from "./CTL";
|
|
12
12
|
import CTYL from "./CTYL";
|
|
13
13
|
import CZZ from "./CZZ";
|
|
@@ -64,6 +64,8 @@ export default function Overview() {
|
|
|
64
64
|
rings: lngLats
|
|
65
65
|
}];
|
|
66
66
|
}
|
|
67
|
+
var _useUnit = useUnit(),
|
|
68
|
+
unitStr = _useUnit.unitStr;
|
|
67
69
|
return /*#__PURE__*/_jsxs("div", {
|
|
68
70
|
className: "df-tpd-overview",
|
|
69
71
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -82,10 +84,16 @@ export default function Overview() {
|
|
|
82
84
|
className: "df-tpd-overview-right",
|
|
83
85
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
84
86
|
className: "df-tpd-overview-right-top",
|
|
85
|
-
children: [/*#__PURE__*/_jsx(CZZ, {
|
|
87
|
+
children: [/*#__PURE__*/_jsx(CZZ, {
|
|
88
|
+
unitStr: unitStr
|
|
89
|
+
}), /*#__PURE__*/_jsx(CTL, {
|
|
90
|
+
unitStr: unitStr
|
|
91
|
+
})]
|
|
86
92
|
}), /*#__PURE__*/_jsx("div", {
|
|
87
93
|
className: "df-tpd-overview-right-bottom",
|
|
88
|
-
children: /*#__PURE__*/_jsx(CTYL, {
|
|
94
|
+
children: /*#__PURE__*/_jsx(CTYL, {
|
|
95
|
+
unitStr: unitStr
|
|
96
|
+
})
|
|
89
97
|
})]
|
|
90
98
|
})]
|
|
91
99
|
});
|
|
@@ -291,4 +291,35 @@ export var getByParamTypeCode = function getByParamTypeCode(paramTypeCode) {
|
|
|
291
291
|
_useRequest8$data = _useRequest8.data,
|
|
292
292
|
data = _useRequest8$data === void 0 ? {} : _useRequest8$data;
|
|
293
293
|
return (data === null || data === void 0 ? void 0 : data.data) || [];
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
// 单位
|
|
297
|
+
export var useUnit = function useUnit() {
|
|
298
|
+
var _data$data, _unitStr;
|
|
299
|
+
var groupCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'XTPZ';
|
|
300
|
+
var _useRequest9 = useRequest(function () {
|
|
301
|
+
return request.get("/cloud/jzlj/web/api/tenant/system/config/getConfig", {
|
|
302
|
+
data: {}
|
|
303
|
+
});
|
|
304
|
+
}, {
|
|
305
|
+
refreshDeps: [groupCode]
|
|
306
|
+
}),
|
|
307
|
+
data = _useRequest9.data;
|
|
308
|
+
var obj = {};
|
|
309
|
+
var originalData = data === null || data === void 0 || (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data[groupCode];
|
|
310
|
+
for (var group in originalData) {
|
|
311
|
+
if (originalData.hasOwnProperty(group)) {
|
|
312
|
+
for (var item in originalData[group]) {
|
|
313
|
+
var _originalData$group;
|
|
314
|
+
obj[item] = (_originalData$group = originalData[group]) === null || _originalData$group === void 0 ? void 0 : _originalData$group[item];
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
var jointOrderWeightUnitTypeName = obj === null || obj === void 0 ? void 0 : obj.jointOrderWeightUnitTypeName;
|
|
319
|
+
var nameSplitArr = jointOrderWeightUnitTypeName === null || jointOrderWeightUnitTypeName === void 0 ? void 0 : jointOrderWeightUnitTypeName.split('(');
|
|
320
|
+
var unitStr = (nameSplitArr === null || nameSplitArr === void 0 ? void 0 : nameSplitArr[1]) || '吨)';
|
|
321
|
+
unitStr = (_unitStr = unitStr) === null || _unitStr === void 0 ? void 0 : _unitStr.replace(')', '');
|
|
322
|
+
return {
|
|
323
|
+
unitStr: unitStr
|
|
324
|
+
};
|
|
294
325
|
};
|
|
@@ -8,7 +8,8 @@ import overview_ctyl_pjryl_light from "../../imgs/overview_ctyl_pjryl_light.png"
|
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export default function Chart(_ref) {
|
|
10
10
|
var _ref$data = _ref.data,
|
|
11
|
-
data = _ref$data === void 0 ? {} : _ref$data
|
|
11
|
+
data = _ref$data === void 0 ? {} : _ref$data,
|
|
12
|
+
unitStr = _ref.unitStr;
|
|
12
13
|
var _useSettings = useSettings(),
|
|
13
14
|
isDark = _useSettings.isDark;
|
|
14
15
|
var _data$avgDayCount = data.avgDayCount,
|
|
@@ -19,7 +20,7 @@ export default function Chart(_ref) {
|
|
|
19
20
|
histogramList = _data$histogramList === void 0 ? [] : _data$histogramList;
|
|
20
21
|
var dataList_top = [{
|
|
21
22
|
name: '平均日运量',
|
|
22
|
-
unit:
|
|
23
|
+
unit: unitStr,
|
|
23
24
|
value: avgDayWeight,
|
|
24
25
|
img: isDark ? overview_ctyl_pjryl_dark : overview_ctyl_pjryl_light,
|
|
25
26
|
fontType: 'blue',
|
|
@@ -76,8 +77,8 @@ export default function Chart(_ref) {
|
|
|
76
77
|
name: '(次)'
|
|
77
78
|
}, {
|
|
78
79
|
key: "\u2000",
|
|
79
|
-
unit:
|
|
80
|
-
name:
|
|
80
|
+
unit: unitStr,
|
|
81
|
+
name: "(".concat(unitStr, ")")
|
|
81
82
|
}],
|
|
82
83
|
lineList: [{
|
|
83
84
|
name: '车次',
|