@teamix/pro 1.5.13 → 1.5.15
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.
- package/dist/pro.all.min.css +1 -1
- package/dist/pro.css +1 -1
- package/dist/pro.js +187 -135
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.xconsole.min.css +1 -1
- package/es/actions/dialog.js +1 -1
- package/es/actions/index.scss +1 -1
- package/es/card/index.scss +2 -0
- package/es/card/xconsole.scss +3 -0
- package/es/global.scss +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/next-xconsole.scss +34 -0
- package/es/nocode/configurators/ProTable.js +1 -22
- package/es/nocode/pages/index.js +1 -26
- package/es/page-header/index.scss +2 -1
- package/es/page-header/xconsole.scss +5 -0
- package/es/table/components/Filter/index.d.ts +5 -3
- package/es/table/components/Filter/index.js +84 -63
- package/es/table/components/Layout/index.js +5 -2
- package/es/table/components/Layout/index.scss +1 -0
- package/es/table/index.js +39 -6
- package/es/table/typing.d.ts +14 -0
- package/es/table/utils/columnRender.d.ts +2 -2
- package/es/table/utils/columnRender.js +4 -2
- package/es/table/utils/genProColumnToColumn.d.ts +2 -2
- package/es/table/utils/genProColumnToColumn.js +3 -1
- package/es/table/utils/util.d.ts +5 -0
- package/es/table/utils/util.js +19 -0
- package/es/xconsole.scss +6 -1
- package/lib/actions/dialog.js +1 -1
- package/lib/actions/index.scss +1 -1
- package/lib/card/index.scss +2 -0
- package/lib/card/xconsole.scss +3 -0
- package/lib/global.scss +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/next-xconsole.scss +34 -0
- package/lib/nocode/configurators/ProTable.js +1 -22
- package/lib/nocode/pages/index.js +1 -26
- package/lib/page-header/index.scss +2 -1
- package/lib/page-header/xconsole.scss +5 -0
- package/lib/table/components/Filter/index.d.ts +5 -3
- package/lib/table/components/Filter/index.js +83 -62
- package/lib/table/components/Layout/index.js +5 -2
- package/lib/table/components/Layout/index.scss +1 -0
- package/lib/table/index.js +39 -6
- package/lib/table/typing.d.ts +14 -0
- package/lib/table/utils/columnRender.d.ts +2 -2
- package/lib/table/utils/columnRender.js +4 -2
- package/lib/table/utils/genProColumnToColumn.d.ts +2 -2
- package/lib/table/utils/genProColumnToColumn.js +3 -1
- package/lib/table/utils/util.d.ts +5 -0
- package/lib/table/utils/util.js +25 -0
- package/lib/xconsole.scss +6 -1
- package/package.json +1 -1
package/dist/pro.js
CHANGED
@@ -78140,10 +78140,14 @@ var MenuSelect = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
78140
78140
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
78141
78141
|
key: childItem.value,
|
78142
78142
|
className: cls('item-label', {
|
78143
|
-
'item-label-active': value.includes(childItem.value)
|
78143
|
+
'item-label-active': value.includes(childItem.value),
|
78144
|
+
'item-label-disabled': childItem === null || childItem === void 0 ? void 0 : childItem.disabled
|
78144
78145
|
}),
|
78145
78146
|
onClick: function onClick() {
|
78146
78147
|
var _childItem$label;
|
78148
|
+
if (childItem === null || childItem === void 0 ? void 0 : childItem.disabled) {
|
78149
|
+
return;
|
78150
|
+
}
|
78147
78151
|
itemOnClick(childItem.value, (_childItem$label = childItem.label) !== null && _childItem$label !== void 0 ? _childItem$label : '');
|
78148
78152
|
}
|
78149
78153
|
}, value.includes(childItem.value) && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_teamix_icon__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {
|
@@ -93902,7 +93906,7 @@ function useDialogAction(action, actionContext, hasForm) {
|
|
93902
93906
|
className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-dialog-footer-description', getFooterAlignClass(isDrawer, footerAlign))
|
93903
93907
|
}, renderDialogFooterDescription(footerDescription))), _extends2.footerAlign = footerAlign, _extends2.className = classnames__WEBPACK_IMPORTED_MODULE_1___default()('teamix-pro-action-dialog', {
|
93904
93908
|
'has-footer-description': !!footerDescription
|
93905
|
-
}), _extends2
|
93909
|
+
}), _extends2[isDrawer ? 'renderFooter' : 'footer'] = addContextForReactNode(footer, dialogContext), _extends2), containerProps, containerOtherProps);
|
93906
93910
|
// TODO Drawer 基础组件未支持此配置,日后支持,并修改onOk、onCancel写法
|
93907
93911
|
if ((!dialogType || dialogType === 'dialog') && hideFooter) {
|
93908
93912
|
quickShowProps['footer'] = !hideFooter;
|
@@ -99771,7 +99775,7 @@ if (!((_window = window) != null && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
|
99771
99775
|
|
99772
99776
|
|
99773
99777
|
|
99774
|
-
var version = '1.5.
|
99778
|
+
var version = '1.5.15';
|
99775
99779
|
|
99776
99780
|
// By TeamixTest
|
99777
99781
|
window.postMessage({
|
@@ -101402,28 +101406,7 @@ var configurator = {
|
|
101402
101406
|
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82099);
|
101403
101407
|
|
101404
101408
|
var initialValues = {
|
101405
|
-
columns: [
|
101406
|
-
dataIndex: 'instanceName',
|
101407
|
-
title: '实例ID/实例名称'
|
101408
|
-
}, {
|
101409
|
-
dataIndex: 'organizationName',
|
101410
|
-
title: '组织',
|
101411
|
-
tooltip: '我这一列是可以被复制的~',
|
101412
|
-
render: {
|
101413
|
-
copy: true
|
101414
|
-
}
|
101415
|
-
}],
|
101416
|
-
url: 'https://oneapi.alibaba-inc.com/mock/teamix-pro/api/getTableResource',
|
101417
|
-
formatResult: {
|
101418
|
-
data: 'data',
|
101419
|
-
total: 'pageInfo.total'
|
101420
|
-
},
|
101421
|
-
mainAction: {
|
101422
|
-
actions: [{
|
101423
|
-
key: 'action',
|
101424
|
-
children: '操作按钮'
|
101425
|
-
}]
|
101426
|
-
}
|
101409
|
+
columns: []
|
101427
101410
|
};
|
101428
101411
|
var defaultValues = {
|
101429
101412
|
showSkeleton: true,
|
@@ -102237,32 +102220,7 @@ var PageMap = {
|
|
102237
102220
|
};
|
102238
102221
|
// 全部页面模板默认初始值
|
102239
102222
|
var PageDefaultInitialValues = {
|
102240
|
-
LIST: {
|
102241
|
-
header: {
|
102242
|
-
title: '页面标题'
|
102243
|
-
},
|
102244
|
-
content: {
|
102245
|
-
header: {
|
102246
|
-
title: '表格标题'
|
102247
|
-
},
|
102248
|
-
columns: [{
|
102249
|
-
dataIndex: 'instanceName',
|
102250
|
-
title: '实例ID/实例名称'
|
102251
|
-
}, {
|
102252
|
-
dataIndex: 'organizationName',
|
102253
|
-
title: '组织',
|
102254
|
-
tooltip: '我这一列是可以被复制的~',
|
102255
|
-
render: {
|
102256
|
-
copy: true
|
102257
|
-
}
|
102258
|
-
}],
|
102259
|
-
url: 'https://oneapi.alibaba-inc.com/mock/teamix-pro/api/getTableResource',
|
102260
|
-
formatResult: {
|
102261
|
-
data: 'data',
|
102262
|
-
total: 'pageInfo.total'
|
102263
|
-
}
|
102264
|
-
}
|
102265
|
-
},
|
102223
|
+
LIST: {},
|
102266
102224
|
DETAIL: {},
|
102267
102225
|
FORM: {}
|
102268
102226
|
};
|
@@ -104691,6 +104649,7 @@ var CardView = function CardView(props) {
|
|
104691
104649
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33049);
|
104692
104650
|
/* harmony import */ var _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__);
|
104693
104651
|
/* harmony import */ var _teamix_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80653);
|
104652
|
+
/* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42341);
|
104694
104653
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
104695
104654
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
104696
104655
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
@@ -104704,18 +104663,25 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
104704
104663
|
|
104705
104664
|
|
104706
104665
|
|
104666
|
+
|
104707
104667
|
var CheckboxItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu.CheckboxItem;
|
104708
104668
|
var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.usePrefixCls)('teamix-pro-table-toolbar-filter');
|
104709
104669
|
var RadioItem = _alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Menu.RadioItem;
|
104710
104670
|
var Filter = function Filter(props) {
|
104671
|
+
var _urlState$split, _urlState;
|
104711
104672
|
var column = props.column,
|
104712
104673
|
actionRef = props.actionRef,
|
104713
|
-
switchCardView = props.switchCardView
|
104674
|
+
switchCardView = props.switchCardView,
|
104675
|
+
bindUrlProps = props.bindUrlProps,
|
104676
|
+
bindUrl = props.bindUrl;
|
104714
104677
|
var _column$filtersWidth = column.filtersWidth,
|
104715
104678
|
filtersWidth = _column$filtersWidth === void 0 ? 130 : _column$filtersWidth;
|
104679
|
+
var _useUrlState = (0,_teamix_hooks__WEBPACK_IMPORTED_MODULE_4__.useUrlState)(),
|
104680
|
+
urlState = _useUrlState[0],
|
104681
|
+
setUrlState = _useUrlState[1];
|
104716
104682
|
|
104717
104683
|
// 选中过滤项
|
104718
|
-
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),
|
104684
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((_urlState$split = urlState == null ? void 0 : (_urlState = urlState["filter" + (column == null ? void 0 : column.dataIndex)]) == null ? void 0 : _urlState.split == null ? void 0 : _urlState.split(',')) != null ? _urlState$split : []),
|
104719
104685
|
selected = _useState[0],
|
104720
104686
|
setSelected = _useState[1];
|
104721
104687
|
var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
|
@@ -104725,7 +104691,10 @@ var Filter = function Filter(props) {
|
|
104725
104691
|
var _actionRef$current$ge, _actionRef$current, _actionRef$current$ge2, _actionRef$current$ge3, _actionRef$current$ge4;
|
104726
104692
|
// 从全局状态中读取上次存储的条件
|
104727
104693
|
var rules = (_actionRef$current$ge = (_actionRef$current = actionRef.current) == null ? void 0 : _actionRef$current.getState == null ? void 0 : (_actionRef$current$ge2 = _actionRef$current.getState()) == null ? void 0 : (_actionRef$current$ge3 = _actionRef$current$ge2.filterRules) == null ? void 0 : (_actionRef$current$ge4 = _actionRef$current$ge3[column.dataIndex]) == null ? void 0 : _actionRef$current$ge4.rules) != null ? _actionRef$current$ge : [];
|
104728
|
-
|
104694
|
+
// 全局状态中需要有值才赋值。优先级:全局状态 > urlState
|
104695
|
+
if (rules && rules.length > 0) {
|
104696
|
+
setSelected(rules);
|
104697
|
+
}
|
104729
104698
|
}, []);
|
104730
104699
|
|
104731
104700
|
// 获取过滤项
|
@@ -104754,6 +104723,78 @@ var Filter = function Filter(props) {
|
|
104754
104723
|
return filters;
|
104755
104724
|
}, []);
|
104756
104725
|
|
104726
|
+
// 点击确定回调
|
104727
|
+
var onFilterOk = function onFilterOk() {
|
104728
|
+
var _actionRef$current2, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current4, _extends2, _actionRef$current5, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current9;
|
104729
|
+
(_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.filterDataSource == null ? void 0 : _actionRef$current2.filterDataSource(column.dataIndex);
|
104730
|
+
|
104731
|
+
// 先获取此列的param
|
104732
|
+
var param = '';
|
104733
|
+
if (column.beforeFilter) {
|
104734
|
+
param = column.beforeFilter == null ? void 0 : column.beforeFilter(selected);
|
104735
|
+
} else {
|
104736
|
+
param = selected.join(',');
|
104737
|
+
}
|
104738
|
+
|
104739
|
+
// 需要带上其他所有的信息
|
104740
|
+
var rules = (_actionRef$current$ge5 = (_actionRef$current3 = actionRef.current) == null ? void 0 : _actionRef$current3.getState == null ? void 0 : (_actionRef$current3$g = _actionRef$current3.getState()) == null ? void 0 : _actionRef$current3$g.filterRules) != null ? _actionRef$current$ge5 : {};
|
104741
|
+
// 再设置所有的列筛选状态
|
104742
|
+
(_actionRef$current4 = actionRef.current) == null ? void 0 : _actionRef$current4.setFilterRules == null ? void 0 : _actionRef$current4.setFilterRules(_extends({}, rules, (_extends2 = {}, _extends2[column.dataIndex] = {
|
104743
|
+
rules: selected,
|
104744
|
+
params: param
|
104745
|
+
}, _extends2)));
|
104746
|
+
var targetPageKey = 'currentPage';
|
104747
|
+
var pageInfo = (_actionRef$current5 = actionRef.current) == null ? void 0 : _actionRef$current5.pageInfo;
|
104748
|
+
if (pageInfo && pageInfo != null && pageInfo.targetPageKey) {
|
104749
|
+
targetPageKey = pageInfo == null ? void 0 : pageInfo.targetPageKey;
|
104750
|
+
}
|
104751
|
+
if (switchCardView === 'card') {
|
104752
|
+
var _actionRef$current6;
|
104753
|
+
(_actionRef$current6 = actionRef.current) == null ? void 0 : _actionRef$current6.setData == null ? void 0 : _actionRef$current6.setData([]);
|
104754
|
+
}
|
104755
|
+
// 发送请求
|
104756
|
+
(_actionRef$current7 = actionRef.current) == null ? void 0 : _actionRef$current7.request == null ? void 0 : _actionRef$current7.request((_actionRef$current7$r = {}, _actionRef$current7$r[targetPageKey] = 1, _actionRef$current7$r));
|
104757
|
+
(_actionRef$current8 = actionRef.current) == null ? void 0 : _actionRef$current8.resetPage == null ? void 0 : _actionRef$current8.resetPage();
|
104758
|
+
// 清空表格选择
|
104759
|
+
(_actionRef$current9 = actionRef.current) == null ? void 0 : _actionRef$current9.clearRowSelection == null ? void 0 : _actionRef$current9.clearRowSelection();
|
104760
|
+
setVisible(false);
|
104761
|
+
|
104762
|
+
// 设置 url
|
104763
|
+
if (bindUrl && (bindUrlProps == null ? void 0 : bindUrlProps.headerFilters) !== false && (urlState == null ? void 0 : urlState["filter" + (column == null ? void 0 : column.dataIndex)]) !== selected.join(',')) {
|
104764
|
+
var _setUrlState;
|
104765
|
+
setUrlState((_setUrlState = {}, _setUrlState["filter" + (column == null ? void 0 : column.dataIndex)] = selected.join(','), _setUrlState));
|
104766
|
+
}
|
104767
|
+
};
|
104768
|
+
|
104769
|
+
// 重置回调
|
104770
|
+
var onFilterReset = function onFilterReset() {
|
104771
|
+
var _actionRef$current$ge6, _actionRef$current10, _actionRef$current10$, _actionRef$current11, _extends3, _actionRef$current12;
|
104772
|
+
setSelected([]);
|
104773
|
+
var rules = (_actionRef$current$ge6 = (_actionRef$current10 = actionRef.current) == null ? void 0 : _actionRef$current10.getState == null ? void 0 : (_actionRef$current10$ = _actionRef$current10.getState()) == null ? void 0 : _actionRef$current10$.filterRules) != null ? _actionRef$current$ge6 : {};
|
104774
|
+
(_actionRef$current11 = actionRef.current) == null ? void 0 : _actionRef$current11.setFilterRules == null ? void 0 : _actionRef$current11.setFilterRules(_extends({}, rules, (_extends3 = {}, _extends3[column.dataIndex] = {
|
104775
|
+
rules: [],
|
104776
|
+
params: ''
|
104777
|
+
}, _extends3)));
|
104778
|
+
(_actionRef$current12 = actionRef.current) == null ? void 0 : _actionRef$current12.filterDataSource == null ? void 0 : _actionRef$current12.filterDataSource(column.dataIndex);
|
104779
|
+
if (selected.length > 0) {
|
104780
|
+
var _actionRef$current13, _actionRef$current14, _actionRef$current14$, _actionRef$current15, _actionRef$current16;
|
104781
|
+
var targetPageKey = 'currentPage';
|
104782
|
+
var pageInfo = (_actionRef$current13 = actionRef.current) == null ? void 0 : _actionRef$current13.pageInfo;
|
104783
|
+
if (pageInfo && pageInfo != null && pageInfo.targetPageKey) {
|
104784
|
+
targetPageKey = pageInfo == null ? void 0 : pageInfo.targetPageKey;
|
104785
|
+
}
|
104786
|
+
// 发送请求
|
104787
|
+
(_actionRef$current14 = actionRef.current) == null ? void 0 : _actionRef$current14.request == null ? void 0 : _actionRef$current14.request((_actionRef$current14$ = {}, _actionRef$current14$[targetPageKey] = 1, _actionRef$current14$));
|
104788
|
+
(_actionRef$current15 = actionRef.current) == null ? void 0 : _actionRef$current15.resetPage == null ? void 0 : _actionRef$current15.resetPage();
|
104789
|
+
// 清空表格选择
|
104790
|
+
(_actionRef$current16 = actionRef.current) == null ? void 0 : _actionRef$current16.clearRowSelection == null ? void 0 : _actionRef$current16.clearRowSelection();
|
104791
|
+
if (bindUrl && (bindUrlProps == null ? void 0 : bindUrlProps.headerFilters) !== false) {
|
104792
|
+
var _setUrlState2;
|
104793
|
+
setUrlState((_setUrlState2 = {}, _setUrlState2["filter" + (column == null ? void 0 : column.dataIndex)] = undefined, _setUrlState2));
|
104794
|
+
}
|
104795
|
+
}
|
104796
|
+
};
|
104797
|
+
|
104757
104798
|
// 渲染单选
|
104758
104799
|
var renderSingle = function renderSingle() {
|
104759
104800
|
return filters == null ? void 0 : filters.map(function (_ref2) {
|
@@ -104835,74 +104876,17 @@ var Filter = function Filter(props) {
|
|
104835
104876
|
className: cls({
|
104836
104877
|
btn: true
|
104837
104878
|
}),
|
104838
|
-
onClick:
|
104839
|
-
var _actionRef$current2, _actionRef$current$ge5, _actionRef$current3, _actionRef$current3$g, _actionRef$current4, _extends2, _actionRef$current5, _actionRef$current7, _actionRef$current7$r, _actionRef$current8, _actionRef$current9;
|
104840
|
-
(_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.filterDataSource == null ? void 0 : _actionRef$current2.filterDataSource(column.dataIndex);
|
104841
|
-
|
104842
|
-
// 先获取此列的param
|
104843
|
-
var param = '';
|
104844
|
-
if (column.beforeFilter) {
|
104845
|
-
param = column.beforeFilter == null ? void 0 : column.beforeFilter(selected);
|
104846
|
-
} else {
|
104847
|
-
param = selected.join(',');
|
104848
|
-
}
|
104849
|
-
|
104850
|
-
// 需要带上其他所有的信息
|
104851
|
-
var rules = (_actionRef$current$ge5 = (_actionRef$current3 = actionRef.current) == null ? void 0 : _actionRef$current3.getState == null ? void 0 : (_actionRef$current3$g = _actionRef$current3.getState()) == null ? void 0 : _actionRef$current3$g.filterRules) != null ? _actionRef$current$ge5 : {};
|
104852
|
-
// 再设置所有的列筛选状态
|
104853
|
-
(_actionRef$current4 = actionRef.current) == null ? void 0 : _actionRef$current4.setFilterRules == null ? void 0 : _actionRef$current4.setFilterRules(_extends({}, rules, (_extends2 = {}, _extends2[column.dataIndex] = {
|
104854
|
-
rules: selected,
|
104855
|
-
params: param
|
104856
|
-
}, _extends2)));
|
104857
|
-
var targetPageKey = 'currentPage';
|
104858
|
-
var pageInfo = (_actionRef$current5 = actionRef.current) == null ? void 0 : _actionRef$current5.pageInfo;
|
104859
|
-
if (pageInfo && pageInfo != null && pageInfo.targetPageKey) {
|
104860
|
-
targetPageKey = pageInfo == null ? void 0 : pageInfo.targetPageKey;
|
104861
|
-
}
|
104862
|
-
if (switchCardView === 'card') {
|
104863
|
-
var _actionRef$current6;
|
104864
|
-
(_actionRef$current6 = actionRef.current) == null ? void 0 : _actionRef$current6.setData == null ? void 0 : _actionRef$current6.setData([]);
|
104865
|
-
}
|
104866
|
-
// 发送请求
|
104867
|
-
(_actionRef$current7 = actionRef.current) == null ? void 0 : _actionRef$current7.request == null ? void 0 : _actionRef$current7.request((_actionRef$current7$r = {}, _actionRef$current7$r[targetPageKey] = 1, _actionRef$current7$r));
|
104868
|
-
(_actionRef$current8 = actionRef.current) == null ? void 0 : _actionRef$current8.resetPage == null ? void 0 : _actionRef$current8.resetPage();
|
104869
|
-
// 清空表格选择
|
104870
|
-
(_actionRef$current9 = actionRef.current) == null ? void 0 : _actionRef$current9.clearRowSelection == null ? void 0 : _actionRef$current9.clearRowSelection();
|
104871
|
-
setVisible(false);
|
104872
|
-
}
|
104879
|
+
onClick: onFilterOk
|
104873
104880
|
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getMessage)('ok')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_2__.Button, {
|
104874
104881
|
type: "normal",
|
104875
104882
|
size: "small",
|
104876
104883
|
className: cls({
|
104877
104884
|
btn: true
|
104878
104885
|
}),
|
104879
|
-
onClick:
|
104880
|
-
var _actionRef$current$ge6, _actionRef$current10, _actionRef$current10$, _actionRef$current11, _extends3, _actionRef$current12;
|
104881
|
-
setSelected([]);
|
104882
|
-
var rules = (_actionRef$current$ge6 = (_actionRef$current10 = actionRef.current) == null ? void 0 : _actionRef$current10.getState == null ? void 0 : (_actionRef$current10$ = _actionRef$current10.getState()) == null ? void 0 : _actionRef$current10$.filterRules) != null ? _actionRef$current$ge6 : {};
|
104883
|
-
(_actionRef$current11 = actionRef.current) == null ? void 0 : _actionRef$current11.setFilterRules == null ? void 0 : _actionRef$current11.setFilterRules(_extends({}, rules, (_extends3 = {}, _extends3[column.dataIndex] = {
|
104884
|
-
rules: [],
|
104885
|
-
params: ''
|
104886
|
-
}, _extends3)));
|
104887
|
-
(_actionRef$current12 = actionRef.current) == null ? void 0 : _actionRef$current12.filterDataSource == null ? void 0 : _actionRef$current12.filterDataSource(column.dataIndex);
|
104888
|
-
if (selected.length > 0) {
|
104889
|
-
var _actionRef$current13, _actionRef$current14, _actionRef$current14$, _actionRef$current15, _actionRef$current16;
|
104890
|
-
var targetPageKey = 'currentPage';
|
104891
|
-
var pageInfo = (_actionRef$current13 = actionRef.current) == null ? void 0 : _actionRef$current13.pageInfo;
|
104892
|
-
if (pageInfo && pageInfo != null && pageInfo.targetPageKey) {
|
104893
|
-
targetPageKey = pageInfo == null ? void 0 : pageInfo.targetPageKey;
|
104894
|
-
}
|
104895
|
-
// 发送请求
|
104896
|
-
(_actionRef$current14 = actionRef.current) == null ? void 0 : _actionRef$current14.request == null ? void 0 : _actionRef$current14.request((_actionRef$current14$ = {}, _actionRef$current14$[targetPageKey] = 1, _actionRef$current14$));
|
104897
|
-
(_actionRef$current15 = actionRef.current) == null ? void 0 : _actionRef$current15.resetPage == null ? void 0 : _actionRef$current15.resetPage();
|
104898
|
-
// 清空表格选择
|
104899
|
-
(_actionRef$current16 = actionRef.current) == null ? void 0 : _actionRef$current16.clearRowSelection == null ? void 0 : _actionRef$current16.clearRowSelection();
|
104900
|
-
}
|
104901
|
-
// setVisible(!visible);
|
104902
|
-
}
|
104886
|
+
onClick: onFilterReset
|
104903
104887
|
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_3__.getMessage)('reset'))))));
|
104904
104888
|
};
|
104905
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Filter);
|
104889
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)(Filter));
|
104906
104890
|
|
104907
104891
|
/***/ }),
|
104908
104892
|
|
@@ -104921,7 +104905,7 @@ var Filter = function Filter(props) {
|
|
104921
104905
|
/* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(89417);
|
104922
104906
|
/* harmony import */ var _ToolBar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(75348);
|
104923
104907
|
/* harmony import */ var _QuickAction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(96379);
|
104924
|
-
var _excluded = ["header", "mainAction", "extra", "actionRef", "dataFilter", "dataFilterFormRef", "afterDataFilter", "rowSelection", "toolBar", "dataTeamixSpm"];
|
104908
|
+
var _excluded = ["header", "mainAction", "extra", "actionRef", "dataFilter", "dataFilterFormRef", "afterDataFilter", "rowSelection", "toolBar", "dataTeamixSpm", "bindUrl", "bindUrlProps"];
|
104925
104909
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
104926
104910
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
104927
104911
|
|
@@ -104944,6 +104928,8 @@ var Layout = function Layout(props) {
|
|
104944
104928
|
rowSelection = props.rowSelection,
|
104945
104929
|
toolBar = props.toolBar,
|
104946
104930
|
dataTeamixSpm = props.dataTeamixSpm,
|
104931
|
+
bindUrl = props.bindUrl,
|
104932
|
+
bindUrlProps = props.bindUrlProps,
|
104947
104933
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
104948
104934
|
|
104949
104935
|
// 渲染主操作区
|
@@ -105025,7 +105011,8 @@ var Layout = function Layout(props) {
|
|
105025
105011
|
(dataFilter == null ? void 0 : dataFilter.onExpand) && (dataFilter == null ? void 0 : dataFilter.onExpand(expand));
|
105026
105012
|
},
|
105027
105013
|
addonBefore: renderMainAction(),
|
105028
|
-
addonAfter: renderAddonAfter()
|
105014
|
+
addonAfter: renderAddonAfter(),
|
105015
|
+
bindUrl: bindUrl && (bindUrlProps == null ? void 0 : bindUrlProps.filters) !== false
|
105029
105016
|
}, dataFilter)), afterDataFilter && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
105030
105017
|
className: "mb8 " + cls('after-data-filter-wrapper')
|
105031
105018
|
}, afterDataFilter));
|
@@ -106616,7 +106603,7 @@ var ToolBar = function ToolBar(props) {
|
|
106616
106603
|
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53277);
|
106617
106604
|
/* harmony import */ var _components_Layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9458);
|
106618
106605
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(90450);
|
106619
|
-
/* harmony import */ var
|
106606
|
+
/* harmony import */ var _utils_getTableProps__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(78964);
|
106620
106607
|
/* harmony import */ var _utils_getTableSortIcons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(98806);
|
106621
106608
|
/* harmony import */ var _utils_useTableSelection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23779);
|
106622
106609
|
/* harmony import */ var _components_ToolBar_Fullscreen__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21630);
|
@@ -106628,7 +106615,9 @@ var ToolBar = function ToolBar(props) {
|
|
106628
106615
|
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(39339);
|
106629
106616
|
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_15__);
|
106630
106617
|
/* harmony import */ var _components_CardView__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(9285);
|
106631
|
-
|
106618
|
+
/* harmony import */ var _teamix_hooks__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(42341);
|
106619
|
+
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(49618);
|
106620
|
+
var _excluded = ["header", "className", "tableClassName", "mainAction", "extra", "dataFilter", "afterDataFilter", "toolBar", "columns", "useRowSelection", "rowSelection", "onChangeRowSelection", "getRowSelection", "primaryKey", "footerAction", "footer", "url", "pageKey", "pageSizeKey", "method", "params", "formatSort", "formatParams", "formatResult", "requestConfig", "requestWhenMount", "showPagination", "pageSizeList", "responsivePaginationType", "showSkeleton", "skeletonSize", "actionRef", "dataSource", "filterDebounce", "footerSuction", "autoRefresh", "autoRefreshProps", "customRequest", "filterColumnType", "defaultFilterParams", "reserveSelectedRecords", "size", "disableSelectAll", "context", "fixedTableBody", "isTree", "toolBarAutoWidth", "data-teamix-spm", "switchCardView", "cardViewProps", "defaultView", "emptyProps", "bindUrlProps", "bindUrl"],
|
106632
106621
|
_excluded2 = ["onChange"];
|
106633
106622
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
106634
106623
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -106656,6 +106645,8 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
106656
106645
|
|
106657
106646
|
|
106658
106647
|
|
106648
|
+
|
106649
|
+
|
106659
106650
|
|
106660
106651
|
|
106661
106652
|
var cls = (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.usePrefixCls)('teamix-pro-table');
|
@@ -106707,7 +106698,7 @@ var globalFormatSort = function globalFormatSort(sort) {
|
|
106707
106698
|
return {};
|
106708
106699
|
};
|
106709
106700
|
var ProTable = function ProTable(props) {
|
106710
|
-
var _rowSelection$selecte;
|
106701
|
+
var _urlState$currentPage, _rowSelection$selecte;
|
106711
106702
|
var header = props.header,
|
106712
106703
|
className = props.className,
|
106713
106704
|
tableClassName = props.tableClassName,
|
@@ -106780,14 +106771,19 @@ var ProTable = function ProTable(props) {
|
|
106780
106771
|
_props$defaultView = props.defaultView,
|
106781
106772
|
defaultView = _props$defaultView === void 0 ? 'table' : _props$defaultView,
|
106782
106773
|
emptyProps = props.emptyProps,
|
106774
|
+
bindUrlProps = props.bindUrlProps,
|
106775
|
+
bindUrl = props.bindUrl,
|
106783
106776
|
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
106784
106777
|
var targetPageKey = pageKey || globalPageKey;
|
106785
106778
|
var targetPageSizeKey = pageSizeKey || globalPageSizeKey;
|
106786
106779
|
var targetFormatSort = formatSort || globalFormatSort;
|
106787
|
-
var
|
106780
|
+
var _useUrlState = (0,_teamix_hooks__WEBPACK_IMPORTED_MODULE_17__.useUrlState)(),
|
106781
|
+
urlState = _useUrlState[0],
|
106782
|
+
setUrlState = _useUrlState[1];
|
106783
|
+
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((_urlState$currentPage = urlState == null ? void 0 : urlState.currentPage) != null ? _urlState$currentPage : 1),
|
106788
106784
|
currentPage = _useState[0],
|
106789
106785
|
setCurrentPage = _useState[1];
|
106790
|
-
var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(props.pageSize || 10),
|
106786
|
+
var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((urlState == null ? void 0 : urlState.pageSize) || props.pageSize || 10),
|
106791
106787
|
pageSize = _useState2[0],
|
106792
106788
|
setPageSize = _useState2[1];
|
106793
106789
|
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),
|
@@ -106821,6 +106817,25 @@ var ProTable = function ProTable(props) {
|
|
106821
106817
|
showLoading = _useState10[0],
|
106822
106818
|
setShowLoading = _useState10[1];
|
106823
106819
|
|
106820
|
+
// 表格内部用作存储的 Ref,标识 Table 组件是否被第一次渲染。用作 useUrlState filter 第一次渲染时使用 state 数据请求
|
106821
|
+
var dataRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({
|
106822
|
+
flag: true
|
106823
|
+
});
|
106824
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () {
|
106825
|
+
if (bindUrl && (bindUrlProps == null ? void 0 : bindUrlProps.pagination) !== false) {
|
106826
|
+
if ((urlState == null ? void 0 : urlState.currentPage) !== currentPage) {
|
106827
|
+
setUrlState({
|
106828
|
+
currentPage: currentPage
|
106829
|
+
});
|
106830
|
+
}
|
106831
|
+
if ((urlState == null ? void 0 : urlState.pageSize) !== pageSize) {
|
106832
|
+
setUrlState({
|
106833
|
+
pageSize: pageSize
|
106834
|
+
});
|
106835
|
+
}
|
106836
|
+
}
|
106837
|
+
}, [currentPage, pageSize, urlState]);
|
106838
|
+
|
106824
106839
|
// 存储能够被 on 监听到的 ProTable 状态
|
106825
106840
|
// 因为只做存储用。不需要更新视图以及需要同步更改。所以不使用 setState 更新
|
106826
106841
|
var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({
|
@@ -107371,6 +107386,12 @@ var ProTable = function ProTable(props) {
|
|
107371
107386
|
// 请求函数
|
107372
107387
|
function _request(params, noLoading, filterParams, isReset) {
|
107373
107388
|
var _dataFilterFormRef$cu2, _actionRef$current$ge, _actionRef$current6, _extends3;
|
107389
|
+
// 首次渲染表格,获取 urlState 上的 表头 filter 数据
|
107390
|
+
if (bindUrl && (bindUrlProps == null ? void 0 : bindUrlProps.headerFilters) !== false && dataRef.current.flag) {
|
107391
|
+
(0,_utils_util__WEBPACK_IMPORTED_MODULE_18__/* .getUrlStateFilter */ .a)(urlState, actionRef);
|
107392
|
+
dataRef.current.flag = false;
|
107393
|
+
}
|
107394
|
+
|
107374
107395
|
// 如果没有传 url 且没有 customRequest,直接返回
|
107375
107396
|
if (!url && !customRequest) {
|
107376
107397
|
return;
|
@@ -107547,11 +107568,13 @@ var ProTable = function ProTable(props) {
|
|
107547
107568
|
switchCardView: switchCardView,
|
107548
107569
|
defaultView: defaultView,
|
107549
107570
|
autoRefresh: autoRefresh,
|
107550
|
-
autoRefreshProps: autoRefreshProps
|
107571
|
+
autoRefreshProps: autoRefreshProps,
|
107572
|
+
bindUrlProps: bindUrlProps,
|
107573
|
+
bindUrl: bindUrl
|
107551
107574
|
}), switchViewState === 'table' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Table.StickyLock, _extends({
|
107552
107575
|
hasBorder: false,
|
107553
107576
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
107554
|
-
columns: (0,_utils_genProColumnToColumn__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(filteredColumns, showSkeleton, actionRef, context, dataTeamixSpm),
|
107577
|
+
columns: (0,_utils_genProColumnToColumn__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(filteredColumns, showSkeleton, actionRef, context, dataTeamixSpm, bindUrl, bindUrlProps),
|
107555
107578
|
loading: getTableLoading(),
|
107556
107579
|
className: classnames__WEBPACK_IMPORTED_MODULE_13___default()('teamix-pro-table', tableClassName, {
|
107557
107580
|
'with-row-select': rowSelection,
|
@@ -107568,7 +107591,7 @@ var ProTable = function ProTable(props) {
|
|
107568
107591
|
fixedHeader: fullscreenState || fixedTableBody,
|
107569
107592
|
maxBodyHeight: "calc(100vh - " + headerHeight + "px)"
|
107570
107593
|
// 过滤出可以传到 Table 的 Props
|
107571
|
-
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.pickProps)((0,
|
107594
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.pickProps)((0,_utils_getTableProps__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(), otherProps))), switchViewState === 'card' && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_CardView__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
107572
107595
|
dataSource: showSkeleton ? skeletonDataSource : data || props.dataSource,
|
107573
107596
|
showSkeleton: showSkeleton,
|
107574
107597
|
loading: getTableLoading(),
|
@@ -107583,7 +107606,7 @@ var ProTable = function ProTable(props) {
|
|
107583
107606
|
// 不传 columns 直接返回原始 Table
|
107584
107607
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_alicloudfe_components__WEBPACK_IMPORTED_MODULE_1__.Table, _extends({
|
107585
107608
|
className: cls()
|
107586
|
-
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.pickProps)((0,
|
107609
|
+
}, (0,_teamix_utils__WEBPACK_IMPORTED_MODULE_4__.pickProps)((0,_utils_getTableProps__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(), otherProps)));
|
107587
107610
|
}
|
107588
107611
|
};
|
107589
107612
|
var renderFooterAction = function renderFooterAction() {
|
@@ -107778,7 +107801,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
107778
107801
|
/**
|
107779
107802
|
* 增加了 icon 的功能 render title
|
107780
107803
|
*/
|
107781
|
-
var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
|
107804
|
+
var renderColumnsTitle = function renderColumnsTitle(item, actionRef, bindUrl, bindUrlProps) {
|
107782
107805
|
var filterMode = item.filterMode,
|
107783
107806
|
filters = item.filters,
|
107784
107807
|
dataSource = item.dataSource,
|
@@ -107836,7 +107859,9 @@ var renderColumnsTitle = function renderColumnsTitle(item, actionRef) {
|
|
107836
107859
|
icon: item.tooltipIcon
|
107837
107860
|
}), item.filters && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_components_Filter__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {
|
107838
107861
|
column: item,
|
107839
|
-
actionRef: actionRef
|
107862
|
+
actionRef: actionRef,
|
107863
|
+
bindUrl: bindUrl,
|
107864
|
+
bindUrlProps: bindUrlProps
|
107840
107865
|
}));
|
107841
107866
|
};
|
107842
107867
|
|
@@ -108027,7 +108052,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
108027
108052
|
function genProColumnToColumn(columns, /** 是否渲染骨架屏 */
|
108028
108053
|
showSkeleton, actionRef, context,
|
108029
108054
|
// 用于埋点
|
108030
|
-
dataTeamixSpm) {
|
108055
|
+
dataTeamixSpm, bindUrl, bindUrlProps) {
|
108031
108056
|
if (context === void 0) {
|
108032
108057
|
context = {};
|
108033
108058
|
}
|
@@ -108054,7 +108079,7 @@ dataTeamixSpm) {
|
|
108054
108079
|
}, others, {
|
108055
108080
|
children: children ? genProColumnToColumn(children, showSkeleton, actionRef, context) : undefined,
|
108056
108081
|
dataIndex: dataIndex == null ? void 0 : dataIndex.toString(),
|
108057
|
-
title: (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderColumnsTitle */ .p)(columnProps, actionRef),
|
108082
|
+
title: (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderColumnsTitle */ .p)(columnProps, actionRef, bindUrl, bindUrlProps),
|
108058
108083
|
cell: function cell(value, index, record) {
|
108059
108084
|
return (0,_columnRender__WEBPACK_IMPORTED_MODULE_1__/* .renderCell */ .c)(value, columnProps, index, record, actionRef, context, dataTeamixSpm);
|
108060
108085
|
}
|
@@ -108557,6 +108582,33 @@ function useTableSelection(config, primaryKey) {
|
|
108557
108582
|
|
108558
108583
|
/***/ }),
|
108559
108584
|
|
108585
|
+
/***/ 49618:
|
108586
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
108587
|
+
|
108588
|
+
"use strict";
|
108589
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
108590
|
+
/* harmony export */ "a": () => (/* binding */ getUrlStateFilter)
|
108591
|
+
/* harmony export */ });
|
108592
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
108593
|
+
function getUrlStateFilter(urlState, actionRef) {
|
108594
|
+
var _actionRef$current$ge, _actionRef$current, _actionRef$current$ge2, _actionRef$current2;
|
108595
|
+
var filters = Object.keys(urlState).filter(function (item) {
|
108596
|
+
return /^filter.+$/.test(item);
|
108597
|
+
});
|
108598
|
+
var urlStateParams = Object.fromEntries(filters.map(function (item) {
|
108599
|
+
var _item$split, _urlState$item, _urlState$item$split, _urlState$item2;
|
108600
|
+
return [(_item$split = item.split('filter')) == null ? void 0 : _item$split[1], {
|
108601
|
+
params: Array.isArray(urlState == null ? void 0 : urlState[item]) ? urlState == null ? void 0 : (_urlState$item = urlState[item]) == null ? void 0 : _urlState$item.join == null ? void 0 : _urlState$item.join(',') : urlState == null ? void 0 : urlState[item],
|
108602
|
+
rules: Array.isArray(urlState == null ? void 0 : urlState[item]) ? urlState == null ? void 0 : urlState[item] : (_urlState$item$split = urlState == null ? void 0 : (_urlState$item2 = urlState[item]) == null ? void 0 : _urlState$item2.split == null ? void 0 : _urlState$item2.split(',')) != null ? _urlState$item$split : []
|
108603
|
+
}];
|
108604
|
+
}));
|
108605
|
+
var rules = (_actionRef$current$ge = (_actionRef$current = actionRef.current) == null ? void 0 : _actionRef$current.getState == null ? void 0 : (_actionRef$current$ge2 = _actionRef$current.getState()) == null ? void 0 : _actionRef$current$ge2.filterRules) != null ? _actionRef$current$ge : {};
|
108606
|
+
// 再设置所有的列筛选状态
|
108607
|
+
(_actionRef$current2 = actionRef.current) == null ? void 0 : _actionRef$current2.setFilterRules == null ? void 0 : _actionRef$current2.setFilterRules(_extends({}, rules, urlStateParams));
|
108608
|
+
}
|
108609
|
+
|
108610
|
+
/***/ }),
|
108611
|
+
|
108560
108612
|
/***/ 39113:
|
108561
108613
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
108562
108614
|
|
@@ -111239,8 +111291,8 @@ function getGlobalConfig(key) {
|
|
111239
111291
|
"private": 'Private',
|
111240
111292
|
elastic: 'Elastic',
|
111241
111293
|
p1: 'P1 Emergency',
|
111242
|
-
p2: 'P2
|
111243
|
-
p3: 'P3
|
111294
|
+
p2: 'P2 Serious',
|
111295
|
+
p3: 'P3 Warning',
|
111244
111296
|
p4: 'P4 Reminder',
|
111245
111297
|
p5: 'P5 Reminder',
|
111246
111298
|
p6: 'P6 Reminder',
|
@@ -111382,8 +111434,8 @@ var getMessage = function getMessage(id, data) {
|
|
111382
111434
|
"private": '私',
|
111383
111435
|
elastic: '弹',
|
111384
111436
|
p1: 'P1 紧急',
|
111385
|
-
p2: 'P2
|
111386
|
-
p3: 'P3
|
111437
|
+
p2: 'P2 严重',
|
111438
|
+
p3: 'P3 警告',
|
111387
111439
|
p4: 'P4 提示',
|
111388
111440
|
p5: 'P5 提示',
|
111389
111441
|
p6: 'P6 提示',
|
@@ -111481,8 +111533,8 @@ var getMessage = function getMessage(id, data) {
|
|
111481
111533
|
"private": '私',
|
111482
111534
|
elastic: '弹',
|
111483
111535
|
p1: 'P1 緊急',
|
111484
|
-
p2: 'P2
|
111485
|
-
p3: 'P3
|
111536
|
+
p2: 'P2 嚴重',
|
111537
|
+
p3: 'P3 警告',
|
111486
111538
|
p4: 'P4 提示',
|
111487
111539
|
p5: 'P5 提示',
|
111488
111540
|
p6: 'P6 提示',
|