ns-base-module 2.0.15 → 2.0.16
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.
|
@@ -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,
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
} else if (isEmpty(quotaList)) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} else if (valueRadio === "cross" || valueRadio === "trans") {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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,
|