@vtx/modals2 5.0.26 → 5.0.28

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.
@@ -179,7 +179,7 @@ var BaseInfo = function BaseInfo() {
179
179
  unit: '个',
180
180
  fontType: 'green',
181
181
  img: isDark ? darkPointIcon : pointIcon,
182
- value: (syInfo === null || syInfo === void 0 ? void 0 : syInfo.collectPointNum) || 0
182
+ value: (syInfo === null || syInfo === void 0 ? void 0 : syInfo.collectPoints) || 0
183
183
  }), /*#__PURE__*/_jsx("div", {
184
184
  style: {
185
185
  height: 45,
@@ -105,7 +105,7 @@ var BaseService = {
105
105
  };
106
106
  },
107
107
  useTrendInfo: function useTrendInfo(id, startDate, endDate, dateType, source) {
108
- var _res$data;
108
+ var _res$data, _res$data2;
109
109
  var _useRequest4 = useRequest(function () {
110
110
  return request.get('/cloud/ljfljc/api/v101/throwBoard/trend', {
111
111
  data: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, source === 'tfd' ? 'throwPointId' : 'subjectId', id), "startDate", startDate), "endDate", endDate), "filterGarbageType", true), "dateType", dateType)
@@ -118,7 +118,8 @@ var BaseService = {
118
118
  loading = _useRequest4.loading;
119
119
  var list = [];
120
120
  res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || _res$data.forEach(function (ele) {
121
- ele.garbageValues.forEach(function (item, index) {
121
+ var _ele$garbageValues;
122
+ (_ele$garbageValues = ele.garbageValues) === null || _ele$garbageValues === void 0 || _ele$garbageValues.forEach(function (item, index) {
122
123
  if (Array.isArray(list[index])) {
123
124
  list[index].push(_objectSpread({}, item));
124
125
  } else {
@@ -127,7 +128,7 @@ var BaseService = {
127
128
  });
128
129
  });
129
130
  return {
130
- trendXData: res === null || res === void 0 ? void 0 : res.data.map(function (ele) {
131
+ trendXData: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.map(function (ele) {
131
132
  return ele.date;
132
133
  }),
133
134
  trendData: (list === null || list === void 0 ? void 0 : list.map(function (ele) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtx/modals2",
3
- "version": "5.0.26",
3
+ "version": "5.0.28",
4
4
  "description": "弹窗组件",
5
5
  "license": "MIT",
6
6
  "module": "lib/index.js",