@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.
@@ -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.name, "(").concat(list.time, ")")
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();
@@ -371,7 +371,7 @@ var MonitorAnalysis = function MonitorAnalysis(_ref) {
371
371
  };
372
372
  var columns = [{
373
373
  title: '监测项目',
374
- dataIndex: 'name',
374
+ dataIndex: 'monitorItemName',
375
375
  width: 120,
376
376
  ellipsis: true,
377
377
  fixed: 'left'
@@ -141,7 +141,7 @@ var MeteringService = {
141
141
  startTime: startTime,
142
142
  endTime: endTime,
143
143
  page: page,
144
- rows: 10
144
+ size: 10
145
145
  }
146
146
  });
147
147
  }, {
@@ -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(VmTable, _objectSpread({
120
- columns: columns,
121
- rowKey: "id"
122
- }, tableProps))]
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "5.0.50",
3
+ "version": "5.0.52",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",