ns-base-module 2.0.12 → 2.0.13

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.
@@ -75,6 +75,8 @@ var Filter = function Filter(props) {
75
75
  var searchValue = useRef("");
76
76
  var searchEmnuValue = useRef([]); // 枚举搜索
77
77
  var srolRef = useRef(null);
78
+ var orderTypeRef = useRef("");
79
+ var orderKeyRef = useRef("");
78
80
  var page = useRef({
79
81
  pageNum: 1,
80
82
  pageSize: 40,
@@ -140,8 +142,8 @@ var Filter = function Filter(props) {
140
142
  pageSize: page.current.pageSize,
141
143
  distinctField: [dataIndex],
142
144
  variablePara: variablePara,
143
- orderKey: orderKey,
144
- orderType: orderType
145
+ orderKey: orderKeyRef.current || orderKey,
146
+ orderType: orderTypeRef.current || orderType
145
147
  };
146
148
  res = {};
147
149
  datas = [];
@@ -401,10 +403,16 @@ var Filter = function Filter(props) {
401
403
  };
402
404
  var handleSort = function handleSort(key) {
403
405
  if (checkSort === "asc" && key === "asc" || checkSort === "desc" && key === "desc") {
406
+ orderTypeRef.current = "";
407
+ orderKeyRef.current = "";
404
408
  onSort === null || onSort === void 0 || onSort("");
409
+ getDates();
405
410
  return;
406
411
  }
407
412
  onSort === null || onSort === void 0 || onSort(key);
413
+ orderKeyRef.current = dataIndex;
414
+ orderTypeRef.current = key;
415
+ getDates();
408
416
  };
409
417
  var selectSearch = function selectSearch(e) {
410
418
  setSelectValue(e);
@@ -87,7 +87,6 @@ var Index = function Index(_ref2) {
87
87
 
88
88
  // 活动的icon显示
89
89
  var visibilityStyle = useMemo(function () {
90
- console.log("filterValuefilterValue:", filterValue);
91
90
  var _value = get(props === null || props === void 0 ? void 0 : props.filterSearch, "".concat(dataIndex, ".value"), "");
92
91
  if (!dataIndex) return null;
93
92
  if (!_value) {
@@ -291,17 +291,12 @@ var Index = function Index(props) {
291
291
  }),
292
292
  onConfirm: confirm,
293
293
  onCancel: cancel
294
- }, /*#__PURE__*/React.createElement(Tooltip, {
295
- placement: "top",
296
- title: initLang({
297
- id: "prompt.delTemplate"
298
- })
299
294
  }, /*#__PURE__*/React.createElement(DeleteOutlined, {
300
295
  className: "set-icon",
301
296
  onClick: function onClick() {
302
297
  return handleDel(item);
303
298
  }
304
- })));
299
+ }));
305
300
  var copyDom = /*#__PURE__*/React.createElement(Tooltip, {
306
301
  placement: "top",
307
302
  title: initLang({