antd-management-fast-framework 1.11.34 → 1.11.39
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.
|
@@ -133,7 +133,7 @@ declare class Common extends Core {
|
|
|
133
133
|
showIcon?: boolean | undefined;
|
|
134
134
|
}) => JSX.Element | null;
|
|
135
135
|
establishFormAdditionalConfig: () => {};
|
|
136
|
-
renderRefreshButton: () => JSX.Element;
|
|
136
|
+
renderRefreshButton: (props?: any) => JSX.Element | null;
|
|
137
137
|
getUploadTokenObject: () => never;
|
|
138
138
|
beforeVideoUpload: (file: any) => boolean;
|
|
139
139
|
pretreatmentImageUploadRemoteResponse: (response: any) => never;
|
|
@@ -128,12 +128,12 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
128
128
|
|
|
129
129
|
var _super = _createSuper(Common);
|
|
130
130
|
|
|
131
|
-
function Common(
|
|
131
|
+
function Common(_props) {
|
|
132
132
|
var _this;
|
|
133
133
|
|
|
134
134
|
_classCallCheck(this, Common);
|
|
135
135
|
|
|
136
|
-
_this = _super.call(this,
|
|
136
|
+
_this = _super.call(this, _props);
|
|
137
137
|
_this.loadDataAfterMount = true;
|
|
138
138
|
_this.lastRequestingData = {
|
|
139
139
|
type: '',
|
|
@@ -1108,18 +1108,22 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1108
1108
|
};
|
|
1109
1109
|
|
|
1110
1110
|
_this.renderRefreshButton = function () {
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1111
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1112
|
+
|
|
1113
|
+
var _size$text = _objectSpread(_objectSpread({}, {
|
|
1114
|
+
size: 'default',
|
|
1115
|
+
text: '刷新'
|
|
1116
|
+
}), props || {}),
|
|
1117
|
+
size = _size$text.size,
|
|
1118
|
+
text = _size$text.text;
|
|
1119
|
+
|
|
1120
|
+
return (0, _FunctionComponent.buildButton)({
|
|
1121
|
+
size: size,
|
|
1122
|
+
text: text,
|
|
1123
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.ReloadOutlined, null),
|
|
1124
|
+
disabled: _this.checkOperability(),
|
|
1125
|
+
handleClick: _this.reloadData
|
|
1126
|
+
});
|
|
1123
1127
|
};
|
|
1124
1128
|
|
|
1125
1129
|
_this.getUploadTokenObject = function () {
|
|
@@ -1970,7 +1974,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1970
1974
|
|
|
1971
1975
|
switch (buildType) {
|
|
1972
1976
|
case _constants.cardConfig.extraBuildType.refresh:
|
|
1973
|
-
itemAdjust = _this.renderRefreshButton();
|
|
1977
|
+
itemAdjust = _this.renderRefreshButton(item);
|
|
1974
1978
|
break;
|
|
1975
1979
|
|
|
1976
1980
|
case _constants.cardConfig.extraBuildType.save:
|
|
@@ -2144,13 +2148,13 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
2144
2148
|
}, {
|
|
2145
2149
|
key: "checkWorkDoing",
|
|
2146
2150
|
value: function checkWorkDoing() {
|
|
2147
|
-
var _this$
|
|
2148
|
-
dataLoading = _this$
|
|
2149
|
-
reloading = _this$
|
|
2150
|
-
searching = _this$
|
|
2151
|
-
refreshing = _this$
|
|
2152
|
-
paging = _this$
|
|
2153
|
-
processing = _this$
|
|
2151
|
+
var _this$state2 = this.state,
|
|
2152
|
+
dataLoading = _this$state2.dataLoading,
|
|
2153
|
+
reloading = _this$state2.reloading,
|
|
2154
|
+
searching = _this$state2.searching,
|
|
2155
|
+
refreshing = _this$state2.refreshing,
|
|
2156
|
+
paging = _this$state2.paging,
|
|
2157
|
+
processing = _this$state2.processing;
|
|
2154
2158
|
|
|
2155
2159
|
if (dataLoading || reloading || searching || refreshing || paging || processing) {
|
|
2156
2160
|
var text = '数据正在处理中,请稍等一下再点哦';
|
|
@@ -469,7 +469,7 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
469
469
|
md: md,
|
|
470
470
|
sm: sm,
|
|
471
471
|
xs: xs
|
|
472
|
-
}, type === _constants.searchCardConfig.contentItemType.input ? _this.renderSearchInput(fieldData.label, fieldData.name, showHelper ? fieldData.helper : '', icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.inputNumber ? _this.renderSearchInputNumber(fieldData.label, fieldData.name, fieldData.helper, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.datePicker ? _this.renderFormDatePicker(fieldData.label, fieldData.name, false, fieldData.helper, _objectSpread(_objectSpread({}, {}), otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.customRangePicker ? _this.buildSearchCardRangePickerCore(contentItem.dateRangeFieldName, _objectSpread(_objectSpread({}, {}), otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
472
|
+
}, type === _constants.searchCardConfig.contentItemType.input ? _this.renderSearchInput(fieldData.label, fieldData.name, showHelper ? fieldData.helper : '', icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.inputNumber ? _this.renderSearchInputNumber(fieldData.label, fieldData.name, fieldData.helper, icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.datePicker ? _this.renderFormDatePicker(fieldData.label, fieldData.name, false, fieldData.helper, _objectSpread(_objectSpread({}, {}), otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.customRangePicker ? _this.buildSearchCardRangePickerCore(contentItem.dateRangeFieldName, _objectSpread(_objectSpread({}, {}), otherProps || {})) : null, type === _constants.searchCardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react.default.createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
473
473
|
disabled: true
|
|
474
474
|
})) : null, type === _constants.searchCardConfig.contentItemType.customSelect ? contentItem.component : null, type === _constants.searchCardConfig.contentItemType.customRadio ? contentItem.component : null, type === _constants.searchCardConfig.contentItemType.innerComponent ? _this.renderFormInnerComponent(fieldData.label, component, fieldData.helper, null, false) : null, type === _constants.searchCardConfig.contentItemType.component ? component || null : null);
|
|
475
475
|
};
|
|
@@ -1535,18 +1535,27 @@ var ListBase = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
}), layoutConfig || {});
|
|
1537
1537
|
var inner = siderArea == null ? contentArea : /*#__PURE__*/_react.default.createElement(_layout.default, layoutConfig, siderPosition === 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null, /*#__PURE__*/_react.default.createElement(Content, null, contentArea), siderPosition !== 'left' ? /*#__PURE__*/_react.default.createElement(Sider, siderConfig, siderArea) : null);
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1538
|
+
|
|
1539
|
+
var toolbar = _this.buildToolBarWrapper();
|
|
1540
|
+
|
|
1541
|
+
var help = _this.buildHelpWrapper();
|
|
1542
|
+
|
|
1543
|
+
if ((toolbar || null) != null || (help || null) != null) {
|
|
1544
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
1545
|
+
className: _index.default.containorBox,
|
|
1546
|
+
style: {
|
|
1547
|
+
overflowX: 'hidden'
|
|
1548
|
+
}
|
|
1549
|
+
}, /*#__PURE__*/_react.default.createElement(_space.default, {
|
|
1550
|
+
style: {
|
|
1551
|
+
width: '100%'
|
|
1552
|
+
},
|
|
1553
|
+
direction: "vertical",
|
|
1554
|
+
size: 24
|
|
1555
|
+
}, _this.buildToolBarWrapper(), inner, _this.buildHelpWrapper()));
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
return inner;
|
|
1550
1559
|
};
|
|
1551
1560
|
|
|
1552
1561
|
_this.renderPageBody = function () {
|
package/es/utils/authority.js
CHANGED
|
@@ -70,13 +70,13 @@ function getSuperPermission() {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
if ((0, _tools.isObject)(superPermission)) {
|
|
73
|
-
var
|
|
73
|
+
var superAuth = (0, _tools.getValueByKey)({
|
|
74
74
|
data: superPermission,
|
|
75
75
|
key: 'permission'
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
if ((0, _tools.isString)(
|
|
79
|
-
result =
|
|
78
|
+
if ((0, _tools.isString)(superAuth)) {
|
|
79
|
+
result = superAuth;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -199,7 +199,6 @@ function checkHasAuthorityCore(auth) {
|
|
|
199
199
|
|
|
200
200
|
if ((v !== null && v !== void 0 ? v : null) == null) {
|
|
201
201
|
(0, _tools.recordObject)({
|
|
202
|
-
superAuth: superAuth,
|
|
203
202
|
checkAuthority: auth,
|
|
204
203
|
listAuthority: list,
|
|
205
204
|
accessWayCollection: accessWayCollection
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.39",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"array-move": "^4.0.0",
|
|
37
37
|
"bizcharts": "^4.1.15",
|
|
38
38
|
"browserslist": "^4.18.1",
|
|
39
|
-
"caniuse-lite": "^1.0.
|
|
39
|
+
"caniuse-lite": "^1.0.30001286",
|
|
40
40
|
"classnames": "^2.3.1",
|
|
41
41
|
"copy-to-clipboard": "^3.3.1",
|
|
42
42
|
"enquire-js": "^0.2.1",
|