@vtx/modals2 5.0.20 → 5.0.22
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-calendar/style/index.js +1 -0
- package/lib/_components/vm-calendar/style/index.less +4 -1
- package/lib/_components/vm-line-charts/index.js +11 -0
- package/lib/style/index.less +1 -0
- package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +6 -0
- package/lib/vtx-cp-modal/index.js +2 -2
- package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +2 -12
- package/package.json +1 -1
|
@@ -6,7 +6,9 @@ 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
|
import { Row, Spin } from 'antd';
|
|
8
8
|
import ReactEcharts from 'echarts-for-react';
|
|
9
|
+
import { isEmpty } from 'lodash';
|
|
9
10
|
import useSettings from "../../_hooks/useSettings";
|
|
11
|
+
import VmEmpty from "../vm-empty";
|
|
10
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
13
|
var LineCharts = function LineCharts(_ref) {
|
|
12
14
|
var _ref$dataList = _ref.dataList,
|
|
@@ -138,6 +140,15 @@ var LineCharts = function LineCharts(_ref) {
|
|
|
138
140
|
align: 'middle',
|
|
139
141
|
justify: 'center',
|
|
140
142
|
children: /*#__PURE__*/_jsx(Spin, {})
|
|
143
|
+
}) : isEmpty(dataList) ? /*#__PURE__*/_jsx(Row, {
|
|
144
|
+
style: {
|
|
145
|
+
height: height
|
|
146
|
+
},
|
|
147
|
+
align: 'middle',
|
|
148
|
+
justify: 'center',
|
|
149
|
+
children: /*#__PURE__*/_jsx(VmEmpty, {
|
|
150
|
+
type: "NO_CHART"
|
|
151
|
+
})
|
|
141
152
|
}) : /*#__PURE__*/_jsx(ReactEcharts, {
|
|
142
153
|
option: option,
|
|
143
154
|
notMerge: true,
|
package/lib/style/index.less
CHANGED
|
@@ -39,6 +39,9 @@ var StaticInfo = function StaticInfo(_ref) {
|
|
|
39
39
|
},
|
|
40
40
|
children: [/*#__PURE__*/_jsx(Col, {
|
|
41
41
|
span: 12,
|
|
42
|
+
style: {
|
|
43
|
+
height: '100%'
|
|
44
|
+
},
|
|
42
45
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
43
46
|
title: '报警汇总',
|
|
44
47
|
children: /*#__PURE__*/_jsx(VmPieCharts, {
|
|
@@ -58,6 +61,9 @@ var StaticInfo = function StaticInfo(_ref) {
|
|
|
58
61
|
})
|
|
59
62
|
}), /*#__PURE__*/_jsx(Col, {
|
|
60
63
|
span: 12,
|
|
64
|
+
style: {
|
|
65
|
+
height: '100%'
|
|
66
|
+
},
|
|
61
67
|
children: /*#__PURE__*/_jsx(VmWrapper, {
|
|
62
68
|
title: '报警趋势分析',
|
|
63
69
|
children: /*#__PURE__*/_jsx(VmLineCharts, {
|
|
@@ -47,9 +47,9 @@ var VtxCpModal = function VtxCpModal(props) {
|
|
|
47
47
|
info = _BaseService$useBaseD.info,
|
|
48
48
|
baseInfo = _BaseService$useBaseD.baseInfo,
|
|
49
49
|
rules = _BaseService$useBaseD.rules;
|
|
50
|
-
var _facilityService$useG = facilityService.useGetFacConfig(
|
|
50
|
+
var _facilityService$useG = facilityService.useGetFacConfig('cp'),
|
|
51
51
|
facConfig = _facilityService$useG.facConfig;
|
|
52
|
-
var _useGetConfig = useGetConfig(
|
|
52
|
+
var _useGetConfig = useGetConfig('cp', tabs),
|
|
53
53
|
tabsData = _useGetConfig.tabsData;
|
|
54
54
|
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.collectPointTypeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.collectPointTypeCode)),
|
|
55
55
|
channels = _useGetChannels.channels;
|
|
@@ -120,19 +120,9 @@ var ListZymx = function ListZymx(props) {
|
|
|
120
120
|
onChange: pageChange
|
|
121
121
|
})
|
|
122
122
|
};
|
|
123
|
-
return /*#__PURE__*/_jsx(VmTable, _objectSpread(
|
|
123
|
+
return /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
124
124
|
columns: columns,
|
|
125
125
|
rowKey: "id"
|
|
126
|
-
}, tableProps)
|
|
127
|
-
dataSource: [{
|
|
128
|
-
shiftDate: '2312313',
|
|
129
|
-
shiftName: 'sdfgdfgd',
|
|
130
|
-
completionRate: 20
|
|
131
|
-
}, {
|
|
132
|
-
shiftDate: '2312313',
|
|
133
|
-
shiftName: 'sdfgdfgd',
|
|
134
|
-
completionRate: 20
|
|
135
|
-
}]
|
|
136
|
-
}));
|
|
126
|
+
}, tableProps));
|
|
137
127
|
};
|
|
138
128
|
export default ListZymx;
|