@vtx/modals2 5.0.50 → 5.0.52
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/vtx-default-modal/index.js +3 -1
- package/lib/vtx-device-modal/api.js +2 -1
- package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +1 -1
- package/lib/vtx-df-modal/api-zd-reborn.js +1 -1
- package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +10 -5
- package/package.json +1 -1
|
@@ -48,7 +48,9 @@ var VtxDefaultModal = function VtxDefaultModal(props) {
|
|
|
48
48
|
info = _CommonService$useBas.info;
|
|
49
49
|
var _useGetConfig = useGetConfig(info === null || info === void 0 ? void 0 : info.typeCode, tabs),
|
|
50
50
|
tabsData = _useGetConfig.tabsData;
|
|
51
|
-
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode))
|
|
51
|
+
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode) && (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
52
|
+
return ele.key === 'video';
|
|
53
|
+
})) > -1),
|
|
52
54
|
channels = _useGetChannels.channels;
|
|
53
55
|
var _CommonService$useLmD = CommonService.useLmDetail(id, (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
54
56
|
return ele.key === 'metering';
|
|
@@ -442,7 +442,7 @@ var BaseService = {
|
|
|
442
442
|
newDataList = dataList.map(function (list) {
|
|
443
443
|
return ((list === null || list === void 0 ? void 0 : list.data) || []).map(function (one) {
|
|
444
444
|
return _objectSpread(_objectSpread({}, one), {}, {
|
|
445
|
-
newName: "".concat(one.facilityName, "-").concat(one.
|
|
445
|
+
newName: "".concat(one.facilityName, "-").concat(one.monitorItemName, "(").concat(list.time, ")")
|
|
446
446
|
});
|
|
447
447
|
}).map(function (item) {
|
|
448
448
|
var type = (item === null || item === void 0 ? void 0 : item.monitorItemDefaultChartType) || 'line';
|
|
@@ -470,6 +470,7 @@ var BaseService = {
|
|
|
470
470
|
});
|
|
471
471
|
item.maximumValue = _.max(yDataList);
|
|
472
472
|
item.minimumValue = _.min(yDataList);
|
|
473
|
+
item.name = item.monitorItemName;
|
|
473
474
|
return item;
|
|
474
475
|
});
|
|
475
476
|
}).flat();
|
|
@@ -33,7 +33,7 @@ var List = function List(props) {
|
|
|
33
33
|
state = _useSetState2[0],
|
|
34
34
|
setState = _useSetState2[1];
|
|
35
35
|
var pagination = state.pagination;
|
|
36
|
-
var _MeteringService$useR = MeteringService.useRecord(deviceId, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), pagination.current),
|
|
36
|
+
var _MeteringService$useR = MeteringService.useRecord(deviceId, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59"), pagination.current - 1),
|
|
37
37
|
records = _MeteringService$useR.records;
|
|
38
38
|
var _MeteringService$useS = MeteringService.useSummary(deviceId, "".concat(startDate, " 00:00:00"), "".concat(endDate, " 23:59:59")),
|
|
39
39
|
summary = _MeteringService$useS.summary;
|
|
@@ -116,10 +116,15 @@ var List = function List(props) {
|
|
|
116
116
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
117
117
|
className: "df-appraisal-content-list-static",
|
|
118
118
|
children: ["\u6C47\u603B(\u6BDB\u91CD:", (summary === null || summary === void 0 ? void 0 : summary.grossWeightTotal) || 0, "\u5428\uFF0C\u76AE\u91CD:", (summary === null || summary === void 0 ? void 0 : summary.tareWeightTotal) || 0, "\u5428\uFF0C\u51C0\u91CD:", (summary === null || summary === void 0 ? void 0 : summary.netWeightTotal) || 0, "\u5428\uFF0C\u8F66\u6B21:", (summary === null || summary === void 0 ? void 0 : summary.count) || 0, ")"]
|
|
119
|
-
}), /*#__PURE__*/_jsx(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
120
|
+
style: {
|
|
121
|
+
height: 482
|
|
122
|
+
},
|
|
123
|
+
children: /*#__PURE__*/_jsx(VmTable, _objectSpread({
|
|
124
|
+
columns: columns,
|
|
125
|
+
rowKey: "id"
|
|
126
|
+
}, tableProps))
|
|
127
|
+
})]
|
|
123
128
|
});
|
|
124
129
|
};
|
|
125
130
|
export default List;
|