ns-base-module 1.1.76 → 1.1.78

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.
@@ -26,6 +26,7 @@ import Input from "../Entry/components/Input";
26
26
  import CopyCol from "../CopyCol";
27
27
  import { cloneDeep, find, flattenDeep, get } from "lodash";
28
28
  import "../../style/components/FilterPopover.scss";
29
+ import errorMsg from "../utils/errorMsg";
29
30
  import { initLang } from "../utils/language";
30
31
  // import request from "../utils/request";
31
32
 
@@ -149,6 +150,9 @@ var Filter = function Filter(props) {
149
150
  });
150
151
  case 11:
151
152
  res = _context.sent;
153
+ if ((res === null || res === void 0 ? void 0 : res.code) == 500) {
154
+ errorMsg(res);
155
+ }
152
156
  datas = get(res, "data.rows", []) || [];
153
157
  arr = [];
154
158
  if (dataIndex) {
@@ -176,7 +180,7 @@ var Filter = function Filter(props) {
176
180
  }
177
181
  setTotal(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.total);
178
182
  page.current.total = res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.total;
179
- case 21:
183
+ case 22:
180
184
  case "end":
181
185
  return _context.stop();
182
186
  }
@@ -122,7 +122,8 @@ var Index = function Index(props, ref) {
122
122
  type: "primary",
123
123
  onClick: handleView,
124
124
  style: {
125
- marginTop: 4
125
+ marginTop: 4,
126
+ height: "fit-content"
126
127
  },
127
128
  size: "small"
128
129
  }, initLang({
@@ -17,7 +17,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  /* eslint-disable no-case-declarations */
18
18
  /* eslint-disable react/no-unknown-property */
19
19
  import { ArrowDownOutlined, ArrowUpOutlined, BarChartOutlined, CalculatorOutlined, CalendarOutlined, ClearOutlined, DeleteOutlined, DotChartOutlined, DownOutlined, FieldNumberOutlined, FieldStringOutlined, LineChartOutlined, SortAscendingOutlined, SortDescendingOutlined, SwapOutlined, SwapRightOutlined } from "@ant-design/icons";
20
- import { Dropdown, Input, message, Popover, Space, Switch, Tooltip } from "antd";
20
+ import { Dropdown, Input, Popover, Space, Switch, Tooltip } from "antd";
21
21
  import { cloneDeep, find, get, isEmpty } from "lodash";
22
22
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
23
23
  import { ReactSortable } from "react-sortablejs";
@@ -106,18 +106,19 @@ var Index = function Index(props, ref) {
106
106
  useImperativeHandle(ref, function () {
107
107
  return {
108
108
  getQuotaDataStr: function getQuotaDataStr() {
109
- if (isEmpty(dimensionList)) {
110
- message.warning("维度不能为空");
111
- return "";
112
- } else if (isEmpty(quotaList)) {
113
- message.warning("指标不能为空");
114
- return "";
115
- } else if (valueRadio === "cross" || valueRadio === "trans") {
116
- if ((chartColumns === null || chartColumns === void 0 ? void 0 : chartColumns.length) === 1) {
117
- message.warning("列不能为空");
118
- return "";
119
- }
120
- }
109
+ // if (isEmpty(dimensionList)) {
110
+ // message.warning("维度不能为空");
111
+ // return "";
112
+ // } else if (isEmpty(quotaList)) {
113
+ // message.warning("指标不能为空");
114
+ // return "";
115
+ // } else if (valueRadio === "cross" || valueRadio === "trans") {
116
+ // if (chartColumns?.length === 1) {
117
+ // message.warning("列不能为空");
118
+ // return "";
119
+ // }
120
+ // }
121
+
121
122
  return JSON.stringify({
122
123
  list: list,
123
124
  numberList: numberList,